summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-07 17:08:15 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2017-08-07 17:08:15 +0200
commit8b275c0b0a1064a813ef14a109b64e1fce461893 (patch)
tree7bb1cc13d2eb9be2a344b4cd35f5e581df970f0d /src/RendererWorld.hpp
parent2017-08-05 (diff)
downloadAltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar
AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.gz
AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.bz2
AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.lz
AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.xz
AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.tar.zst
AltCraft-8b275c0b0a1064a813ef14a109b64e1fce461893.zip
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