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

FTBitmapGlyph Class Reference

#include <FTBitmapGlyph.h>

Inheritance diagram for FTBitmapGlyph:

FTGlyph List of all members.

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 float Render (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, FTPoint::x, and FTPoint::y.

FTBitmapGlyph::~FTBitmapGlyph  )  [virtual]
 

Destructor.

Definition at line 47 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 53 of file FTBitmapGlyph.cpp.

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


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