X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmatrix.h;h=971d2b362e5441ab2d1dd5f8ff7496424d6d1021;hb=a40fc85277dba5c34402a0e703d038efd30cc57b;hp=2e1096f5f4586d7f6c05ea0620f59a5425b4b450;hpb=2fa1bb084e54af7134b44d3ee7512056e28de67e;p=libs%2Fgl.git diff --git a/source/matrix.h b/source/matrix.h index 2e1096f5..971d2b36 100644 --- a/source/matrix.h +++ b/source/matrix.h @@ -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 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