summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.hpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-10 03:06:25 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-10 03:06:25 +0200
commit4306d164722ca00add1414b9769dd20e11b1acb2 (patch)
tree9843433490c39bb1351c295fea7971453940de5c /src/AssetManager.hpp
parentMoved ParsedFace and FaceDirection out of BlockModel (diff)
downloadAltCraft-4306d164722ca00add1414b9769dd20e11b1acb2.tar
AltCraft-4306d164722ca00add1414b9769dd20e11b1acb2.tar.gz
AltCraft-4306d164722ca00add1414b9769dd20e11b1acb2.tar.bz2
AltCraft-4306d164722ca00add1414b9769dd20e11b1acb2.tar.lz
AltCraft-4306d164722ca00add1414b9769dd20e11b1acb2.tar.xz
AltCraft-4306d164722ca00add1414b9769dd20e11b1acb2.tar.zst
AltCraft-4306d164722ca00add1414b9769dd20e11b1acb2.zip
Diffstat (limited to 'src/AssetManager.hpp')
-rw-r--r--src/AssetManager.hpp8
1 files changed, 7 insertions, 1 deletions
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<ParsedFace> 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);