Renderer.h 756 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef RENDERER_H
  2. #define RENDERER_H
  3. #include "client/rendering/wrapper/Shader.h"
  4. #include "client/math/MatrixStack.h"
  5. class Renderer final {
  6. public:
  7. Renderer(Shader& shader, MatrixStack& stack);
  8. void pop();
  9. void push();
  10. Renderer& update();
  11. Renderer& scale(float sx, float sy, float sz);
  12. Renderer& scale(float s);
  13. Renderer& translate(float tx, float ty, float tz);
  14. Renderer& translateX(float tx);
  15. Renderer& translateY(float ty);
  16. Renderer& translateZ(float tz);
  17. Renderer& translateTo(float tx, float ty, float tz);
  18. Renderer& rotateX(float degrees);
  19. Renderer& rotateY(float degrees);
  20. Renderer& rotateZ(float degrees);
  21. private:
  22. Shader& shader;
  23. MatrixStack& stack;
  24. };
  25. #endif