Game.h 817 B

12345678910111213141516171819202122232425262728293031
  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. public:
  13. Game();
  14. void tick(const Keys& keys, const MouseButtons& mButtons, 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. float lengthAngle;
  20. float widthAngle;
  21. Vector pos;
  22. Mesh m;
  23. Texture texture;
  24. };
  25. #endif