From 0e981d742b1f6ac098b909661923937eedd272db Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Tue, 27 Mar 2018 15:46:39 +0500 Subject: Moved model parsing to startup stage and implemented model rotation --- src/AssetManager.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/AssetManager.hpp') diff --git a/src/AssetManager.hpp b/src/AssetManager.hpp index 37031be..c386f7c 100644 --- a/src/AssetManager.hpp +++ b/src/AssetManager.hpp @@ -6,6 +6,8 @@ #include #include +#include +#include #include "Vector.hpp" #include "Block.hpp" @@ -124,6 +126,15 @@ struct BlockModel { }; std::vector Elements; + + struct ParsedFace { + ElementData::FaceDirection visibility; + glm::mat4 transform; + glm::vec4 texture; + glm::vec3 color; + }; + + std::vector parsedFaces; }; inline bool operator==(const BlockModel::ElementData::FaceData::Uv &lhs, @@ -164,4 +175,6 @@ public: void LoadBlockModels(); std::string GetAssetNameByBlockId(BlockId block); + + void ParseBlockModels(); }; -- cgit v1.2.3