summaryrefslogtreecommitdiffstats
path: root/src/RendererSectionData.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-16 17:19:18 +0100
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-03-16 17:19:18 +0100
commita493d1521a7f6ba19ce411598d6f8814bd2111f5 (patch)
tree65ff2fbf8b7d79ff57e2b8eabe268b1931006622 /src/RendererSectionData.hpp
parentOptimized light parsing (diff)
downloadAltCraft-a493d1521a7f6ba19ce411598d6f8814bd2111f5.tar
AltCraft-a493d1521a7f6ba19ce411598d6f8814bd2111f5.tar.gz
AltCraft-a493d1521a7f6ba19ce411598d6f8814bd2111f5.tar.bz2
AltCraft-a493d1521a7f6ba19ce411598d6f8814bd2111f5.tar.lz
AltCraft-a493d1521a7f6ba19ce411598d6f8814bd2111f5.tar.xz
AltCraft-a493d1521a7f6ba19ce411598d6f8814bd2111f5.tar.zst
AltCraft-a493d1521a7f6ba19ce411598d6f8814bd2111f5.zip
Diffstat (limited to '')
-rw-r--r--src/RendererSectionData.hpp17
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 &sections); \ No newline at end of file