#include <FTGlyph.h>
Inheritance diagram for FTGlyph:
It provides the interface between Freetype glyphs and their openGL renderable counterparts. This is an abstract class and derived classes must implement the render
function.
Definition at line 25 of file FTGlyph.h.
Public Member Functions | |
FTGlyph (FT_GlyphSlot glyph, bool useDisplayList=true) | |
Constructor. | |
virtual | ~FTGlyph () |
Destructor. | |
virtual const FTPoint & | Render (const FTPoint &pen)=0 |
Renders this glyph at the current pen position. | |
const FTPoint & | Advance () const |
Return the advance width for this glyph. | |
const FTBBox & | BBox () const |
Return the bounding box for this glyph. | |
FT_Error | Error () const |
Queries for errors. | |
Protected Attributes | |
FTPoint | advance |
The advance distance for this glyph. | |
FTBBox | bBox |
The bounding box of this glyph. | |
bool | useDisplayList |
Flag to enable or disable the use of Display Lists inside FTGL true turns ON display lists. | |
FT_Error | err |
Current error code. |
|
Constructor.
Definition at line 4 of file FTGlyph.cpp. |
|
Destructor.
Definition at line 16 of file FTGlyph.cpp. |
|
Return the advance width for this glyph.
|
|
Return the bounding box for this glyph.
|
|
Queries for errors.
|
|
Renders this glyph at the current pen position.
Implemented in FTBitmapGlyph, FTExtrdGlyph, FTOutlineGlyph, FTPixmapGlyph, FTPolyGlyph, and FTTextureGlyph. |
|
The advance distance for this glyph.
Definition at line 76 of file FTGlyph.h. Referenced by FTGlyph(). |
|
The bounding box of this glyph.
Definition at line 81 of file FTGlyph.h. Referenced by FTGlyph(). |
|
Current error code. Zero means no error. |
|
Flag to enable or disable the use of Display Lists inside FTGL
|