Game.h 649 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef GAME_H
  2. #define GAME_H
  3. #include "gaming-core/input/Buttons.h"
  4. #include "gaming-core/math/Frustum.h"
  5. #include "gaming-core/utils/Size.h"
  6. #include "gaming-core/wrapper/Shader.h"
  7. #include "gaming-core/wrapper/VertexBuffer.h"
  8. class Game final {
  9. Shader& shader;
  10. Buttons& buttons;
  11. const Size& size;
  12. VertexBuffer vertexBuffer;
  13. Frustum frustum;
  14. Button& up;
  15. Button& down;
  16. Button& left;
  17. Button& right;
  18. Button& front;
  19. Button& back;
  20. Vector3 oldPosition;
  21. Vector3 position;
  22. public:
  23. Game(Shader& shader, Buttons& buttons, const Size& size);
  24. void render(float lag);
  25. void tick();
  26. };
  27. #endif