diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2017-10-17 20:33:13 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-01-13 03:39:32 +0100 |
commit | a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47 (patch) | |
tree | 160309441fbe58921d9483e8d12e8d2e57955b97 /src/RendererSection.cpp | |
parent | 2017-10-15 (diff) | |
download | AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.gz AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.bz2 AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.lz AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.xz AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.tar.zst AltCraft-a6e0c9ce9b6c468d0e622ffb5c05eba664ea4f47.zip |
Diffstat (limited to 'src/RendererSection.cpp')
-rw-r--r-- | src/RendererSection.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/RendererSection.cpp b/src/RendererSection.cpp index 55761f7..6fed06f 100644 --- a/src/RendererSection.cpp +++ b/src/RendererSection.cpp @@ -1,6 +1,12 @@ #include "RendererSection.hpp" -#include <thread> +#include <easylogging++.h> +#include <glm/gtc/matrix_transform.hpp> + +#include "AssetManager.hpp" +#include "World.hpp" +#include "Section.hpp" +#include "Renderer.hpp" const GLfloat vertices[] = { 0, 0, 0, @@ -444,7 +450,7 @@ const BlockModel* RendererSectionData::GetInternalBlockModel(const BlockId& id) if (it.first == id) return it.second; } - idModels.push_back(std::make_pair(id, am.GetBlockModelByBlockId(id))); + idModels.push_back(std::make_pair(id, AssetManager::Instance().GetBlockModelByBlockId(id))); return idModels.back().second; } |