VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Attributes
makVrv::DtFontManager Class Reference

Manages instances of fonts, the font will be kept in memory unless the manager is cleared.

Public Member Functions

 DtFontManager (const std::string &fontPath)
 
 ~DtFontManager ()
 
DtFontSP getFont (const std::string &filename, float size)
 
void clear ()
 
void addTextureListForDeletion (const std::vector< unsigned int > &textures)
 
void releaseResouces ()
 
void flushTextureList ()
 

Protected Types

typedef std::pair< std::string,
float > 
FontId
 
typedef boost::unordered_map
< FontId, DtFontSP
FontMap
 

Protected Attributes

std::vector< unsigned intmyTextures
 
FontMap myMap
 
std::string myFontPath
 

Member Typedef Documentation

typedef std::pair<std::string,float> makVrv::DtFontManager::FontId
protected
typedef boost::unordered_map< FontId, DtFontSP > makVrv::DtFontManager::FontMap
protected

Constructor & Destructor Documentation

makVrv::DtFontManager::DtFontManager ( const std::string &  fontPath)

Create the font manager along with the primary font search path.

makVrv::DtFontManager::~DtFontManager ( )

Member Function Documentation

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.

Member Data Documentation

std::vector<unsigned int> makVrv::DtFontManager::myTextures
protected
FontMap makVrv::DtFontManager::myMap
protected
std::string makVrv::DtFontManager::myFontPath
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)