Class to manage assets.
More...
#include <AssetManager.hpp>
◆ AssetManager()
| GameEngine::AssetManager::AssetManager |
( |
| ) |
|
|
default |
◆ ~AssetManager()
| GameEngine::AssetManager::~AssetManager |
( |
| ) |
|
|
default |
◆ getFont()
| const Font& GameEngine::AssetManager::getFont |
( |
const std::string & |
fontName | ) |
const |
|
inline |
◆ getTexture()
| const Texture& GameEngine::AssetManager::getTexture |
( |
const std::string & |
textureName | ) |
const |
|
inline |
Get a texture previously loaded.
- Parameters
-
| textureName | name of the texture |
- Returns
- const reference to the texture
◆ loadFont()
| void GameEngine::AssetManager::loadFont |
( |
const std::string & |
filename | ) |
|
|
inline |
◆ loadTexture()
| void GameEngine::AssetManager::loadTexture |
( |
const std::string & |
filename, |
|
|
Recti |
area |
|
) |
| |
|
inline |
Load a texture from a file.
- Parameters
-
| filename | name of the file |
| area | area of the texture |
The documentation for this class was generated from the following file: