![]() |
VR-Forces Developer's Guide
|
Manages instances of fonts, the font will be kept in memory unless the manager is cleared.

Classes | |
| struct | FontKey |
| struct | FontKeyHasher |
Public Member Functions | |
| DtGLFontManager (DtDe &de, const std::string &fontPath) | |
| ~DtGLFontManager () | |
| DtGLFontManager ()=delete | |
| DtGLFontManager (const DtGLFontManager &rhs)=delete | |
| DtGLFontManager & | operator= (const DtGLFontManager &rhs)=delete |
| virtual DtFontInterface * | getFont (const std::string &filename, float size) override |
| virtual void | clear () override |
| virtual void | addTextureListForDeletion (const std::vector< unsigned int > &textures) override |
| virtual void | releaseResouces () |
| virtual void | flushTextureList () |
Public Member Functions inherited from makVrv::DtFontManagerInterface | |
| DtFontManagerInterface (const std::string &fontPath) | |
| ~DtFontManagerInterface () | |
| DtFontManagerInterface ()=delete | |
| DtFontManagerInterface (const DtFontManagerInterface &rhs)=delete | |
| DtFontManagerInterface & | operator= (const DtFontManagerInterface &rhs)=delete |
Protected Member Functions | |
| virtual DtFontInterface * | getDefaultFont (float size) |
Protected Attributes | |
| std::unordered_map< FontKey, DtFont *, FontKeyHasher > | myMap |
| std::vector< unsigned int > | myTextures |
| DtDe & | myDe |
| bool | myDefaultFontExists = false |
| std::string | myDefaultFontFile |
Protected Attributes inherited from makVrv::DtFontManagerInterface | |
| const std::string | myFontPath |
| makVrv::DtGLFontManager::DtGLFontManager | ( | DtDe & | de, |
| const std::string & | fontPath | ||
| ) |
Create the font manager along with the primary font search path.
| makVrv::DtGLFontManager::~DtGLFontManager | ( | ) |
destructor
|
delete |
not allowed
|
delete |
not DtGLFontManager
|
delete |
not allowed
|
overridevirtual |
Get a font with a given filename and a size.
Implements makVrv::DtFontManagerInterface.
|
overridevirtual |
Implements makVrv::DtFontManagerInterface.
|
overridevirtual |
Void adds texture ids to the font manager to be deleted.
Implements makVrv::DtFontManagerInterface.
|
virtual |
Releases all font resources. This queues all textures for deletion and calls flushTextureList.
|
virtual |
Deletes all textured marked for deletion.
|
protectedvirtual |
internal
|
protected |
|
protected |
|
protected |
|
protected |