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

Function AssignDefaultUVsToRoomFace

editor/Erooms.cpp:754–764  ·  view source on GitHub ↗

Sets the default UVS for a room face

Source from the content-addressed store, hash-verified

752
753// Sets the default UVS for a room face
754void AssignDefaultUVsToRoomFace(room *rp, int facenum) {
755 ASSERT(rp->used >= 1);
756 ASSERT(facenum < rp->num_faces);
757
758 int t;
759
760 for (t = 0; t < rp->faces[facenum].num_verts; t++) {
761 GetUVLForRoomPoint(ROOMNUM(rp), facenum, t, &rp->faces[facenum].face_uvls[t]);
762 rp->faces[facenum].face_uvls[t].alpha = DEFAULT_ALPHA;
763 }
764}
765
766// Searches thru all rooms for a specific name, returns -1 if not found
767// or index of room with name

Callers 7

CreateDefaultRoomFunction · 0.85
AssignDefaultUVsToRoomFunction · 0.85
FixConcaveFacesFunction · 0.85
OnTrigAddFloatingMethod · 0.85
OnCreateVolumeConeMethod · 0.85
OnEdgeVolumetricMethod · 0.85
EndNewFaceFunction · 0.85

Calls 1

GetUVLForRoomPointFunction · 0.85

Tested by

no test coverage detected