![]() |
VR-Forces 4.10 Class Documentation
|
Manages instances of fonts, the font will be kept in memory unless the manager is cleared. More...
Public Member Functions | |
| DtFontManager (const std::string &fontPath) | |
| Create the font manager along with the primary font search path. More... | |
| ~DtFontManager () | |
| DtFontSP | getFont (const std::string &filename, float size) |
| Get a font with a given filename and a size. More... | |
| void | clear () |
| void | addTextureListForDeletion (const std::vector< unsigned int > &textures) |
| Void adds texture ids to the font manager to be deleted. More... | |
| void | releaseResouces () |
| Releases all font resources. More... | |
| void | flushTextureList () |
| Deletes all textured marked for deletion. More... | |
Protected Types | |
| typedef std::pair< std::string, float > | FontId |
| typedef boost::unordered_map < FontId, DtFontWP > | FontMap |
Protected Attributes | |
| std::vector< unsigned int > | myTextures |
| FontMap | myMap |
| std::string | myFontPath |
Manages instances of fonts, the font will be kept in memory unless the manager is cleared.
|
protected |
|
protected |
| makVrv::DtFontManager::DtFontManager | ( | const std::string & | fontPath | ) |
Create the font manager along with the primary font search path.
| makVrv::DtFontManager::~DtFontManager | ( | ) |
| DtFontSP makVrv::DtFontManager::getFont | ( | const std::string & | filename, |
| float | size | ||
| ) |
Get a font with a given filename and a size.
| void makVrv::DtFontManager::clear | ( | ) |
| void makVrv::DtFontManager::addTextureListForDeletion | ( | const std::vector< unsigned int > & | textures | ) |
Void adds texture ids to the font manager to be deleted.
| void makVrv::DtFontManager::releaseResouces | ( | ) |
Releases all font resources.
This queues all textures for deletion and calls flushTextureList.
| void makVrv::DtFontManager::flushTextureList | ( | ) |
Deletes all textured marked for deletion.
|
protected |
|
protected |