-/* $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 <list>
+#include <vector>
#include "gl.h"
#include "vector.h"
private:
GLenum mode;
- std::list<Matrix> matrices;
+ std::vector<Matrix> matrices;
static GLenum current_mode;
public:
MatrixStack();
- const Matrix &top();
+ const Matrix &top() const;
void load(const Matrix &);
void multiply(const Matrix &);
void push();
void pop();
private:
- void update();
+ virtual void update();
public:
MatrixStack &operator=(const Matrix &);