From 8b275c0b0a1064a813ef14a109b64e1fce461893 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Mon, 7 Aug 2017 20:08:15 +0500 Subject: 2017-08-07 --- src/RendererWorld.hpp | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'src/RendererWorld.hpp') 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 + +class RendererWorld: public Renderer { + GameState *gs; + std::mutex sectionsMutex; + std::map 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 -- cgit v1.2.3