diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-17 17:11:52 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-08-17 17:11:52 +0200 |
commit | c71fd5f2312bc70eec960c2785bf26d73334d6c3 (patch) | |
tree | a2552e127d69db6385cf84846b74c70c646f88f1 /src/RendererWorld.hpp | |
parent | 2017-08-16 (diff) | |
download | AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.gz AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.bz2 AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.lz AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.xz AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.tar.zst AltCraft-c71fd5f2312bc70eec960c2785bf26d73334d6c3.zip |
Diffstat (limited to 'src/RendererWorld.hpp')
-rw-r--r-- | src/RendererWorld.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/RendererWorld.hpp b/src/RendererWorld.hpp index fb10c88..d339706 100644 --- a/src/RendererWorld.hpp +++ b/src/RendererWorld.hpp @@ -15,8 +15,9 @@ class RendererWorld: public Renderer { void LoadedSectionController(); bool isRunning = true; //Blocks + std::mutex sectionsMutex; - std::map<Vector, RendererSection> sections; + std::map<Vector, RendererSection> sections; Shader *blockShader; void RenderBlocks(RenderState& renderState); //Entities @@ -35,4 +36,7 @@ public: double MaxRenderingDistance; void Update(); + + std::mutex renderDataMutex; + std::queue<RendererSectionData> renderData; };
\ No newline at end of file |