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

Function HTextureRotUVPoint

editor/HTexture.cpp:545–548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545void HTextureRotUVPoint(g3UVL *uvrot, float *rotmat, roomUVL *uv, g3UVL *uvcenter) {
546 uvrot->u = ((uv->u - uvcenter->u) * rotmat[0]) + ((uv->v - uvcenter->v) * rotmat[1]) + uvcenter->u;
547 uvrot->v = ((uv->u - uvcenter->u) * rotmat[2]) + ((uv->v - uvcenter->v) * rotmat[3]) + uvcenter->v;
548}
549
550void HTextureRotUVPointsOnRoomFace(room *roomp, int facenum, float *rotmat, g3UVL *uvcenter) {
551 int v;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected