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 load_matrix(const float *);
26 void load_matrix(const double *);
27 void mult_matrix(const float *);
28 void mult_matrix(const double *);
32 /// RAII object - pushes matrix when constructed and pops when destroyed
35 PushMatrix() { push_matrix(); }
36 ~PushMatrix() { pop_matrix(); }
39 void translate(float, float, float);
40 void rotate(float, float, float, float);
41 void scale(float, float, float);
42 void scale_uniform(float);