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

Function HTextureRotUVPointsOnRoomFace

editor/HTexture.cpp:550–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548}
549
550void HTextureRotUVPointsOnRoomFace(room *roomp, int facenum, float *rotmat, g3UVL *uvcenter) {
551 int v;
552 face *facep = &roomp->faces[facenum];
553 g3UVL tuv;
554
555 for (v = 0; v < facep->num_verts; v++) {
556 HTextureRotUVPoint(&tuv, rotmat, &facep->face_uvls[v], uvcenter);
557 facep->face_uvls[v].u = tuv.u;
558 facep->face_uvls[v].v = tuv.v;
559 }
560}
561
562void HTextureCreate2DRotMat(float *rotmat, angle ang) {
563 float sinang, cosang;

Callers 1

HTextureRotateFunction · 0.85

Calls 1

HTextureRotUVPointFunction · 0.85

Tested by

no test coverage detected