Singleton asset resource manager.
More...
#include <ResourceManager.hpp>
|
std::shared_ptr< SDL_Texture > | LoadTexture (SDL_Renderer *renderer, std::string filepath) |
| Load a texture from file.
|
|
Singleton asset resource manager.
◆ Instance()
◆ LoadTexture()
std::shared_ptr< SDL_Texture > ResourceManager::LoadTexture |
( |
SDL_Renderer * | renderer, |
|
|
std::string | filepath ) |
|
inline |
Load a texture from file.
- Parameters
-
renderer | SDL renderer |
filepath | Relative file path from the executable |
- Returns
- std::shared_ptr<SDL_Texture>
The documentation for this struct was generated from the following file: