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

FTBitmapGlyph Class Reference

FTBitmapGlyph is a specialisation of FTGlyph for creating bitmaps. More...

#include <FTBitmapGlyph.h>

Inheritance diagram for FTBitmapGlyph:

FTGlyph List of all members.

Public Member Functions

 FTBitmapGlyph (FT_Glyph glyph)
 Constructor.

virtual ~FTBitmapGlyph ()
 Destructor.

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


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.


Constructor & Destructor Documentation

FTBitmapGlyph::FTBitmapGlyph FT_Glyph  glyph  ) 
 

Constructor.

Parameters:
glyph The Freetype glyph to be processed

Definition at line 5 of file FTBitmapGlyph.cpp.

References FTGlyph::err, FTPoint::x, and FTPoint::y.

FTBitmapGlyph::~FTBitmapGlyph  )  [virtual]
 

Destructor.

Definition at line 50 of file FTBitmapGlyph.cpp.


Member Function Documentation

float 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 56 of file FTBitmapGlyph.cpp.

References FTGlyph::advance, FTPoint::x, and FTPoint::y.


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 15:16:39 2003 for FTGL by doxygen 1.3.3