21 #ifndef HX3D_UTILS_ASSETS 22 #define HX3D_UTILS_ASSETS 24 #include "hx3d/utils/ptr.hpp" 25 #include "hx3d/utils/resource.hpp" 26 #include "hx3d/utils/log.hpp" 46 template <
class Asset,
class... Args>
47 void create(std::string name, Args... args);
55 template <
class Asset>
65 template <
class Asset>
70 std::map<std::type_index, std::map<std::string, Ptr<Resource>>> _assets;
73 #include "hx3d/utils/_inline/assets.inl.hpp" void add(std::string name, Ptr< Asset > asset)
Add an asset.
void create(std::string name, Args...args)
Create an asset with arguments.
std::shared_ptr< T > Ptr
Quick-typing shared ptr.