]> git.tdb.fi Git - libs/gl.git/blob - source/matrix.cpp
Add mult_matrix functions
[libs/gl.git] / source / matrix.cpp
1 #include "matrix.h"
2
3 namespace Msp {
4 namespace GL {
5
6 void matrix_mode(MatrixMode m)
7 {
8         glMatrixMode(m);
9 }
10
11 void load_identity()
12 {
13         glLoadIdentity();
14 }
15
16 void mult_matrix(const float *matrix)
17 {
18         glMultMatrixf(matrix);
19 }
20
21 void mult_matrix(const double *matrix)
22 {
23         glMultMatrixd(matrix);
24 }
25
26 void push_matrix()
27 {
28         glPushMatrix();
29 }
30
31 void pop_matrix()
32 {
33         glPopMatrix();
34 }
35
36 } // namespace GL
37 } // namespace Msp