]> git.tdb.fi Git - libs/gl.git/blob - source/transform.cpp
Windows compatibility:
[libs/gl.git] / source / transform.cpp
1 /* $Id$
2
3 This file is part of libmspgl
4 Copyright © 2007  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include "gl.h"
9 #include "transform.h"
10
11 namespace Msp {
12 namespace GL {
13
14 void translate(float x, float y, float z)
15 {
16         glTranslatef(x, y, z);
17 }
18
19 void rotate(float a, float x, float y, float z)
20 {
21         glRotatef(a, x, y, z);
22 }
23
24 void scale(float x, float y, float z)
25 {
26         glScalef(x, y, z);
27 }
28
29 void scale_uniform(float s)
30 {
31         scale(s, s, s);
32 }
33
34 } // namespace GL
35 } // namespace Msp