12345678910111213141516171819202122232425262728 |
- #ifndef GAME_H
- #define GAME_H
- #include "client/input/Keys.h"
- #include "client/input/MouseButtons.h"
- #include "client/rendering/Shader.h"
- #include "client/math/MatrixStack.h"
- #include "client/math/Camera.h"
- #include "client/rendering/Mesh.h"
- #include "client/rendering/Texture.h"
- #include "client/rendering/FontRenderer.h"
- class Game
- {
- public:
- Game();
-
- void tick(const Keys& keys, const MouseButtons& mButtons, Camera& cam);
- void renderWorld(float lag, MatrixStack& stack, Shader& sh);
- void renderTextOverlay(float lag, MatrixStack& stack, Shader& sh, FontRenderer& fr);
-
- private:
- Vector pos;
- Mesh m;
- Texture texture;
- };
- #endif
|