instance at specified point with specified orientation if angles==NULL, don't modify matrix. This will be like doing an offset
| 274 | // instance at specified point with specified orientation |
| 275 | // if angles==NULL, don't modify matrix. This will be like doing an offset |
| 276 | static void newstyle_StartInstanceAngles(vector *pos, angvec *angles) { |
| 277 | matrix tm; |
| 278 | |
| 279 | if (angles == nullptr) { |
| 280 | newstyle_StartInstanceMatrix(pos, nullptr); |
| 281 | return; |
| 282 | } |
| 283 | |
| 284 | vm_AnglesToMatrix(&tm, angles->p, angles->h, angles->b); |
| 285 | |
| 286 | newstyle_StartInstanceMatrix(pos, &tm); |
| 287 | } |
| 288 | |
| 289 | // pops the old context |
| 290 | static void newstyle_DoneInstance() { |
no test coverage detected