X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmatrix.h;h=2e1096f5f4586d7f6c05ea0620f59a5425b4b450;hb=refs%2Fheads%2Fmaster;hp=79d330a30ca99e3c34348eca271c56f7d7be3404;hpb=41339bc44d076569c680b2c24c75b30ef1254c1b;p=libs%2Fgl.git diff --git a/source/matrix.h b/source/matrix.h deleted file mode 100644 index 79d330a3..00000000 --- a/source/matrix.h +++ /dev/null @@ -1,47 +0,0 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - -#ifndef MSP_GL_MATRIX_H_ -#define MSP_GL_MATRIX_H_ - -#include "gl.h" - -namespace Msp { -namespace GL { - -enum MatrixMode -{ - MODELVIEW=GL_MODELVIEW, - PROJECTION=GL_PROJECTION, - TEXTURE=GL_TEXTURE -}; - -void matrix_mode(MatrixMode); -void load_identity(); -void load_matrix(const float *); -void load_matrix(const double *); -void mult_matrix(const float *); -void mult_matrix(const double *); -void push_matrix(); -void pop_matrix(); - -/// RAII object - pushes matrix when constructed and pops when destroyed -struct PushMatrix -{ - PushMatrix() { push_matrix(); } - ~PushMatrix() { pop_matrix(); } -}; - -void translate(float, float, float); -void rotate(float, float, float, float); -void scale(float, float, float); -void scale_uniform(float); - -} // namespace GL -} // namespace Msp - -#endif