Singleton class to manage resources.
More...
#include <ResourceManager.hpp>
|
std::shared_ptr< SDL_Texture > | LoadTexture (SDL_Renderer *renderer, std::string filepath) |
| Load a texture from a file.
|
|
Singleton class to manage resources.
◆ Instance()
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
-
renderer | SDL renderer |
filepath | Path 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: