]> git.tdb.fi Git - libs/gl.git/blob - source/transform.cpp
Add vertex arrays and buffers
[libs/gl.git] / source / transform.cpp
1 #include <GL/gl.h>
2 #include "transform.h"
3
4 namespace Msp {
5 namespace GL {
6
7 void translate(float x, float y, float z)
8 {
9         glTranslatef(x, y, z);
10 }
11
12 void rotate(float a, float x, float y, float z)
13 {
14         glRotatef(a, x, y, z);
15 }
16
17 void scale(float x, float y, float z)
18 {
19         glScalef(x, y, z);
20 }
21
22 void scale_uniform(float s)
23 {
24         scale(s, s, s);
25 }
26
27 } // namespace GL
28 } // namespace Msp