SDL Breakout Engine
0.1.0
An implementation of a Breakout game using sdl, implemented with efficient resource management.
|
#include <SpriteManager.hpp>
Public Member Functions | |
int | startUp (SDL_Renderer *in) |
std::shared_ptr< Sprite > | Load (const std::string &path) |
![]() | |
bool | AddAllResource () |
bool | AddResource (const std::string &resourceName) |
std::shared_ptr< Sprite > | GetResource (const std::string &resourceName) |
std::shared_ptr< Sprite > | Load (const std::string &path) |
int | shutDown () |
Static Public Member Functions | |
static SpriteManager & | instance () |
Additional Inherited Members | |
![]() | |
ResourceManager () | |
ResourceManager (ResourceManager const &) | |
Allow subclasses to create a resource manager, but subclasses must ensure singleton functionality. More... | |
void | operator= (ResourceManager const &) |
Allow subclasses to assign to a resource manager, but subclasses must ensure singleton functionality. More... | |
![]() | |
std::map< std::string, std::string > | fileMap |
stores location of resources More... | |
std::map< std::string, std::pair< std::shared_ptr< Sprite >, int > > | resourceMap |
Internal resource mapping inherited by manager implementations. More... | |
Manages sprites which have an associated bitmap file.
|
inlinestatic |
Retrieves a singleton instance
|
inline |
Loads a resource using the SDL bitmap loader.
path | the path to load it from |
|
inline |
Simply loads available sprites from Assets/sprites
in | renderer |