RE_OGLTextureFont Class Reference

#include <RE_OGLTextureFont.h>

Inheritance diagram for RE_OGLTextureFont:

RE_OGLFont RE_Font

List of all members.

Public Types

typedef UT_AssocArray< int,
reGlyphInfo
reGlyphInfoArray
typedef UT_AssocArray< int, int8reGlyphKerningArray
typedef UT_AssocArray< int,
reGlyphKerningArray
reKerningArray
typedef UT_RefArray< reGlyphInforeLowGlyphInfoArray
typedef UT_RefArray< int8reLowGlyphKerningArray
typedef UT_RefArray
< reLowGlyphKerningArray
reLowKerningArray

Public Member Functions

 RE_OGLTextureFont (const char *name, float size, RE_OGLFontCache *cache)
virtual ~RE_OGLTextureFont ()
virtual void render (RE_Render *r, const char *s)
virtual int getCharWidth (char c, char prev)
virtual int getStringWidth (const char *s)
 Get the width of a string, including all kerning adjustments.

Static Public Member Functions

template<typename T >
static bool loadFontFile (const char *filename, T *owner)
static void beginFontDefer (RE_Render *r)
static void flushFontDefer (RE_Render *r)
static void endFontDefer (RE_Render *r)

Protected Member Functions

virtual void loadFont ()
 Override this to load your font and set myFontLoaded to true.
virtual void genDisplayLists (RE_Render *r)


Detailed Description

Definition at line 94 of file RE_OGLTextureFont.h.


Member Typedef Documentation

Definition at line 108 of file RE_OGLTextureFont.h.

Definition at line 109 of file RE_OGLTextureFont.h.

Definition at line 110 of file RE_OGLTextureFont.h.

Definition at line 112 of file RE_OGLTextureFont.h.

Definition at line 113 of file RE_OGLTextureFont.h.

Definition at line 114 of file RE_OGLTextureFont.h.


Constructor & Destructor Documentation

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

virtual RE_OGLTextureFont::~RE_OGLTextureFont (  )  [virtual]


Member Function Documentation

static void RE_OGLTextureFont::beginFontDefer ( RE_Render r  )  [static]

static void RE_OGLTextureFont::endFontDefer ( RE_Render r  )  [static]

static void RE_OGLTextureFont::flushFontDefer ( RE_Render r  )  [static]

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

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

Implements RE_OGLFont.

virtual int RE_OGLTextureFont::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_OGLTextureFont::getStringWidth ( const char *  s  )  [virtual]

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

Implements RE_Font.

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

Override this to load your font and set myFontLoaded to true.

Implements RE_Font.

template<typename T >
static bool RE_OGLTextureFont::loadFontFile ( const char *  filename,
T *  owner 
) [inline, static]

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

Render string s using the position defined by the renderer r's raster X, Y, and Z, set with the RE_Render::textMove* functions. Implicitly updates the raster position to point at the end of the rendered text.

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