]> git.tdb.fi Git - libs/gl.git/blobdiff - source/matrix.cpp
Move transform functions to matrix.h
[libs/gl.git] / source / matrix.cpp
index 7a91078621e647d293af0628d06044c95e719fcd..7841218011935f115c4a7dfbeb7e340ea6ae1a5c 100644 (file)
@@ -40,5 +40,25 @@ void pop_matrix()
        glPopMatrix();
 }
 
+void translate(float x, float y, float z)
+{
+       glTranslatef(x, y, z);
+}
+
+void rotate(float a, float x, float y, float z)
+{
+       glRotatef(a, x, y, z);
+}
+
+void scale(float x, float y, float z)
+{
+       glScalef(x, y, z);
+}
+
+void scale_uniform(float s)
+{
+       scale(s, s, s);
+}
+
 } // namespace GL
 } // namespace Msp