#include <GameFont.h>
Inherits SubsystemInterface.
Inherited by W3DFontLibrary.
Public Member Functions | |
| FontLibrary (void) | |
| virtual | ~FontLibrary (void) |
| virtual void | init (void) |
| virtual void | reset (void) |
| virtual void | update (void) |
| GameFont * | getFont (AsciiString name, Int pointSize, Bool bold) |
| get a font pointer | |
| GameFont * | firstFont (void) |
| return first font | |
| GameFont * | nextFont (GameFont *font) |
| get next font in library | |
| Int | getCount (void) |
| return how many fonts are loaded in this lib | |
Public Member Functions inherited from SubsystemInterface | |
| SubsystemInterface () | |
| virtual | ~SubsystemInterface () |
| virtual void | postProcessLoad () |
| virtual void | draw (void) |
| void | UPDATE (void) |
| void | DRAW (void) |
| AsciiString | getName (void) |
| void | setName (AsciiString name) |
Protected Member Functions | |
| void | deleteAllFonts (void) |
| delete all fonts in this library | |
| void | linkFont (GameFont *font) |
| add to font list | |
| void | unlinkFont (GameFont *font) |
| remove font from list | |
| virtual Bool | loadFontData (GameFont *font)=0 |
| load the font data pointer based on everything else we already have set | |
| virtual void | releaseFontData (GameFont *font) |
| release the font data pointer | |
Protected Attributes | |
| GameFont * | m_fontList |
| list of fonts we have loaded | |
| Int | m_count |
| number of unique fonts loaded in this lib | |
Protected Attributes inherited from SubsystemInterface | |
| AsciiString | m_name |
Interface to access fonts for the system
Definition at line 59 of file GameFont.h.
| FontLibrary::FontLibrary | ( | void | ) |
Definition at line 138 of file GameFont.cpp.
|
virtual |
Definition at line 148 of file GameFont.cpp.
|
protected |
delete all fonts in this library
Delete all font data, DO NOT throw an exception ... the destructor uses this
Definition at line 108 of file GameFont.cpp.
|
inline |
return first font
Definition at line 99 of file GameFont.h.
|
inline |
return how many fonts are loaded in this lib
Definition at line 98 of file GameFont.h.
| GameFont * FontLibrary::getFont | ( | AsciiString | name, |
| Int | pointSize, | ||
| Bool | bold ) |
get a font pointer
Get a font from our list, if we don't have that font loaded we will attempt to load it
Definition at line 179 of file GameFont.cpp.
|
virtual |
Initialize what we need to in the font library
Implements SubsystemInterface.
Definition at line 159 of file GameFont.cpp.
|
protected |
load the font data pointer based on everything else we already have set
Implemented in W3DFontLibrary.
get next font in library
Definition at line 100 of file GameFont.h.
|
inlineprotectedvirtual |
release the font data pointer
Reimplemented in W3DFontLibrary.
Definition at line 90 of file GameFont.h.
|
virtual |
Reset the fonts for this font library
Implements SubsystemInterface.
Definition at line 167 of file GameFont.cpp.
|
protected |
|
inlinevirtual |
Implements SubsystemInterface.
Definition at line 72 of file GameFont.h.
|
protected |
number of unique fonts loaded in this lib
Definition at line 93 of file GameFont.h.
|
protected |
list of fonts we have loaded
Definition at line 92 of file GameFont.h.