summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/AssetManager.hpp')
-rw-r--r--src/AssetManager.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/AssetManager.hpp b/src/AssetManager.hpp
index 28cafb0..1996c9e 100644
--- a/src/AssetManager.hpp
+++ b/src/AssetManager.hpp
@@ -24,6 +24,16 @@ enum FaceDirection {
none,
};
+static const Vector FaceDirectionVector[] = {
+ Vector(0,-1,0),
+ Vector(0,1,0),
+ Vector(0,0,-1),
+ Vector(0,0,1),
+ Vector(-1,0,0),
+ Vector(1,0,0),
+ Vector(0,0,0)
+};
+
struct ParsedFace {
FaceDirection visibility;
glm::mat4 transform;
@@ -36,6 +46,7 @@ struct BlockFaces {
glm::mat4 transform;
std::vector<ParsedFace> faces;
bool isBlock;
+ FaceDirection direction;
};
struct BlockModel {