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

Function lm_InitLightmaps

bitmap/lightmap.cpp:38–48  ·  view source on GitHub ↗

Sets all the lightmaps to unused

Source from the content-addressed store, hash-verified

36static int Lightmap_mem_used = 0;
37// Sets all the lightmaps to unused
38void lm_InitLightmaps() {
39 int i;
40 for (i = 0; i < MAX_LIGHTMAPS; i++) {
41 GameLightmaps[i].flags = 0;
42 GameLightmaps[i].used = 0;
43 GameLightmaps[i].data = NULL;
44 GameLightmaps[i].cache_slot = -1;
45 Free_lightmap_list[i] = i;
46 }
47 atexit(lm_ShutdownLightmaps);
48}
49void lm_ShutdownLightmaps(void) {
50 int i;
51 mprintf(0, "Freeing all lightmap memory.\n");

Callers 1

bm_InitBitmapsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected