summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-11 03:10:33 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-11 03:10:33 +0200
commit809c4766ba13e85546a747fe5e0dbd82e1e6d549 (patch)
tree28c807512b8f76fe3f4555858a9492ff5b6cad39 /src/AssetManager.hpp
parentSupport rotation in BlockStates (diff)
downloadAltCraft-809c4766ba13e85546a747fe5e0dbd82e1e6d549.tar
AltCraft-809c4766ba13e85546a747fe5e0dbd82e1e6d549.tar.gz
AltCraft-809c4766ba13e85546a747fe5e0dbd82e1e6d549.tar.bz2
AltCraft-809c4766ba13e85546a747fe5e0dbd82e1e6d549.tar.lz
AltCraft-809c4766ba13e85546a747fe5e0dbd82e1e6d549.tar.xz
AltCraft-809c4766ba13e85546a747fe5e0dbd82e1e6d549.tar.zst
AltCraft-809c4766ba13e85546a747fe5e0dbd82e1e6d549.zip
Diffstat (limited to '')
-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 {