From 4306d164722ca00add1414b9769dd20e11b1acb2 Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 10 Aug 2018 06:06:25 +0500 Subject: Support rotation in BlockStates --- src/AssetManager.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/AssetManager.hpp') diff --git a/src/AssetManager.hpp b/src/AssetManager.hpp index 992bd51..28cafb0 100644 --- a/src/AssetManager.hpp +++ b/src/AssetManager.hpp @@ -32,6 +32,12 @@ struct ParsedFace { glm::vec3 color; }; +struct BlockFaces { + glm::mat4 transform; + std::vector faces; + bool isBlock; +}; + struct BlockModel { bool IsBlock = false; std::string BlockName; @@ -145,7 +151,7 @@ struct AssetTexture : Asset { namespace AssetManager { void InitAssetManager(); - const BlockModel *GetBlockModelByBlockId(BlockId block); + BlockFaces &GetBlockModelByBlockId(BlockId block); std::string GetAssetNameByBlockId(BlockId block); -- cgit v1.2.3