#include <FTOutlineGlyph.h>
Inheritance diagram for FTOutlineGlyph:
Public Member Functions | |
FTOutlineGlyph (FT_GlyphSlot glyph, bool useDisplayList) | |
virtual | ~FTOutlineGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen) |
FTOutlineGlyph (FT_GlyphSlot glyph, bool useDisplayList) | |
virtual | ~FTOutlineGlyph () |
virtual const FTPoint & | Render (const FTPoint &pen) |
Private Attributes | |
GLuint | glList |
Definition at line 21 of file FTOutlineGlyph.h.
FTOutlineGlyph::FTOutlineGlyph | ( | 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 | |
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 FTOutlineGlyph.cxx.
References c, FTVectoriser::Contour(), FTVectoriser::ContourCount(), FTGlyph::err, FT_GlyphSlotRec_::format, ft_glyph_format_outline, GL_COMPILE, GL_LINE_LOOP, glBegin(), glEnd(), glEndList(), glGenLists(), glList, glNewList(), glVertex2f(), FTVectoriser::PointCount(), and size_t.
FTOutlineGlyph::~FTOutlineGlyph | ( | ) | [virtual] |
Destructor
Definition at line 49 of file FTOutlineGlyph.cxx.
References glDeleteLists(), and glList.
FTOutlineGlyph::FTOutlineGlyph | ( | 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 | |
useDisplayList | Enable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists. |
virtual FTOutlineGlyph::~FTOutlineGlyph | ( | ) | [virtual] |
Destructor
Renders this glyph at the current pen position.
pen | The current pen position. |
Implements FTGlyph.
Definition at line 55 of file FTOutlineGlyph.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 FTOutlineGlyph::glList [private] |
OpenGL display list
Definition at line 51 of file FTOutlineGlyph.h.
Referenced by FTOutlineGlyph(), Render(), and ~FTOutlineGlyph().