Game.h 760 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef GAME_H
  2. #define GAME_H
  3. #include "client/input/Keys.h"
  4. #include "client/input/MouseButtons.h"
  5. #include "client/rendering/Shader.h"
  6. #include "client/math/MatrixStack.h"
  7. #include "client/math/Camera.h"
  8. #include "client/rendering/Mesh.h"
  9. #include "client/rendering/Texture.h"
  10. #include "client/rendering/FontRenderer.h"
  11. class Game
  12. {
  13. public:
  14. Game();
  15. void tick(const Keys& keys, const MouseButtons& mButtons, Camera& cam);
  16. void renderWorld(float lag, MatrixStack& stack, Shader& sh);
  17. void renderTextOverlay(float lag, MatrixStack& stack, Shader& sh, FontRenderer& fr);
  18. private:
  19. void addCube(float x, float y, float z);
  20. float lengthAngle;
  21. float widthAngle;
  22. Vector pos;
  23. Mesh m;
  24. Texture texture;
  25. };
  26. #endif