X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmatrix.cpp;h=a4c36a022a9ecb338406a496760f12c1d0655540;hp=7841218011935f115c4a7dfbeb7e340ea6ae1a5c;hb=HEAD;hpb=2316272b57cf9bea26d2c35b9451910c169efafa diff --git a/source/matrix.cpp b/source/matrix.cpp deleted file mode 100644 index 78412180..00000000 --- a/source/matrix.cpp +++ /dev/null @@ -1,64 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#include "matrix.h" - -namespace Msp { -namespace GL { - -void matrix_mode(MatrixMode m) -{ - glMatrixMode(m); -} - -void load_identity() -{ - glLoadIdentity(); -} - -void mult_matrix(const float *matrix) -{ - glMultMatrixf(matrix); -} - -void mult_matrix(const double *matrix) -{ - glMultMatrixd(matrix); -} - -void push_matrix() -{ - glPushMatrix(); -} - -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