#include <RE_OGLTextureFont.h>

Public Types | |
| typedef UT_AssocArray< int, reGlyphInfo > | reGlyphInfoArray |
| typedef UT_AssocArray< int, int8 > | reGlyphKerningArray |
| typedef UT_AssocArray< int, reGlyphKerningArray > | reKerningArray |
| typedef UT_RefArray< reGlyphInfo > | reLowGlyphInfoArray |
| typedef UT_RefArray< int8 > | reLowGlyphKerningArray |
| 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) |
Definition at line 94 of file RE_OGLTextureFont.h.
| typedef UT_AssocArray<int, reGlyphInfo> RE_OGLTextureFont::reGlyphInfoArray |
Definition at line 108 of file RE_OGLTextureFont.h.
| typedef UT_AssocArray<int, int8> RE_OGLTextureFont::reGlyphKerningArray |
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.
| RE_OGLTextureFont::RE_OGLTextureFont | ( | const char * | name, | |
| float | size, | |||
| RE_OGLFontCache * | cache | |||
| ) |
| virtual RE_OGLTextureFont::~RE_OGLTextureFont | ( | ) | [virtual] |
| 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] |
| virtual void RE_OGLTextureFont::loadFont | ( | ) | [protected, virtual] |
| 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.
1.5.9