RE_OGLFont Class Reference

#include <RE_OGLFont.h>

Inheritance diagram for RE_OGLFont:

RE_Font RE_OGLBitmapFont RE_OGLTextureFont

List of all members.

Public Member Functions

 RE_OGLFont (const char *name, float size, RE_OGLFontCache *cache)
 ~RE_OGLFont ()
bool getListsRequested ()
void loadCache (RE_Render *r)

Protected Member Functions

virtual void genDisplayLists (RE_Render *r)=0

Protected Attributes

RE_OGLFontCachemyFontCache
bool myListsCreated
unsigned int myDisplayListBase
bool myListsRequested


Detailed Description

Definition at line 29 of file RE_OGLFont.h.


Constructor & Destructor Documentation

RE_OGLFont::RE_OGLFont ( const char *  name,
float  size,
RE_OGLFontCache cache 
)

RE_OGLFont::~RE_OGLFont (  ) 


Member Function Documentation

virtual void RE_OGLFont::genDisplayLists ( RE_Render r  )  [protected, pure virtual]

Generate display lists for this font. Override this in subclasses, and set myListsCreated to true when they have been.

Implemented in RE_OGLBitmapFont, and RE_OGLTextureFont.

bool RE_OGLFont::getListsRequested (  )  [inline]

Get whether this font has deferred its creation of display lists. The cache can, for example, call loadCache at a more convenient time when this is true.

Definition at line 39 of file RE_OGLFont.h.

void RE_OGLFont::loadCache ( RE_Render r  ) 

Load this font and generate its display lists. This should be called only when getListsRequested returns false.


Member Data Documentation

unsigned int RE_OGLFont::myDisplayListBase [protected]

Definition at line 62 of file RE_OGLFont.h.

Definition at line 55 of file RE_OGLFont.h.

bool RE_OGLFont::myListsCreated [protected]

Definition at line 59 of file RE_OGLFont.h.

bool RE_OGLFont::myListsRequested [protected]

Definition at line 66 of file RE_OGLFont.h.


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

Generated on Fri May 25 00:10:36 2012 for HDK by  doxygen 1.5.9