Bubba-3D
0.9.0
Awesome game engine!
|
#include <FontManager.h>
Public Member Functions | |
Font * | loadAndFetchFont (std::string fontFace, int pixelSize) |
GLuint * | getTex () |
Static Public Member Functions | |
static FontManager * | getInstance () |
Protected Member Functions | |
virtual void | loadFont (std::string fontFace, int pixelSize) |
Used to load and perform initialization on fonts
Definition at line 36 of file FontManager.h.
|
static |
Returns the singleton instance of the FontManager
Definition at line 64 of file FontManager.cpp.
GLuint * FontManager::getTex | ( | ) |
Returns the texture id used to store the font glyphs in.
logic_error | If the method is called before any fonts have been loaded. |
Definition at line 40 of file FontManager.cpp.
Font * FontManager::loadAndFetchFont | ( | std::string | fontFace, |
int | pixelSize | ||
) |
If the font has been loaded before it is just returned. Otherwise the font is loaded and the characters are cached to the graphics card.
Definition at line 74 of file FontManager.cpp.
|
protectedvirtual |
Loads a font and caches it to the graphics card
Definition at line 84 of file FontManager.cpp.