#include <Font.win32.h>
Collaboration diagram for Font:

Public Methods | |
| virtual | ~Font () |
| Destuctor. More... | |
| void | printf (int x, int y, int width, const char *fmt,...) |
| Renders a formated string. More... | |
| void | print (int x, int y, int width, const string &text) |
| Renders a string. | |
| void | print (int x, int y, int width, const char *str, int size) |
| Renders a c-string of a given length. More... | |
Static Public Methods | |
| void | setFont (Font *font) |
| Sets the default font. | |
| Font * | getFont () |
| Returns the default font. | |
| int | getDefaultFontWidth () |
| Returns the character width of the default font. | |
| int | getDefaultFontHeight () |
| Returns the character heigth of the default font. | |
Protected Methods | |
| Font (HDC dc) | |
| Protected contructor. More... | |
Protected Attributes | |
| int | base |
| OpenGL display list starting number. | |
Static Protected Attributes | |
| Font * | defaultFont = NULL |
| Current default font. | |
| int | fontHeight = 20 |
| The character height of the default font. | |
| int | fontWidth = 12 |
| The character width of the default font. | |
|
|
Destuctor.
|
|
|
Protected contructor. Private OS specific constructor.
|
|
||||||||||||||||||||||||
|
Renders a c-string of a given length. Renders a string to the current OpenGL context.
|
|
||||||||||||||||||||||||
|
Renders a formated string. Renders a formated string ala printf to the current OpenGL context.
|