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

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

Inheritance diagram for makVrv::DtGLFontManager:
Inheritance graph
[legend]

Classes

struct  FontKey
 
struct  FontKeyHasher
 

Public Member Functions

 DtGLFontManager (DtDe &de, const std::string &fontPath)
 
 ~DtGLFontManager ()
 
 DtGLFontManager ()=delete
 
 DtGLFontManager (const DtGLFontManager &rhs)=delete
 
DtGLFontManageroperator= (const DtGLFontManager &rhs)=delete
 
virtual DtFontInterfacegetFont (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
 
DtFontManagerInterfaceoperator= (const DtFontManagerInterface &rhs)=delete
 

Protected Member Functions

virtual DtFontInterfacegetDefaultFont (float size)
 

Protected Attributes

std::unordered_map< FontKey,
DtFont *, FontKeyHasher
myMap
 
std::vector< unsigned intmyTextures
 
DtDemyDe
 
bool myDefaultFontExists = false
 
std::string myDefaultFontFile
 
- Protected Attributes inherited from makVrv::DtFontManagerInterface
const std::string myFontPath
 

Constructor & Destructor Documentation

makVrv::DtGLFontManager::DtGLFontManager ( DtDe de,
const std::string &  fontPath 
)

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

makVrv::DtGLFontManager::~DtGLFontManager ( )

destructor

makVrv::DtGLFontManager::DtGLFontManager ( )
delete

not allowed

makVrv::DtGLFontManager::DtGLFontManager ( const DtGLFontManager rhs)
delete

Member Function Documentation

DtGLFontManager& makVrv::DtGLFontManager::operator= ( const DtGLFontManager rhs)
delete

not allowed

virtual DtFontInterface* makVrv::DtGLFontManager::getFont ( const std::string &  filename,
float  size 
)
overridevirtual

Get a font with a given filename and a size.

Implements makVrv::DtFontManagerInterface.

virtual void makVrv::DtGLFontManager::clear ( )
overridevirtual
virtual void makVrv::DtGLFontManager::addTextureListForDeletion ( const std::vector< unsigned int > &  textures)
overridevirtual

Void adds texture ids to the font manager to be deleted.

Implements makVrv::DtFontManagerInterface.

virtual void makVrv::DtGLFontManager::releaseResouces ( )
virtual

Releases all font resources. This queues all textures for deletion and calls flushTextureList.

virtual void makVrv::DtGLFontManager::flushTextureList ( )
virtual

Deletes all textured marked for deletion.

virtual DtFontInterface* makVrv::DtGLFontManager::getDefaultFont ( float  size)
protectedvirtual

internal

Member Data Documentation

std::unordered_map< FontKey, DtFont*, FontKeyHasher > makVrv::DtGLFontManager::myMap
protected
std::vector<unsigned int> makVrv::DtGLFontManager::myTextures
protected
DtDe& makVrv::DtGLFontManager::myDe
protected
bool makVrv::DtGLFontManager::myDefaultFontExists = false
protected
std::string makVrv::DtGLFontManager::myDefaultFontFile
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)