diff --git a/src/graphics/render/WorldRenderer.hpp b/src/graphics/render/WorldRenderer.hpp index c3e6b1669..d472b7b75 100644 --- a/src/graphics/render/WorldRenderer.hpp +++ b/src/graphics/render/WorldRenderer.hpp @@ -44,6 +44,30 @@ struct CompileTimeShaderSettings { }; class WorldRenderer { +public: + static bool showChunkBorders; + static bool showEntitiesDebug; + + WorldRenderer(Engine& engine, LevelFrontend& frontend, Player& player); + ~WorldRenderer(); + + void update(const Camera& camera, float delta); + + void renderFrame( + const DrawContext& context, + Camera& camera, + bool hudVisible, + PostProcessing& postProcessing + ); + + void clear(); + + void setDebug(bool flag); + + void toggleLightsDebug(); + + Weather& getWeather(); +private: Engine& engine; const Level& level; Player& player; @@ -106,27 +130,4 @@ public: std::unique_ptr texts; std::unique_ptr blockWraps; std::unique_ptr skeletons; - - static bool showChunkBorders; - static bool showEntitiesDebug; - - WorldRenderer(Engine& engine, LevelFrontend& frontend, Player& player); - ~WorldRenderer(); - - void update(const Camera& camera, float delta); - - void renderFrame( - const DrawContext& context, - Camera& camera, - bool hudVisible, - PostProcessing& postProcessing - ); - - void clear(); - - void setDebug(bool flag); - - void toggleLightsDebug(); - - Weather& getWeather(); };