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

Function ClearAllRoomLightmaps

Descent3/room.cpp:879–892  ·  view source on GitHub ↗

Removes all room lightmaps from memory and sets indoor faces accordingly External=1 means to perform the operation on external rooms only, 0 means indoor rooms only

Source from the content-addressed store, hash-verified

877// Removes all room lightmaps from memory and sets indoor faces accordingly
878// External=1 means to perform the operation on external rooms only, 0 means indoor rooms only
879void ClearAllRoomLightmaps(int external) {
880 int i;
881
882 for (i = 0; i < MAX_ROOMS; i++) {
883 if (Rooms[i].used) {
884 if (external && !(Rooms[i].flags & RF_EXTERNAL))
885 continue;
886 if (!external && (Rooms[i].flags & RF_EXTERNAL))
887 continue;
888
889 ClearRoomLightmaps(i);
890 }
891 }
892}
893
894// Clears specmaps for a single room
895void ClearRoomSpecmaps(int roomnum) {

Callers 3

OnClearLightmapsMethod · 0.85
DoRadiosityForRoomsFunction · 0.85
DoRadiosityForTerrainFunction · 0.85

Calls 1

ClearRoomLightmapsFunction · 0.85

Tested by

no test coverage detected