Rhythm
Game Engines Final Project
Loading...
Searching...
No Matches
resource_manager::ResouceManager Struct Reference

Manages resources such as images and fonts. More...

Static Public Member Functions

static ResouceManagerGetInstance (SDL_Renderer *renderer)
 Gets the singleton instance of the ResourceManager.
 
static ResouceManagerGetInstance ()
 Gets the singleton instance of the ResourceManager.
 
static Image * LoadImageResource (string filename)
 Loads an image resource.
 
static Scene * LoadSceneResource (string filename)
 Loads a scene resource.
 
static FontLoadFontResource (string filename, int size)
 Loads a font resource.
 

Detailed Description

Manages resources such as images and fonts.

Member Function Documentation

◆ 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
rendererThe 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
filenameThe path to the font file.
sizeThe size of the font.
Returns
The loaded Font.

◆ LoadImageResource()

static Image * resource_manager::ResouceManager::LoadImageResource ( string filename)
inlinestatic

Loads an image resource.

Parameters
filenameThe path to the image file.
Returns
The loaded Image.

◆ LoadSceneResource()

static Scene * resource_manager::ResouceManager::LoadSceneResource ( string filename)
inlinestatic

Loads a scene resource.

Parameters
filenameThe path to the scene file.
Returns
The loaded Scene.

The documentation for this struct was generated from the following file: