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 <ImageManager.hpp>
Public Member Functions | |
int | shutDown () |
int | startUp (SDL_Renderer *in) |
std::shared_ptr< TextureWrapper > | Load (const std::string &path) |
ImageManager (ImageManager const &) = delete | |
don't allow copying More... | |
void | operator= (ImageManager const &) = delete |
don't allow assignment More... | |
![]() | |
bool | AddAllResource () |
bool | AddResource (const std::string &resourceName) |
std::shared_ptr< TextureWrapper > | GetResource (const std::string &resourceName) |
std::shared_ptr< TextureWrapper > | Load (const std::string &path) |
int | shutDown () |
Static Public Member Functions | |
static ImageManager & | 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< TextureWrapper >, int > > | resourceMap |
Internal resource mapping inherited by manager implementations. More... | |
uses SDL_image library to load images from disk, manages them.
|
delete |
don't allow copying
|
inlinestatic |
Returns a singleotn instance of this class.
|
inline |
Load an image at a given path.
path | the file location |
|
delete |
don't allow assignment
|
inline |
Shuts down the image engine and resource manager.
|
inline |
starts up the image engine and prepares the manager to load resources. Modify file mapping here.
in | the renderer being used. |