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

GltFontTexture Class Reference

GLT Textured font class. More...

#include <fonttex.h>

Inheritance diagram for GltFontTexture:

Inheritance graph
Collaboration diagram for GltFontTexture:

Collaboration graph
List of all members.

Public Methods

 GltFontTexture (void *data=NULL)

 ~GltFontTexture ()

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

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