Game.h 882 B

12345678910111213141516171819202122232425262728293031323334
  1. #ifndef GAME_H
  2. #define GAME_H
  3. #include "client/input/Keys.h"
  4. #include "client/input/MouseButtons.h"
  5. #include "client/rendering/wrapper/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. public:
  13. Game(const Keys& keys, const MouseButtons& buttons);
  14. void tick(Camera& cam);
  15. void renderWorld(float lag, MatrixStack& stack, Shader& sh);
  16. void renderTextOverlay(float lag, MatrixStack& stack, Shader& sh, FontRenderer& fr);
  17. private:
  18. void addCube(float x, float y, float z, bool bottom, bool top, bool left, bool right, bool front, bool back);
  19. const Keys& keys;
  20. const MouseButtons& buttons;
  21. float lengthAngle;
  22. float widthAngle;
  23. Vector pos;
  24. Mesh m;
  25. Texture texture;
  26. };
  27. #endif