| 47 | atexit(lm_ShutdownLightmaps); |
| 48 | } |
| 49 | void 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 |
| 59 | int lm_AllocLightmap(int w, int h) { |
nothing calls this directly
no test coverage detected