Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

FTTextureGlyph Class Reference

#include <FTTextureGlyph.h>

Inheritance diagram for FTTextureGlyph:

FTGlyph List of all members.

Detailed Description

FTTextureGlyph is a specialisation of FTGlyph for creating texture glyphs.

See also:
FTGlyphContainer

Definition at line 20 of file FTTextureGlyph.h.

Public Member Functions

 FTTextureGlyph (FT_GlyphSlot glyph, int id, int xOffset, int yOffset, GLsizei width, GLsizei height)
 Constructor.

virtual ~FTTextureGlyph ()
 Destructor.

virtual float Render (const FTPoint &pen)
 Renders this glyph at the current pen position.


Constructor & Destructor Documentation

FTTextureGlyph::FTTextureGlyph FT_GlyphSlot  glyph,
int  id,
int  xOffset,
int  yOffset,
GLsizei  width,
GLsizei  height
 

Constructor.

Parameters:
glyph The Freetype glyph to be processed
id The id of the texture that this glyph will be drawn in
xOffset The x offset into the parent texture to draw this glyph
yOffset The y offset into the parent texture to draw this glyph
width The width of the parent texture
height The height (number of rows) of the parent texture

Definition at line 4 of file FTTextureGlyph.cpp.

References FT_RENDER_MODE_NORMAL, FTPoint::x, and FTPoint::y.

FTTextureGlyph::~FTTextureGlyph  )  [virtual]
 

Destructor.

Definition at line 54 of file FTTextureGlyph.cpp.


Member Function Documentation

float FTTextureGlyph::Render const FTPoint pen  )  [virtual]
 

Renders this glyph at the current pen position.

Parameters:
pen The current pen position.
Returns:
The advance distance for this glyph.

Implements FTGlyph.

Definition at line 58 of file FTTextureGlyph.cpp.

References GL_TEXTURE_2D_BINDING_EXT, FTPoint::x, and FTPoint::y.


The documentation for this class was generated from the following files:
Generated on Mon Aug 16 18:47:21 2004 for FTGL by doxygen 1.3.6