summaryrefslogtreecommitdiffstats
path: root/src/RendererSectionData.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/RendererSectionData.hpp')
-rw-r--r--src/RendererSectionData.hpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/RendererSectionData.hpp b/src/RendererSectionData.hpp
index a60f671..1250d39 100644
--- a/src/RendererSectionData.hpp
+++ b/src/RendererSectionData.hpp
@@ -9,6 +9,20 @@
class World;
+enum BlockDirection {
+ down, //Y-
+ up, //Y+
+ north, //Z-
+ south, //Z+
+ west, //X-
+ east, //X+
+ none,
+};
+
+struct BlockLightness {
+ unsigned char face[BlockDirection::none] = { 0,0,0,0,0,0 };
+};
+
struct SectionsData {
Section section;
Section west;
@@ -18,9 +32,9 @@ struct SectionsData {
Section north;
Section south;
- unsigned char GetLight(const Vector &pos) const;
+ BlockLightness GetLight(const Vector &pos) const;
- unsigned char GetSkyLight(const Vector &pos) const;
+ BlockLightness GetSkyLight(const Vector &pos) const;
};
struct RendererSectionData {