1
#ifndef __FTTextureGlyph__
2
#define __FTTextureGlyph__
14
* FTTextureGlyph is a specialisation of FTGlyph for creating texture
17
* @see FTGlyphContainer
20
class FTGL_EXPORT FTTextureGlyph : public FTGlyph
26
* @param glyph The Freetype glyph to be processed
27
* @param id The id of the texture that this glyph will be
29
* @param xOffset The x offset into the parent texture to draw
31
* @param yOffset The y offset into the parent texture to draw
33
* @param width The width of the parent texture
34
* @param height The height (number of rows) of the parent texture
36
FTTextureGlyph( FT_GlyphSlot glyph, int id, int xOffset, int yOffset, GLsizei width, GLsizei height);
41
virtual ~FTTextureGlyph();
44
* Renders this glyph at the current pen position.
46
* @param pen The current pen position.
47
* @return The advance distance for this glyph.
49
virtual float Render( const FTPoint& pen);
53
* The width of the glyph 'image'
58
* The height of the glyph 'image'
63
* Vector from the pen position to the topleft corner of the pixmap
68
* The texture co-ords of this glyph within the texture.
73
* The texture index that this glyph is contained in.
78
* The texture index of the currently active texture
80
* We call glGetIntegerv( GL_TEXTURE_2D_BINDING, activeTextureID);
81
* to get the currently active texture to try to reduce the number
82
* of texture bind operations
84
GLint activeTextureID;
89
#endif // __FTTextureGlyph__