JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Namespaces | Functions
matrix.hpp File Reference

Functions related to the global ModelView matrix. More...

#include "Mat3.hpp"
Include dependency graph for matrix.hpp:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Functions related to the global ModelView matrix.

Definition in file matrix.hpp.