|
SDL SPOOKY PLATFORMER ENGINE
0.2.0
An implementation of a platformer using sdl, implemented using an entity component system and efficient collision management.
|
#include <SpriteManager.hpp>
Public Member Functions | |
| int | startUp (SDL_Renderer *in) |
| std::shared_ptr< Sprite > | Load (const std::string &path) |
Public Member Functions inherited from ResourceManager< SpriteManager, Sprite > | |
| 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 | |
Protected Member Functions inherited from ResourceManager< SpriteManager, Sprite > | |
| 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... | |
Protected Attributes inherited from ResourceManager< SpriteManager, Sprite > | |
| 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 |
1.4.1