#pragma once #include #include #include #include #include #include "../world/Block.hpp" #include "../graphics/Texture.hpp" struct TextureCoord{ unsigned int x,y,w,h; }; class AssetManager { Texture *textureAtlas; std::map assetIds; std::map assetTextures; public: AssetManager(); ~AssetManager(); void LoadTextureResources(); TextureCoord GetTextureByAssetName(std::string AssetName); std::string GetTextureAssetNameByBlockId(unsigned short BlockId, unsigned char BlockSide = 0); const GLuint GetTextureAtlas(); void LoadIds(); };