Game.h 665 B

12345678910111213141516171819202122232425262728
  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. Vector pos;
  20. Mesh m;
  21. Texture texture;
  22. };
  23. #endif