1#include "Util/AssetStore.hpp"
6 m_Map[filepath] = m_Loader(filepath);
11 auto result = m_Map.find(filepath);
12 if (result != m_Map.end()) {
13 return result->second;
18 return m_Map[filepath];
23 m_Map.erase(filepath);
void Remove(const std::string &filepath)
Removes the asset associated with the specified filepath from the store.
Definition AssetStore.inl:22
void Load(const std::string &filepath)
Preload resources for future use.
Definition AssetStore.inl:5
T Get(const std::string &filepath)
Retrieves the asset associated with the specified filepath.
Definition AssetStore.inl:10
Useful tools for development.
Definition Animation.hpp:12