#include <FTGlyph.h>
Inheritance diagram for FTGlyph:
Public Member Functions | |
FTGlyph (FT_GlyphSlot glyph, bool useDisplayList=true) | |
virtual | ~FTGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen)=0 |
const FTPoint & | Advance () const |
const FTBBox & | BBox () const |
FT_Error | Error () const |
FTGlyph (FT_GlyphSlot glyph, bool useDisplayList=true) | |
virtual | ~FTGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen)=0 |
const FTPoint & | Advance () const |
const FTBBox & | BBox () const |
FT_Error | Error () const |
Protected Attributes | |
FTPoint | advance |
FTBBox | bBox |
bool | useDisplayList |
FT_Error | err |
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.
FTGlyph::FTGlyph | ( | FT_GlyphSlot | glyph, | |
bool | useDisplayList = true | |||
) |
Constructor
glyph | The Freetype glyph to be processed | |
useDisplayList | Enable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists. |
Definition at line 4 of file FTGlyph.cxx.
References advance, FT_GlyphSlotRec_::advance, bBox, FT_Vector_::x, and FT_Vector_::y.
FTGlyph::~FTGlyph | ( | ) | [virtual] |
Destructor
Definition at line 16 of file FTGlyph.cxx.
FTGlyph::FTGlyph | ( | FT_GlyphSlot | glyph, | |
bool | useDisplayList = true | |||
) |
Constructor
glyph | The Freetype glyph to be processed | |
useDisplayList | Enable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists. |
virtual FTGlyph::~FTGlyph | ( | ) | [virtual] |
Destructor
Renders this glyph at the current pen position.
pen | The current pen position. |
const FTPoint& FTGlyph::Advance | ( | ) | const [inline] |
const FTBBox& FTGlyph::BBox | ( | ) | const [inline] |
Return the bounding box for this glyph.
Definition at line 63 of file FTGlyph.h.
Referenced by FTGLTextureFont::MakeGlyph().
FT_Error FTGlyph::Error | ( | ) | const [inline] |
Renders this glyph at the current pen position.
pen | The current pen position. |
const FTPoint& FTGlyph::Advance | ( | ) | const [inline] |
const FTBBox& FTGlyph::BBox | ( | ) | const [inline] |
FT_Error FTGlyph::Error | ( | ) | const [inline] |
FTPoint FTGlyph::advance [protected] |
The advance distance for this glyph
Definition at line 76 of file FTGlyph.h.
Referenced by FTGlyph(), FTPolyGlyph::Render(), FTExtrdGlyph::Render(), FTTextureGlyph::Render(), FTOutlineGlyph::Render(), FTBitmapGlyph::Render(), and FTPixmapGlyph::Render().
FTBBox FTGlyph::bBox [protected] |
The bounding box of this glyph.
Definition at line 81 of file FTGlyph.h.
Referenced by FTExtrdGlyph::FTExtrdGlyph(), and FTGlyph().
bool FTGlyph::useDisplayList [protected] |
FT_Error FTGlyph::err [protected] |
Current error code. Zero means no error.
Definition at line 93 of file FTGlyph.h.
Referenced by FTBitmapGlyph::FTBitmapGlyph(), FTExtrdGlyph::FTExtrdGlyph(), FTOutlineGlyph::FTOutlineGlyph(), FTPixmapGlyph::FTPixmapGlyph(), FTPolyGlyph::FTPolyGlyph(), and FTTextureGlyph::FTTextureGlyph().