summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererWorld.hpp')
-rw-r--r--src/RendererWorld.hpp22
1 files changed, 19 insertions, 3 deletions
diff --git a/src/RendererWorld.hpp b/src/RendererWorld.hpp
index 83020aa..2ae4e37 100644
--- a/src/RendererWorld.hpp
+++ b/src/RendererWorld.hpp
@@ -1,12 +1,28 @@
#pragma once
#include "RendererSection.hpp"
+#include "GameState.hpp"
+#include "Shader.hpp"
-class RendererWorld {
- World* world;
+#include <glm/gtc/type_ptr.hpp>
+
+class RendererWorld: public Renderer {
+ GameState *gs;
+ std::mutex sectionsMutex;
+ std::map<Vector, RendererSection> sections;
+ EventListener listener;
+ Shader *shader;
+ std::thread resourceLoader;
+ void LoadedSectionController();
+ bool isRunning = true;
public:
- RendererWorld(World* ptr);
+ RendererWorld(GameState* ptr);
~RendererWorld();
+ void Render(RenderState& renderState) override;
+ void PrepareResources() override;
+ void PrepareRender() override;
+ bool IsNeedResourcesPrepare() override;
+ double MaxRenderingDistance;
}; \ No newline at end of file