* Translates a 4x4 matrix. * * @param[in,out] m the matrix to translate * @param x the x component of the direction to translate to * @param y the y component of the direction to translate to * @param z the z component of the direction to translate to */
| 341 | * @param z the z component of the direction to translate to |
| 342 | */ |
| 343 | static void |
| 344 | translate(GLfloat *m, GLfloat x, GLfloat y, GLfloat z) |
| 345 | { |
| 346 | GLfloat t[16] = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x, y, z, 1 }; |
| 347 | |
| 348 | multiply(m, t); |
| 349 | } |
| 350 | |
| 351 | /** |
| 352 | * Creates an identity 4x4 matrix. |
no test coverage detected