3 This file is part of libmspgl
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
8 #ifndef MSP_GL_MATRIX_H_
9 #define MSP_GL_MATRIX_H_
18 MODELVIEW=GL_MODELVIEW,
19 PROJECTION=GL_PROJECTION,
23 void matrix_mode(MatrixMode);
25 void mult_matrix(const float *);
26 void mult_matrix(const double *);
30 /// RAII object - pushes matrix when constructed and pops when destroyed
33 PushMatrix() { push_matrix(); }
34 ~PushMatrix() { pop_matrix(); }
37 void translate(float, float, float);
38 void rotate(float, float, float, float);
39 void scale(float, float, float);
40 void scale_uniform(float);