X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmatrix.cpp;h=7841218011935f115c4a7dfbeb7e340ea6ae1a5c;hb=2316272b57cf9bea26d2c35b9451910c169efafa;hp=dc855d2b0899f638782b1e2bc44cf52d157948d7;hpb=3f285d3f4fd0a6790bf1efa780284dc7ba2287a2;p=libs%2Fgl.git diff --git a/source/matrix.cpp b/source/matrix.cpp index dc855d2b..78412180 100644 --- a/source/matrix.cpp +++ b/source/matrix.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of libmspgl +Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #include "matrix.h" namespace Msp { @@ -33,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