FTOutlineGlyph Class Reference

#include <FTOutlineGlyph.h>

Inheritance diagram for FTOutlineGlyph:

FTGlyph FTGlyph List of all members.

Public Member Functions

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

Private Attributes

GLuint glList

Detailed Description

FTOutlineGlyph is a specialisation of FTGlyph for creating outlines.

See also:
FTGlyphContainer

FTVectoriser

Definition at line 21 of file FTOutlineGlyph.h.


Constructor & Destructor Documentation

FTOutlineGlyph::FTOutlineGlyph ( 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
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.

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


Member Function Documentation

const FTPoint & FTOutlineGlyph::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 55 of file FTOutlineGlyph.cxx.

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

virtual const FTPoint& FTOutlineGlyph::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 FTOutlineGlyph::glList [private]

OpenGL display list

Definition at line 51 of file FTOutlineGlyph.h.

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


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