#include <FTPolyGlyph.h>
Inheritance diagram for FTPolyGlyph:
Public Member Functions | |
FTPolyGlyph (FT_GlyphSlot glyph, bool useDisplayList) | |
virtual | ~FTPolyGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen) |
FTPolyGlyph (FT_GlyphSlot glyph, bool useDisplayList) | |
virtual | ~FTPolyGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen) |
Private Attributes | |
GLuint | glList |
Definition at line 22 of file FTPolyGlyph.h.
FTPolyGlyph::FTPolyGlyph | ( | FT_GlyphSlot | glyph, | |
bool | useDisplayList | |||
) |
Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.
glyph | The Freetype glyph to be processed | |
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 5 of file FTPolyGlyph.cxx.
References FTVectoriser::ContourCount(), FTGlyph::err, FT_GlyphSlotRec_::face, FT_GlyphSlotRec_::format, ft_glyph_format_outline, FTVectoriser::GetMesh(), GL_COMPILE, glBegin(), glEnd(), glEndList(), glGenLists(), glList, glNewList(), glTexCoord2f(), glVertex3f(), FTVectoriser::MakeMesh(), FT_SizeRec_::metrics, FTVectoriser::PointCount(), FTTesselation::PolygonType(), FT_FaceRec_::size, FTMesh::Tesselation(), FTMesh::TesselationCount(), FT_Size_Metrics_::x_ppem, and FT_Size_Metrics_::y_ppem.
FTPolyGlyph::~FTPolyGlyph | ( | ) | [virtual] |
FTPolyGlyph::FTPolyGlyph | ( | FT_GlyphSlot | glyph, | |
bool | useDisplayList | |||
) |
Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.
glyph | The Freetype glyph to be processed | |
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 FTPolyGlyph::~FTPolyGlyph | ( | ) | [virtual] |
Destructor
Renders this glyph at the current pen position.
pen | The current pen position. |
Implements FTGlyph.
Definition at line 67 of file FTPolyGlyph.cxx.
References FTGlyph::advance, glCallList(), glList, glTranslatef(), FTPoint::X(), and FTPoint::Y().
Renders this glyph at the current pen position.
pen | The current pen position. |
Implements FTGlyph.
GLuint FTPolyGlyph::glList [private] |
OpenGL display list
Definition at line 53 of file FTPolyGlyph.h.
Referenced by FTPolyGlyph(), Render(), and ~FTPolyGlyph().