MatrixStack.h 276 B

1234567891011121314151617181920
  1. #ifndef MATRIXSTACK_H
  2. #define MATRIXSTACK_H
  3. #include <array>
  4. #include "client/math/Matrix.h"
  5. class MatrixStack final {
  6. public:
  7. void pop();
  8. void push();
  9. Matrix& get();
  10. void clear();
  11. private:
  12. std::array<Matrix, 10> stack;
  13. size_t index = 0;
  14. };
  15. #endif