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

Function FreeRoomFace

Descent3/room.cpp:740–754  ·  view source on GitHub ↗

Free the memory used by a room face structure

Source from the content-addressed store, hash-verified

738
739// Free the memory used by a room face structure
740void FreeRoomFace(face *fp) {
741 if (fp->lmi_handle != BAD_LMI_INDEX) {
742 FreeLightmapInfo(fp->lmi_handle);
743 fp->lmi_handle = BAD_LMI_INDEX;
744 fp->flags &= ~FF_LIGHTMAP;
745 }
746
747 if (fp->special_handle != BAD_SPECIAL_FACE_INDEX) {
748 FreeSpecialFace(fp->special_handle);
749 fp->special_handle = BAD_SPECIAL_FACE_INDEX;
750 }
751
752 RoomMemFree(fp->face_verts);
753 RoomMemFree(fp->face_uvls);
754}
755
756// Finds the center point of a room
757// Parameters: vp - filled in with the center point

Callers 2

DeleteRoomFaceFunction · 0.85
FreeRoomFunction · 0.85

Calls 3

FreeLightmapInfoFunction · 0.85
FreeSpecialFaceFunction · 0.85
RoomMemFreeFunction · 0.85

Tested by

no test coverage detected