FTPolyGlyph Class Reference

#include <FTPolyGlyph.h>

Inheritance diagram for FTPolyGlyph:

FTGlyph FTGlyph List of all members.

Public Member Functions

 FTPolyGlyph (FT_GlyphSlot glyph, bool useDisplayList)
virtual ~FTPolyGlyph ()
virtual const FTPointRender (const FTPoint &pen)
 FTPolyGlyph (FT_GlyphSlot glyph, bool useDisplayList)
virtual ~FTPolyGlyph ()
virtual const FTPointRender (const FTPoint &pen)

Private Attributes

GLuint glList

Detailed Description

FTPolyGlyph is a specialisation of FTGlyph for creating tessellated polygon glyphs.

See also:
FTGlyphContainer

FTVectoriser

Definition at line 22 of file FTPolyGlyph.h.


Constructor & Destructor Documentation

FTPolyGlyph::FTPolyGlyph ( FT_GlyphSlot  glyph,
bool  useDisplayList 
)

Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.

Parameters:
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]

Destructor

Definition at line 61 of file FTPolyGlyph.cxx.

References glDeleteLists(), and glList.

FTPolyGlyph::FTPolyGlyph ( FT_GlyphSlot  glyph,
bool  useDisplayList 
)

Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.

Parameters:
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


Member Function Documentation

const FTPoint & FTPolyGlyph::Render ( const FTPoint pen  )  [virtual]

Renders this glyph at the current pen position.

Parameters:
pen The current pen position.
Returns:
The advance distance for this glyph.

Implements FTGlyph.

Definition at line 67 of file FTPolyGlyph.cxx.

References FTGlyph::advance, glCallList(), glList, glTranslatef(), FTPoint::X(), and FTPoint::Y().

virtual const FTPoint& FTPolyGlyph::Render ( const FTPoint pen  )  [virtual]

Renders this glyph at the current pen position.

Parameters:
pen The current pen position.
Returns:
The advance distance for this glyph.

Implements FTGlyph.


Member Data Documentation

GLuint FTPolyGlyph::glList [private]

OpenGL display list

Definition at line 53 of file FTPolyGlyph.h.

Referenced by FTPolyGlyph(), Render(), and ~FTPolyGlyph().


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:25:33 2011 for ROOT_528-00b_version by  doxygen 1.5.1