#include <fonttex.h>
Inheritance diagram for GltFontTexture:
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. |
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.