RE_OGLBitmapFont Class Reference

#include <RE_OGLBitmapFont.h>

Inheritance diagram for RE_OGLBitmapFont:

RE_OGLFont RE_Font

List of all members.

Public Member Functions

 RE_OGLBitmapFont (const char *name, float size, RE_OGLFontCache *cache)
 ~RE_OGLBitmapFont ()
virtual void render (RE_Render *r, const char *s)
 These three are overridden from RE_Font. See RE_Font for a description.
virtual int getCharWidth (char c, char)
virtual int getStringWidth (const char *s)
 Get the width of a string, including all kerning adjustments.

Protected Member Functions

virtual void loadFont ()
 Overridden from RE_Font. See RE_Font for a description.
virtual void genDisplayLists (RE_Render *r)
 Overridden from RE_OGLFont. See RE_OGLFont for a description.


Detailed Description

Definition at line 31 of file RE_OGLBitmapFont.h.


Constructor & Destructor Documentation

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

RE_OGLBitmapFont::~RE_OGLBitmapFont (  ) 


Member Function Documentation

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

Overridden from RE_OGLFont. See RE_OGLFont for a description.

Implements RE_OGLFont.

virtual int RE_OGLBitmapFont::getCharWidth ( char  c,
char  prev 
) [virtual]

Get the width, in pixels, of a particular character as laid out on the screen, including kerning. This is better thought of as answering the question "how far horizontally will the font renderer travel if it renders c after prev?"

Implements RE_Font.

virtual int RE_OGLBitmapFont::getStringWidth ( const char *  s  )  [virtual]

Get the width of a string, including all kerning adjustments.

Implements RE_Font.

virtual void RE_OGLBitmapFont::loadFont (  )  [protected, virtual]

Overridden from RE_Font. See RE_Font for a description.

Implements RE_Font.

virtual void RE_OGLBitmapFont::render ( RE_Render r,
const char *  s 
) [virtual]

These three are overridden from RE_Font. See RE_Font for a description.

Implements RE_Font.


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