]> git.tdb.fi Git - libs/gl.git/blobdiff - source/transform.cpp
Add vertex arrays and buffers
[libs/gl.git] / source / transform.cpp
diff --git a/source/transform.cpp b/source/transform.cpp
new file mode 100644 (file)
index 0000000..6361fc5
--- /dev/null
@@ -0,0 +1,28 @@
+#include <GL/gl.h>
+#include "transform.h"
+
+namespace Msp {
+namespace GL {
+
+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