CS4850 Final Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
ResourceManager Struct Reference

Singleton class to manage resources. More...

#include <ResourceManager.hpp>

Public Member Functions

std::shared_ptr< SDL_Texture > LoadTexture (SDL_Renderer *renderer, std::string filepath)
 Load a texture from a file.
 

Static Public Member Functions

static ResourceManagerInstance ()
 Get the instance of the resource manager.
 

Detailed Description

Singleton class to manage resources.

Member Function Documentation

◆ Instance()

static ResourceManager & ResourceManager::Instance ( )
inlinestatic

Get the instance of the resource manager.

Returns
ResourceManager& Resource manager instance

◆ LoadTexture()

std::shared_ptr< SDL_Texture > ResourceManager::LoadTexture ( SDL_Renderer * renderer,
std::string filepath )
inline

Load a texture from a file.

Parameters
rendererSDL renderer
filepathPath to the image file
Returns
std::shared_ptr<SDL_Texture> Shared pointer to the texture

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