Shader.h 688 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef CAMERA_H
  2. #define CAMERA_H
  3. #include "../math/Plane3D.h"
  4. #include "../math/Vector3D.h"
  5. #include "../math/Matrix3D.h"
  6. #include "../math/Matrix3DStack.h"
  7. class Shader
  8. {
  9. public:
  10. Shader();
  11. void pop();
  12. void push();
  13. void setToIdentity();
  14. void scale(float sx, float sy, float sz);
  15. void translate(float tx, float ty, float tz);
  16. void translateX(float tx);
  17. void translateY(float ty);
  18. void translateZ(float tz);
  19. void translateTo(float tx, float ty, float tz);
  20. void rotateX(float degrees);
  21. void rotateY(float degrees);
  22. void rotateZ(float degrees);
  23. const float* getModelMatrix();
  24. private:
  25. Matrix3DStack model;
  26. };
  27. #endif