Apply the specified texture to the specified room:face
| 195 | |
| 196 | // Apply the specified texture to the specified room:face |
| 197 | void 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 |
no outgoing calls
no test coverage detected