Main Page | Class Hierarchy | Data Structures | File List | Data Fields | Globals

FTTextureGlyph Class Reference

#include <FTTextureGlyph.h>

Inheritance diagram for FTTextureGlyph:

FTGlyph

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 const FTPointRender (const FTPoint &pen)
 Renders this glyph at the current pen position.


Static Public Member Functions

void ResetActiveTexture ()
 Reset the currently active texture to zero to get into a known state before drawing a string.


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 5 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

const FTPoint & 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 FTPoint::X(), and FTPoint::Y().

void FTTextureGlyph::ResetActiveTexture  )  [inline, static]
 

Reset the currently active texture to zero to get into a known state before drawing a string.

This is to get round possible threading issues.

Definition at line 55 of file FTTextureGlyph.h.

Referenced by FTGLTextureFont::Render().


The documentation for this class was generated from the following files:
Generated on Sun Dec 5 22:24:07 2004 for FTGL by doxygen 1.3.6