Manages resources such as images and fonts.
More...
Manages resources such as images and fonts.
◆ GetInstance() [1/2]
| static ResouceManager * resource_manager::ResouceManager::GetInstance |
( |
| ) |
|
|
inlinestatic |
Gets the singleton instance of the ResourceManager.
- Returns
- The singleton instance.
◆ GetInstance() [2/2]
| static ResouceManager * resource_manager::ResouceManager::GetInstance |
( |
SDL_Renderer * | renderer | ) |
|
|
inlinestatic |
Gets the singleton instance of the ResourceManager.
- Parameters
-
| renderer | The SDL_Renderer to use. |
- Returns
- The singleton instance.
◆ LoadFontResource()
| static Font * resource_manager::ResouceManager::LoadFontResource |
( |
string | filename, |
|
|
int | size ) |
|
inlinestatic |
Loads a font resource.
- Parameters
-
| filename | The path to the font file. |
| size | The size of the font. |
- Returns
- The loaded Font.
◆ LoadImageResource()
| static Image * resource_manager::ResouceManager::LoadImageResource |
( |
string | filename | ) |
|
|
inlinestatic |
Loads an image resource.
- Parameters
-
| filename | The path to the image file. |
- Returns
- The loaded Image.
◆ LoadSceneResource()
| static Scene * resource_manager::ResouceManager::LoadSceneResource |
( |
string | filename | ) |
|
|
inlinestatic |
Loads a scene resource.
- Parameters
-
| filename | The path to the scene file. |
- Returns
- The loaded Scene.
The documentation for this struct was generated from the following file: