X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmatrix.cpp;h=a4c36a022a9ecb338406a496760f12c1d0655540;hp=9af850d2dfa68956037be0e4854716813fdc79a6;hb=HEAD;hpb=41339bc44d076569c680b2c24c75b30ef1254c1b diff --git a/source/matrix.cpp b/source/matrix.cpp deleted file mode 100644 index 9af850d2..00000000 --- a/source/matrix.cpp +++ /dev/null @@ -1,74 +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 load_matrix(const float *matrix) -{ - glLoadMatrixf(matrix); -} - -void load_matrix(const double *matrix) -{ - glLoadMatrixd(matrix); -} - -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