1 #ifndef DENGINE_FONTMANAGER_H 2 #define DENGINE_FONTMANAGER_H 22 void AddFont(std::string name,std::string filePath,
int size);
35 SDL_Texture*
Text(std::string fontName, SDL_Color color, std::string text);
45 std::map<std::string,TTF_Font*>
fonts;
48 #endif //DENGINE_FONTMANAGER_H void AddFont(std::string name, std::string filePath, int size)
Add a font to the system.
Definition: FontManager.cpp:16
void RemoveFont(std::string name)
Remove a font.
Definition: FontManager.cpp:24
static FontManager & GetInstance()
Returns an instance of the font manager.
Definition: FontManager.cpp:38
SDL_Texture * Text(std::string fontName, SDL_Color color, std::string text)
Definition: FontManager.cpp:30
Font Manager.
Definition: FontManager.h:13
~FontManager()
Destructor.
Definition: FontManager.cpp:10
std::map< std::string, TTF_Font * > fonts
Definition: FontManager.h:45
static FontManager * instance
Definition: FontManager.h:44