Font Resource Manager. More...
#include <deFontManager.h>
Public Member Functions | |
Constructors and Destructors | |
| deFontManager (deEngine *engine) | |
| Creates a new font resource manager linked to the given engine. | |
| ~deFontManager () | |
| Cleans up the font resource manager and reports leaking resources. | |
Management | |
| int | GetFontCount () const |
| retrieves the count of fonts. | |
| deFont * | GetFontAt (int index) const |
| Retrieves the font at the given index. | |
| deFont * | GetFontWith (const char *filename) const |
| Retrieves the font with the given filename or NULL if not loaded yet. | |
| deFont * | CreateFont (const char *filename, deFontBuilder &builder) |
| Creates a new font. | |
| deFont * | LoadFont (const char *filename, const char *basePath, bool asynchron) |
| Loads a font from the given file relative to the given base path. | |
System Peer Management | |
| void | SystemGraphicLoad () |
| Graphic System Peers of all stored resources have to be created. | |
| void | SystemGraphicUnload () |
| Graphic System Peers of all stored resources have to be freed. | |
Resource only Functions | |
Those functions are only for resource objects and should never be called directly from an application. | |
| void | RemoveResource (deResource *resource) |
| Removes the given resource from the manager without freeing it. | |
Font Resource Manager.
| deFontManager::deFontManager | ( | deEngine * | engine ) |
Creates a new font resource manager linked to the given engine.
| deFontManager::~deFontManager | ( | ) |
Cleans up the font resource manager and reports leaking resources.
| deFont* deFontManager::CreateFont | ( | const char * | filename, |
| deFontBuilder & | builder | ||
| ) |
Creates a new font.
| deFont* deFontManager::GetFontAt | ( | int | index ) | const |
Retrieves the font at the given index.
| int deFontManager::GetFontCount | ( | ) | const |
retrieves the count of fonts.
| deFont* deFontManager::GetFontWith | ( | const char * | filename ) | const |
Retrieves the font with the given filename or NULL if not loaded yet.
| deFont* deFontManager::LoadFont | ( | const char * | filename, |
| const char * | basePath, | ||
| bool | asynchron | ||
| ) |
Loads a font from the given file relative to the given base path.
| void deFontManager::RemoveResource | ( | deResource * | resource ) | [virtual] |
Removes the given resource from the manager without freeing it.
Implements deResourceManager.
| void deFontManager::SystemGraphicLoad | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be created.
Reimplemented from deResourceManager.
| void deFontManager::SystemGraphicUnload | ( | ) | [virtual] |
Graphic System Peers of all stored resources have to be freed.
Reimplemented from deResourceManager.
1.7.2