Sets the default UVS for a room face
| 752 | |
| 753 | // Sets the default UVS for a room face |
| 754 | void 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 |
no test coverage detected