1
#ifndef __FTExtrdGlyph__
2
#define __FTExtrdGlyph__
14
* FTExtrdGlyph is a specialisation of FTGlyph for creating tessellated
15
* extruded polygon glyphs.
17
* @see FTGlyphContainer
21
class FTGL_EXPORT FTExtrdGlyph : public FTGlyph
25
* Constructor. Sets the Error to Invalid_Outline if the glyphs isn't an outline.
27
* @param glyph The Freetype glyph to be processed
28
* @param depth The distance along the z axis to extrude the glyph
30
FTExtrdGlyph( FT_GlyphSlot glyph, float depth);
35
virtual ~FTExtrdGlyph();
38
* Renders this glyph at the current pen position.
40
* @param pen The current pen position.
41
* @return The advance distance for this glyph.
43
virtual float Render( const FTPoint& pen);
47
* Calculate the normal vector to 2 points. This is 2D and ignores
48
* the z component. The normal will be normalised
54
FTPoint GetNormal( const FTPoint &a, const FTPoint &b);
63
* Distance to extrude the glyph
70
#endif // __FTExtrdGlyph__