#include <FTExtrdGlyph.h>
Inheritance diagram for FTExtrdGlyph:

Public Member Functions | |
| FTExtrdGlyph (FT_GlyphSlot glyph, float depth, bool useDisplayList) | |
| virtual | ~FTExtrdGlyph () |
| virtual const FTPoint & | Render (const FTPoint &pen) |
| FTExtrdGlyph (FT_GlyphSlot glyph, float depth, bool useDisplayList) | |
| virtual | ~FTExtrdGlyph () |
| virtual const FTPoint & | Render (const FTPoint &pen) |
Private Member Functions | |
| FTPoint | GetNormal (const FTPoint &a, const FTPoint &b) |
| FTPoint | GetNormal (const FTPoint &a, const FTPoint &b) |
Private Attributes | |
| GLuint | glList |
Definition at line 21 of file FTExtrdGlyph.h.
| FTExtrdGlyph::FTExtrdGlyph | ( | FT_GlyphSlot | glyph, | |
| float | depth, | |||
| bool | useDisplayList | |||
| ) |
Constructor. Sets the Error to Invalid_Outline if the glyph isn't an outline.
| glyph | The Freetype glyph to be processed | |
| depth | The distance along the z axis to extrude the glyph | |
| useDisplayList | Enable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists. |
FTPoint point = subMesh->Point(pointIndex);
Definition at line 9 of file FTExtrdGlyph.cxx.
References FTGlyph::bBox, c, FTVectoriser::Contour(), FTVectoriser::ContourCount(), FTVectoriser::ContourFlag(), FTGlyph::err, FT_GlyphSlotRec_::face, FT_GlyphSlotRec_::format, ft_glyph_format_outline, ft_outline_reverse_fill, FTVectoriser::GetMesh(), GetNormal(), GL_COMPILE, GL_QUAD_STRIP, glBegin(), glEnd(), glEndList(), glGenLists(), glList, glNewList(), glNormal3d(), glNormal3dv(), glTexCoord2f(), glVertex3f(), j, FTVectoriser::MakeMesh(), FT_SizeRec_::metrics, FTContour::PointCount(), FTVectoriser::PointCount(), FTTesselation::PolygonType(), FTBBox::SetDepth(), FT_FaceRec_::size, size_t, FTMesh::Tesselation(), FTMesh::TesselationCount(), FT_Size_Metrics_::x_ppem, POINT::Y, and FT_Size_Metrics_::y_ppem.
| FTExtrdGlyph::~FTExtrdGlyph | ( | ) | [virtual] |
| FTExtrdGlyph::FTExtrdGlyph | ( | FT_GlyphSlot | glyph, | |
| float | depth, | |||
| bool | useDisplayList | |||
| ) |
Constructor. Sets the Error to Invalid_Outline if the glyph isn't an outline.
| glyph | The Freetype glyph to be processed | |
| depth | The distance along the z axis to extrude the glyph | |
| useDisplayList | Enable or disable the use of Display Lists for this glyph true turns ON display lists. false turns OFF display lists. |
| virtual FTExtrdGlyph::~FTExtrdGlyph | ( | ) | [virtual] |
Destructor
Renders this glyph at the current pen position.
| pen | The current pen position. |
Implements FTGlyph.
Definition at line 140 of file FTExtrdGlyph.cxx.
References FTGlyph::advance, glCallList(), glList, glTranslatef(), FTPoint::X(), and FTPoint::Y().
Calculate the normal vector to 2 points. This is 2D and ignores the z component. The normal will be normalised
| a | ||
| b |
Definition at line 153 of file FTExtrdGlyph.cxx.
References a, b, length, and sqrt().
Referenced by FTExtrdGlyph().
Renders this glyph at the current pen position.
| pen | The current pen position. |
Implements FTGlyph.
Calculate the normal vector to 2 points. This is 2D and ignores the z component. The normal will be normalised
| a | ||
| b |
GLuint FTExtrdGlyph::glList [private] |
OpenGL display list
Definition at line 63 of file FTExtrdGlyph.h.
Referenced by FTExtrdGlyph(), Render(), and ~FTExtrdGlyph().
1.5.1