deFontManager Class Reference

Font Resource Manager. More...

#include <deFontManager.h>

Inheritance diagram for deFontManager:
deFileResourceManager deResourceManager

List of all members.

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.
deFontGetFontAt (int index) const
 Retrieves the font at the given index.
deFontGetFontWith (const char *filename) const
 Retrieves the font with the given filename or NULL if not loaded yet.
deFontCreateFont (const char *filename, deFontBuilder &builder)
 Creates a new font.
deFontLoadFont (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.

Detailed Description

Font Resource Manager.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

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.


Member Function Documentation

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.


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