]> git.tdb.fi Git - libs/gl.git/blobdiff - source/matrix.h
Bump version to 1.1
[libs/gl.git] / source / matrix.h
index fe67ad7e4bf749693eedae982a2cbb0d10b40884..79d330a30ca99e3c34348eca271c56f7d7be3404 100644 (file)
@@ -22,11 +22,25 @@ enum MatrixMode
 
 void matrix_mode(MatrixMode);
 void load_identity();
+void load_matrix(const float *);
+void load_matrix(const double *);
 void mult_matrix(const float *);
 void mult_matrix(const double *);
 void push_matrix();
 void pop_matrix();
 
+/// RAII object - pushes matrix when constructed and pops when destroyed
+struct PushMatrix
+{
+       PushMatrix() { push_matrix(); }
+       ~PushMatrix() { pop_matrix(); }
+};
+
+void translate(float, float, float);
+void rotate(float, float, float, float);
+void scale(float, float, float);
+void scale_uniform(float);
+
 } // namespace GL
 } // namespace Msp