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

FTBitmapGlyph Class Reference

#include <FTBitmapGlyph.h>

Inheritance diagram for FTBitmapGlyph:

FTGlyph

Detailed Description

FTBitmapGlyph is a specialisation of FTGlyph for creating bitmaps.

It provides the interface between Freetype glyphs and their openGL Renderable counterparts. This is an abstract class and derived classes must implement the Render function.

See also:
FTGlyphContainer

Definition at line 23 of file FTBitmapGlyph.h.

Public Member Functions

 FTBitmapGlyph (FT_GlyphSlot glyph)
 Constructor.

virtual ~FTBitmapGlyph ()
 Destructor.

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


Constructor & Destructor Documentation

FTBitmapGlyph::FTBitmapGlyph FT_GlyphSlot  glyph  ) 
 

Constructor.

Parameters:
glyph The Freetype glyph to be processed

Definition at line 5 of file FTBitmapGlyph.cpp.

References FT_RENDER_MODE_MONO.

FTBitmapGlyph::~FTBitmapGlyph  )  [virtual]
 

Destructor.

Definition at line 46 of file FTBitmapGlyph.cpp.


Member Function Documentation

const FTPoint & FTBitmapGlyph::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 52 of file FTBitmapGlyph.cpp.

References FTPoint::X(), and FTPoint::Y().


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