From 76552663f49578e1d231214916461ac7cd93a44f Mon Sep 17 00:00:00 2001 From: LaG1924 <12997935+LaG1924@users.noreply.github.com> Date: Fri, 3 Aug 2018 22:07:29 +0500 Subject: Loading texture data in AssetTree --- src/AssetManager.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/AssetManager.hpp') diff --git a/src/AssetManager.hpp b/src/AssetManager.hpp index cfeb91a..b8748ae 100644 --- a/src/AssetManager.hpp +++ b/src/AssetManager.hpp @@ -158,6 +158,12 @@ struct AssetBlockModel : Asset { BlockModel blockModel; }; +struct AssetTexture : Asset { + std::vector textureData; + double x, y, w, h; + unsigned int realWidth, realHeight; +}; + class AssetManager { Texture *textureAtlas; std::map assetIds; @@ -209,4 +215,8 @@ public: void RecursiveWalkAsset(const std::string &assetPath, std::function fnc); AssetTreeNode *GetAssetByAssetName(const std::string &assetName); + + void LoadTextures(); + + void ParseAssetTexture(AssetTreeNode &node); }; -- cgit v1.2.3