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 <TextManager.hpp>
Public Member Functions | |
int | startUp (SDL_Renderer *in) |
int | shutDown () |
std::shared_ptr< TTF_Font > | Load (const std::string &path) |
TextManager (TextManager const &) = delete | |
Forbidden. More... | |
void | operator= (TextManager const &) = delete |
Forbidden. More... | |
![]() | |
bool | AddAllResource () |
bool | AddResource (const std::string &resourceName) |
std::shared_ptr< TTF_Font > | GetResource (const std::string &resourceName) |
std::shared_ptr< TTF_Font > | Load (const std::string &path) |
int | shutDown () |
Static Public Member Functions | |
static TextManager & | instance () |
Protected Attributes | |
SDL_Renderer * | ren |
The renderer. More... | |
![]() | |
std::map< std::string, std::string > | fileMap |
stores location of resources More... | |
std::map< std::string, std::pair< std::shared_ptr< TTF_Font >, int > > | resourceMap |
Internal resource mapping inherited by manager implementations. More... | |
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... | |
Singleton class for managing TTF_Font Resources
|
delete |
Forbidden.
|
inlinestatic |
Retrieves a singleton instance
|
inline |
Loads a resource using the ttf engine.
|
delete |
Forbidden.
|
inline |
Shuts down the TTF engine and resource manager.
|
inline |
starts up the TTF engine
in | the renderer to use for this manager. |
|
protected |
The renderer.