1
#ifndef __FTBitmapGlyph__
2
#define __FTBitmapGlyph__
14
* FTBitmapGlyph is a specialisation of FTGlyph for creating bitmaps.
16
* It provides the interface between Freetype glyphs and their openGL
17
* Renderable counterparts. This is an abstract class and derived classes
18
* must implement the <code>Render</code> function.
20
* @see FTGlyphContainer
23
class FTGL_EXPORT FTBitmapGlyph : public FTGlyph
29
* @param glyph The Freetype glyph to be processed
31
FTBitmapGlyph( FT_GlyphSlot glyph);
36
virtual ~FTBitmapGlyph();
39
* Renders this glyph at the current pen position.
41
* @param pen The current pen position.
42
* @return The advance distance for this glyph.
44
virtual float Render( const FTPoint& pen);
48
* The width of the glyph 'image'
50
unsigned int destWidth;
53
* The height of the glyph 'image'
55
unsigned int destHeight;
58
* The pitch of the glyph 'image'
60
unsigned int destPitch;
63
* Vector from the pen position to the topleft corner of the bitmap
68
* Pointer to the 'image' data
75
#endif // __FTBitmapGlyph__