|
JNGL
Easy to use cross-platform 2D game library
|
Functions related to the global ModelView matrix. More...
#include "Mat3.hpp"Go to the source code of this file.
Namespaces | |
| namespace | jngl |
| JNGL's main namespace. | |
Functions | |
| jngl::Mat3 | modelview () |
| Returns a copy of the global ModelView matrix. | |
| void | rotate (double degree) |
| Multiplies the global ModelView matrix with a rotation matrix. | |
| void | translate (double x, double y) |
| Multiplies the global ModelView matrix with a translation matrix. | |
| template<class Vect > | |
| void | translate (Vect v) |
| Multiplies the global ModelView matrix with a translation matrix. | |
| void | scale (double factor) |
| Multiplies the global ModelView matrix by a scaling matrix. | |
| void | scale (double xfactor, double yfactor) |
| Multiplies the global ModelView matrix by a scaling matrix. | |
| void | pushMatrix () |
| Pushes the current ModelView matrix on a global stack. | |
| void | popMatrix () |
| Replaces the current ModelView matrix with the top element of the global stack. | |
| void | reset () |
| Resets the global ModelView matrix to the identity matrix. | |
Functions related to the global ModelView matrix.
Definition in file matrix.hpp.