Manages loading and storage of graphical assets.
More...
#include <AssetManager.hpp>
|
| std::unordered_map< std::string, sf::Texture > | _textures |
| |
| std::unordered_map< std::string, sf::Font > | _fonts |
| |
Manages loading and storage of graphical assets.
This class handles loading textures and fonts from files and provides access to them via string identifiers.
Definition at line 21 of file AssetManager.hpp.
◆ AssetManager()
| rtp::client::AssetManager::AssetManager |
( |
| ) |
|
|
default |
◆ ~AssetManager()
| rtp::client::AssetManager::~AssetManager |
( |
| ) |
|
|
default |
◆ getFont()
| sf::Font & rtp::client::AssetManager::getFont |
( |
const std::string & |
id | ) |
|
◆ getTexture()
| sf::Texture & rtp::client::AssetManager::getTexture |
( |
const std::string & |
id | ) |
|
◆ loadFont()
| void rtp::client::AssetManager::loadFont |
( |
const std::string & |
id, |
|
|
const std::string & |
filePath |
|
) |
| |
◆ loadTexture()
| void rtp::client::AssetManager::loadTexture |
( |
const std::string & |
id, |
|
|
const std::string & |
filePath |
|
) |
| |
◆ _fonts
| std::unordered_map<std::string, sf::Font> rtp::client::AssetManager::_fonts |
|
private |
◆ _textures
| std::unordered_map<std::string, sf::Texture> rtp::client::AssetManager::_textures |
|
private |
The documentation for this class was generated from the following file: