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

Function lm_ShutdownLightmaps

bitmap/lightmap.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47 atexit(lm_ShutdownLightmaps);
48}
49void lm_ShutdownLightmaps(void) {
50 int i;
51 mprintf(0, "Freeing all lightmap memory.\n");
52 for (i = 0; i < MAX_LIGHTMAPS; i++) {
53 while (GameLightmaps[i].used > 0)
54 lm_FreeLightmap(i);
55 }
56}
57// Allocs a lightmap of w x h size
58// Returns lightmap handle if successful, -1 if otherwise
59int lm_AllocLightmap(int w, int h) {

Callers

nothing calls this directly

Calls 1

lm_FreeLightmapFunction · 0.85

Tested by

no test coverage detected