FTGL 2.1.3~rc5
Public Member Functions
FTTextureGlyph Class Reference

FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs. More...

#include <FTTextureGlyph.h>

Inheritance diagram for FTTextureGlyph:
FTGlyph

Public Member Functions

 FTTextureGlyph (FT_GlyphSlot glyph, int id, int xOffset, int yOffset, int width, int height)
 Constructor.
virtual ~FTTextureGlyph ()
 Destructor.
virtual const FTPointRender (const FTPoint &pen, int renderMode)
 Render this glyph at the current pen position.

Detailed Description

FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs.

Definition at line 43 of file FTTextureGlyph.h.


Constructor & Destructor Documentation

FTTextureGlyph::FTTextureGlyph ( FT_GlyphSlot  glyph,
int  id,
int  xOffset,
int  yOffset,
int  width,
int  height 
)

Constructor.

Parameters:
glyphThe Freetype glyph to be processed
idThe id of the texture that this glyph will be drawn in
xOffsetThe x offset into the parent texture to draw this glyph
yOffsetThe y offset into the parent texture to draw this glyph
widthThe width of the parent texture
heightThe height (number of rows) of the parent texture
virtual FTTextureGlyph::~FTTextureGlyph ( ) [virtual]

Destructor.


Member Function Documentation

virtual const FTPoint& FTTextureGlyph::Render ( const FTPoint pen,
int  renderMode 
) [virtual]

Render this glyph at the current pen position.

Parameters:
penThe current pen position.
renderModeRender mode to display
Returns:
The advance distance for this glyph.

Implements FTGlyph.


The documentation for this class was generated from the following file: