Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
W3DFontLibrary Class Reference

#include <W3DGameFont.h>

Inherits FontLibrary.

Public Member Functions

 W3DFontLibrary (void)
 
 ~W3DFontLibrary (void)
 
- Public Member Functions inherited from FontLibrary
 FontLibrary (void)
 
virtual ~FontLibrary (void)
 
virtual void init (void)
 
virtual void reset (void)
 
virtual void update (void)
 
GameFontgetFont (AsciiString name, Int pointSize, Bool bold)
 get a font pointer
 
GameFontfirstFont (void)
 return first font
 
GameFontnextFont (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

Bool loadFontData (GameFont *font)
 load the font data pointer based on everything else we already have set
 
void releaseFontData (GameFont *font)
 release the font data pointer
 
- Protected Member Functions inherited from FontLibrary
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
 

Additional Inherited Members

- Protected Attributes inherited from FontLibrary
GameFontm_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
 

Detailed Description

Our font library that uses W3D font implementations

Definition at line 63 of file W3DGameFont.h.

Constructor & Destructor Documentation

◆ W3DFontLibrary()

W3DFontLibrary::W3DFontLibrary ( void )
inline

Definition at line 68 of file W3DGameFont.h.

◆ ~W3DFontLibrary()

W3DFontLibrary::~W3DFontLibrary ( void )
inline

Definition at line 69 of file W3DGameFont.h.

Member Function Documentation

◆ loadFontData()

Bool W3DFontLibrary::loadFontData ( GameFont * font)
protectedvirtual

load the font data pointer based on everything else we already have set

Load a font

Implements FontLibrary.

Definition at line 74 of file W3DGameFont.cpp.

◆ releaseFontData()

void W3DFontLibrary::releaseFontData ( GameFont * font)
protectedvirtual

release the font data pointer

Release font data

Reimplemented from FontLibrary.

Definition at line 130 of file W3DGameFont.cpp.


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