2D Engine v0.1.0
Loading...
Searching...
No Matches
ResourceManager Struct Reference

Singleton asset resource manager. More...

#include <ResourceManager.hpp>

Collaboration diagram for ResourceManager:
Collaboration graph

Public Member Functions

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

Static Public Member Functions

static ResourceManagerInstance ()
 Get the Instance object.
 

Detailed Description

Singleton asset resource manager.

Member Function Documentation

◆ Instance()

static ResourceManager & ResourceManager::Instance ( )
inlinestatic

Get the Instance object.

Returns
ResourceManager&

◆ LoadTexture()

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

Load a texture from file.

Parameters
rendererSDL renderer
filepathRelative file path from the executable
Returns
std::shared_ptr<SDL_Texture>

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