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

GltFontTexture Class Reference
[GLT]

GLT Textured font class. More...

#include <fonttex.h>

Inheritance diagram for GltFontTexture:

Inheritance graph
[legend]
Collaboration diagram for GltFontTexture:

Collaboration graph
[legend]
List of all members.

Public Methods

 GltFontTexture (void *data=NULL)
 Constructor.

 ~GltFontTexture ()
 Destructor.

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

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

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

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

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


Detailed Description

GLT Textured font class.

Based on Mark Kilgard's article and code:

A Simple OpenGL-based API for Texture Mapped Text http://www.opengl.org/developers/code/mjktips/TexFont/TexFont.html

Definition at line 53 of file fonttex.h.


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