diff options
Diffstat (limited to '')
-rw-r--r-- | src/RendererSectionData.hpp | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/RendererSectionData.hpp b/src/RendererSectionData.hpp index 42e1a06..134eef6 100644 --- a/src/RendererSectionData.hpp +++ b/src/RendererSectionData.hpp @@ -5,9 +5,24 @@ #include <glm/mat4x4.hpp> #include "Vector.hpp" +#include "Section.hpp" class World; +struct SectionsData { + Section section; + Section west; + Section east; + Section top; + Section bottom; + Section north; + Section south; + + unsigned char GetLight(const Vector &pos) const; + + unsigned char GetSkyLight(const Vector &pos) const; +}; + struct RendererSectionData { std::vector<glm::mat4> models; std::vector<glm::vec4> textures; @@ -18,4 +33,4 @@ struct RendererSectionData { bool forced = false; }; -RendererSectionData ParseSection(World *world, Vector sectionPosition);
\ No newline at end of file +RendererSectionData ParseSection(const SectionsData §ions);
\ No newline at end of file |