#include <FTGlyph.h>
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 50 of file FTGlyph.h.
Public Member Functions | |
virtual | ~FTGlyph () |
Destructor. | |
virtual const FTPoint & | Render (const FTPoint &pen, int renderMode)=0 |
Renders this glyph at the current pen position. | |
virtual float | Advance () const |
Return the advance width for this glyph. | |
virtual const FTBBox & | BBox () const |
Return the bounding box for this glyph. | |
virtual FT_Error | Error () const |
Queries for errors. | |
Protected Member Functions | |
FTGlyph (FT_GlyphSlot glyph) | |
Create a glyph. | |
Friends | |
class | FTBitmapGlyph |
class | FTBufferGlyph |
class | FTExtrudeGlyph |
class | FTOutlineGlyph |
class | FTPixmapGlyph |
class | FTPolygonGlyph |
class | FTTextureGlyph |
FTGlyph::FTGlyph | ( | FT_GlyphSlot | glyph | ) | [protected] |
Create a glyph.
glyph | The Freetype glyph to be processed |
virtual FTGlyph::~FTGlyph | ( | ) | [virtual] |
Destructor.
Renders this glyph at the current pen position.
pen | The current pen position. | |
renderMode | Render mode to display |
Implemented in FTBitmapGlyph, FTBufferGlyph, FTExtrudeGlyph, FTOutlineGlyph, FTPixmapGlyph, FTPolygonGlyph, and FTTextureGlyph.
virtual float FTGlyph::Advance | ( | ) | const [virtual] |
Return the advance width for this glyph.
virtual const FTBBox& FTGlyph::BBox | ( | ) | const [virtual] |
Return the bounding box for this glyph.
virtual FT_Error FTGlyph::Error | ( | ) | const [virtual] |
Queries for errors.
friend class FTBitmapGlyph [friend] |
friend class FTBufferGlyph [friend] |
friend class FTExtrudeGlyph [friend] |
friend class FTOutlineGlyph [friend] |
friend class FTPixmapGlyph [friend] |
friend class FTPolygonGlyph [friend] |
friend class FTTextureGlyph [friend] |