Game Project
Loading...
Searching...
No Matches
ResourceManager Class Reference

Loads and returns the assets from file paths, and stores them in a map. Singleton. More...

#include <ResourceManager.h>

Public Member Functions

void LoadTexture (const std::string &id, const std::string &file_path)
 
const sf::Texture * GetTexture (const std::string &id) const
 
void UnloadTexture (const std::string &id)
 
void LoadFont (const std::string &id, const std::string &file_path)
 
const sf::Font * GetFont (const std::string &id) const
 
void UnloadFont (const std::string &id)
 
void UnloadAll ()
 

Static Public Member Functions

static ResourceManagerGetInstance ()
 Returns instance of the singleton class.
 

Detailed Description

Loads and returns the assets from file paths, and stores them in a map. Singleton.

Member Function Documentation

◆ GetInstance()

static ResourceManager & ResourceManager::GetInstance ( )
inlinestatic

Returns instance of the singleton class.

Returns

The documentation for this class was generated from the following files: