#ifndef GAME_H #define GAME_H #include "client/input/Keys.h" #include "client/input/MouseButtons.h" #include "client/math/Camera.h" #include "client/rendering/wrapper/Shader.h" #include "client/math/MatrixStack.h" #include "client/rendering/Mesh.h" #include "client/rendering/Texture.h" #include "client/rendering/FontRenderer.h" class Game final { public: Game(const Keys& keys, const MouseButtons& buttons, const Camera& camera, Ray& ray); void tick(); void renderWorld(float lag, MatrixStack& stack, Shader& sh); void renderTextOverlay(float lag, MatrixStack& stack, Shader& sh, FontRenderer& fr); private: void addCube(float x, float y, float z, bool bottom, bool top, bool left, bool right, bool front, bool back); const Keys& keys; const MouseButtons& buttons; const Camera& camera; Ray& ray; float lengthAngle; float widthAngle; Vector pos; Mesh m; Texture texture; }; #endif