29 # warning This header is deprecated. Please use <FTGL/ftgl.h> from now.
149 void (*destroyCallback) (
FTGLglyph *,
void *));
void ftglGetGlyphBBox(FTGLglyph *glyph, float bounds[6])
Return the bounding box for a glyph.
void ftglRenderGlyph(FTGLglyph *glyph, FTGL_DOUBLE penx, FTGL_DOUBLE peny, int renderMode, FTGL_DOUBLE *advancex, FTGL_DOUBLE *advancey)
Render a glyph at the current pen position and compute the corresponding advance.
struct _FTGLglyph FTGLglyph
float ftglGetGlyphAdvance(FTGLglyph *glyph)
Return the advance for a glyph.
FT_Error ftglGetGlyphError(FTGLglyph *glyph)
Query a glyph for errors.
FTGLglyph * ftglCreateCustomGlyph(FTGLglyph *base, void *data, void(*renderCallback)(FTGLglyph *, void *, FTGL_DOUBLE, FTGL_DOUBLE, int, FTGL_DOUBLE *, FTGL_DOUBLE *), void(*destroyCallback)(FTGLglyph *, void *))
Create a custom FTGL glyph object.
void ftglDestroyGlyph(FTGLglyph *glyph)
Destroy an FTGL glyph object.
FTBBox is a convenience class for handling bounding boxes.
FTBitmapGlyph is a specialisation of FTGlyph for creating bitmaps.
FTBufferGlyph is a specialisation of FTGlyph for memory buffer rendering.
FTExtrudeGlyph is a specialisation of FTGlyph for creating tessellated extruded polygon glyphs.
FTGlyph is the base class for FTGL glyphs.
virtual float Advance() const
Return the advance width for this glyph.
FTGlyph(FT_GlyphSlot glyph)
Create a glyph.
virtual const FTBBox & BBox() const
Return the bounding box for this glyph.
virtual const FTPoint & Render(const FTPoint &pen, int renderMode)=0
Renders this glyph at the current pen position.
virtual FT_Error Error() const
Queries for errors.
virtual ~FTGlyph()
Destructor.
FTOutlineGlyph is a specialisation of FTGlyph for creating outlines.
FTPixmapGlyph is a specialisation of FTGlyph for creating pixmaps.
FTPoint class is a basic 3-dimensional point or vector.
FTPolygonGlyph is a specialisation of FTGlyph for creating tessellated polygon glyphs.
FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs.
#define FTGL_BEGIN_C_DECLS