MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / d3d_LoadEnvironmentMap

Function d3d_LoadEnvironmentMap

legacy/renderer/Direct3D.cpp:994–1004  ·  view source on GitHub ↗

Loads an environment map for bumpmapping. Returns 1 on success, 0 on fail

Source from the content-addressed store, hash-verified

992
993// Loads an environment map for bumpmapping. Returns 1 on success, 0 on fail
994int d3d_LoadEnvironmentMap() {
995 if (d3d_EnvironmentMap != -1)
996 return 1;
997
998 d3d_EnvironmentMap = bm_AllocLoadFileBitmap("Environment.ogf", 0);
999
1000 if (d3d_EnvironmentMap < 0)
1001 return 0;
1002
1003 return 1;
1004}
1005
1006// Initializes the texture cache for Direct3D
1007int d3d_TextureCacheInit() {

Callers 1

d3d_TextureCacheInitFunction · 0.85

Calls 1

bm_AllocLoadFileBitmapFunction · 0.85

Tested by

no test coverage detected