ScummVM API documentation
hpl::cFontManager Class Reference
Inheritance diagram for hpl::cFontManager:
hpl::iResourceManager

Public Member Functions

 cFontManager (cGraphics *apGraphics, cGui *apGui, cResources *apResources)
 
iResourceBaseCreate (const tString &asName)
 
FontDataCreateFontData (const tString &asName, int alSize=16, unsigned short alFirstChar=32, unsigned short alLastChar=255)
 
void Destroy (iResourceBase *apResource)
 
void Unload (iResourceBase *apResource)
 
- Public Member Functions inherited from hpl::iResourceManager
 iResourceManager (cFileSearcher *apFileSearcher, LowLevelResources *apLowLevelResources, LowLevelSystem *apLowLevelSystem)
 
iResourceBaseGetByName (const tString &asName)
 
iResourceBaseGetByHandle (unsigned long alHandle)
 
cResourceBaseIterator GetResourceBaseIterator ()
 
void DestroyUnused (int alMaxToKeep)
 
virtual void DestroyAll ()
 
virtual void Update (float afTimeStep)
 

Additional Inherited Members

- Protected Member Functions inherited from hpl::iResourceManager
void BeginLoad (const tString &asFile)
 
void EndLoad ()
 
iResourceBaseFindLoadedResource (const tString &asName, tString &asFilePath)
 
void AddResource (iResourceBase *apResource, bool abLog=true)
 
void RemoveResource (iResourceBase *apResource)
 
unsigned long GetHandle ()
 
tString GetTabs ()
 
- Protected Attributes inherited from hpl::iResourceManager
unsigned long mlHandleCount
 
tResourceNameMap m_mapNameResources
 
tResourceHandleMap m_mapHandleResources
 
cFileSearchermpFileSearcher
 
LowLevelResourcesmpLowLevelResources
 
LowLevelSystemmpLowLevelSystem
 
unsigned long mlTimeStart
 
- Static Protected Attributes inherited from hpl::iResourceManager
static int mlTabCount
 

Member Function Documentation

◆ CreateFontData()

FontData* hpl::cFontManager::CreateFontData ( const tString asName,
int  alSize = 16,
unsigned short  alFirstChar = 32,
unsigned short  alLastChar = 255 
)

Create a new font

Parameters
asNamename of the font
alSizesize the characters are rendered in
alFirstCharfirst ASCII character to be rendered
alLastCharlast ASCII character to be rendered
Returns

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