]> git.tdb.fi Git - libs/gl.git/blobdiff - source/matrix.h
Remove support for legacy OpenGL features
[libs/gl.git] / source / matrix.h
index 2e1096f5f4586d7f6c05ea0620f59a5425b4b450..971d2b362e5441ab2d1dd5f8ff7496424d6d1021 100644 (file)
@@ -63,47 +63,6 @@ public:
        static Matrix perspective(const Angle &, float, float, float);
 };
 
-class MatrixStack
-{
-public:
-       class Push
-       {
-       private:
-               MatrixStack &stack;
-
-       public:
-               Push(MatrixStack &s): stack(s) { stack.push(); }
-               ~Push() { stack.pop(); }
-       };
-
-private:
-       GLenum mode;
-       std::vector<Matrix> matrices;
-
-       static GLenum current_mode;
-
-       MatrixStack(const MatrixStack &);
-       MatrixStack &operator=(const MatrixStack &);
-       MatrixStack(GLenum);
-public:
-       MatrixStack();
-
-       const Matrix &top() const;
-       void load(const Matrix &);
-       void multiply(const Matrix &);
-       void push();
-       void pop();
-private:
-       virtual void update();
-
-public:
-       MatrixStack &operator=(const Matrix &);
-       MatrixStack &operator*=(const Matrix &);
-
-       static MatrixStack &modelview();
-       static MatrixStack &projection();
-};
-
 } // namespace GL
 } // namespace Msp