Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

FTExtrdGlyph Class Reference

#include <FTExtrdGlyph.h>

Inheritance diagram for FTExtrdGlyph:

FTGlyph List of all members.

Detailed Description

FTExtrdGlyph is a specialisation of FTGlyph for creating tessellated extruded polygon glyphs.

See also:
FTGlyphContainer

FTVectoriser

Definition at line 21 of file FTExtrdGlyph.h.

Public Member Functions

 FTExtrdGlyph (FT_GlyphSlot glyph, float depth)
 Constructor.

virtual ~FTExtrdGlyph ()
 Destructor.

virtual float Render (const FTPoint &pen)
 Renders this glyph at the current pen position.


Constructor & Destructor Documentation

FTExtrdGlyph::FTExtrdGlyph FT_GlyphSlot  glyph,
float  depth
 

Constructor.

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

Parameters:
glyph The Freetype glyph to be processed
depth The distance along the z axis to extrude the glyph

Definition at line 7 of file FTExtrdGlyph.cpp.

References FTVectoriser::Contour(), FTVectoriser::ContourCount(), FTVectoriser::ContourFlag(), FTVectoriser::GetMesh(), FTVectoriser::MakeMesh(), FTContour::Point(), FTTesselation::Point(), FTContour::PointCount(), FTTesselation::PointCount(), FTVectoriser::PointCount(), FTTesselation::PolygonType(), FTBBox::SetDepth(), FTMesh::Tesselation(), FTMesh::TesselationCount(), FTPoint::x, and FTPoint::y.

FTExtrdGlyph::~FTExtrdGlyph  )  [virtual]
 

Destructor.

Definition at line 102 of file FTExtrdGlyph.cpp.


Member Function Documentation

float FTExtrdGlyph::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 108 of file FTExtrdGlyph.cpp.

References FTPoint::x, and FTPoint::y.


The documentation for this class was generated from the following files:
Generated on Mon Aug 16 18:47:20 2004 for FTGL by doxygen 1.3.6