summaryrefslogtreecommitdiffstats
path: root/src/AssetManager.hpp
diff options
context:
space:
mode:
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);