#include <CFont.h>

Public Member Functions | |
| cGLUTBitmapFont () | |
| Constructor of cGLUTBitmapFont. | |
| virtual | ~cGLUTBitmapFont () |
| Destructor of cGLUTBitmapFont. | |
| virtual int | getCharacterWidth (const unsigned char &a_char) |
| Get the width of a particular character. | |
| virtual int | renderString (const char *a_str) |
Protected Member Functions | |
| int | getBestFontMatch () |
| Return the index of the current Font in the table of font names. | |
| int cGLUTBitmapFont::getBestFontMatch | ( | ) | [protected] |
Return the index of the current Font in the table of font names.
Return the index of the current font in the table of font name.
| int cGLUTBitmapFont::getCharacterWidth | ( | const unsigned char & | a_char | ) | [virtual] |
Get the width of a particular character.
Get the width of a particular character.
| a_char | The character (e.g. 'a') to look up. Characters less than 32 ('A') will generate errors. |
Reimplemented from cFont.
| int cGLUTBitmapFont::renderString | ( | const char * | a_str | ) | [virtual] |
Renders a string, should not contain any newlines.
Returns 0 for success, -1 for error.
Renders an actual string of text, initializing the font if necessary.
| a_str | The string to render; should not include newlines |
Implements cFont.