MatrixStack.h 280 B

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