Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

GltFont Class Reference
[GLT]

Abstract base class for bitmap fonts. More...

#include <font.h>

Inheritance diagram for GltFont:

Inheritance graph
[legend]
List of all members.

Public Methods

 GltFont ()
 Constructor.

virtual ~GltFont ()
 Destructor.

virtual void init (void *)=0
 Initialise font using current OpenGL context.

virtual void clear ()=0
 Free all OpenGL resources (textures and display lists).

virtual bool print (const wchar_t ch) const=0
 Print a character at the current OpenGL raster position.

virtual bool print (const std::wstring &str) const=0
 Print a string at the current OpenGL raster position.

virtual void size (int &width, int &height, const std::wstring &str) const
 Get the size (in pixels) of a string.

virtual int width (const wchar_t ch) const
 Get the width of a particular character.

const int hStep () const
 Maximum horizontal distance between characters.

const int vStep () const
 Maximum vertical distance between characters.


Detailed Description

Abstract base class for bitmap fonts.

Definition at line 51 of file font.h.


The documentation for this class was generated from the following files:
Generated on Tue Nov 5 11:11:42 2002 for GLT by doxygen1.2.18