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

Function HTextureApplyToRoomFace

editor/HTexture.cpp:197–208  ·  view source on GitHub ↗

Apply the specified texture to the specified room:face

Source from the content-addressed store, hash-verified

195
196// Apply the specified texture to the specified room:face
197void HTextureApplyToRoomFace(room *rp, int facenum, int tnum) {
198 ASSERT(rp->used);
199
200#ifdef NEWEDITOR
201 if (tnum == -1)
202 return;
203 if (rp->faces[facenum].tmap >= 0)
204 SwitchTexture(rp, rp->faces[facenum].tmap, tnum);
205#endif
206
207 rp->faces[facenum].tmap = tnum;
208}
209
210// Copy texture from current face to adjacent face, tiling the UV coordinates
211// Parameters: destrp,destface - room:face that the propagate is based on

Callers 10

OnLButtonDownMethod · 0.85
AddRoomFunction · 0.85
ClipFaceFunction · 0.85
BuildBridgeFunction · 0.85
TriangulateFaceFunction · 0.85
BuildSmoothBridgeFunction · 0.85
EndNewFaceFunction · 0.85
LinkToExternalRoomFunction · 0.85
SplitFaceFunction · 0.85
MergeObjectIntoRoomFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected