Manages loading, storing, and retrieving textures, meshes, and fonts for the engine. Provides static methods to access and clear loaded assets.
static Texture* LoadTexture(IRenderer& pRenderer, const std::string& pFilePath, const std::string& pName);
Loads a texture from file and stores it with the given name.
If the texture has already been loaded it just returns it.
static Texture& GetTexture(const std::string& pName);
Returns the texture associated with the name.
static Mesh* LoadMesh(const std::string& pFilePath, const std::string& pName);
Loads a mesh from file and stores it with the given name.
If the mesh has already been loaded it just returns it.
static Mesh* GetMesh(const std::string& pName);
Returns the mesh associated with the name.
static Font* LoadFont(const std::string& pFilePath, const std::string& pName);
Loads a font from file and stores it with the given name.
If the font has already been loaded it just returns it.
static Font& GetFont(const std::string& pName);
Returns the font associated with the name.
static void Clear();
Clears all loaded assets
Called when the program ends.