Public Member Functions | |
cFontManager (cGraphics *apGraphics, cGui *apGui, cResources *apResources) | |
iResourceBase * | Create (const tString &asName) |
FontData * | CreateFontData (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) | |
iResourceBase * | GetByName (const tString &asName) |
iResourceBase * | GetByHandle (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 () |
iResourceBase * | FindLoadedResource (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 |
cFileSearcher * | mpFileSearcher |
LowLevelResources * | mpLowLevelResources |
LowLevelSystem * | mpLowLevelSystem |
unsigned long | mlTimeStart |
Static Protected Attributes inherited from hpl::iResourceManager | |
static int | mlTabCount |
FontData* hpl::cFontManager::CreateFontData | ( | const tString & | asName, |
int | alSize = 16 , |
||
unsigned short | alFirstChar = 32 , |
||
unsigned short | alLastChar = 255 |
||
) |
Create a new font
asName | name of the font |
alSize | size the characters are rendered in |
alFirstChar | first ASCII character to be rendered |
alLastChar | last ASCII character to be rendered |