Go to the source code of this file.
Functions | |
| void * | GetCurrentFont () |
| void | SetCurrentFont (void *font) |
| void | SetCurrentFont (int fontid) |
| int | GetFontHeight (void *font) |
| int | GetFontHeight () |
| int | GetFontHeight (int fontid) |
| void | Text (int x, int y, char *format,...) |
| void | Text3D (float x, float y, float z, char *format,...) |
This file includes some utility routines to draw 2D text on the screen The implementation depends on the glutBitmapCharacter() routine and GLUT fonts.
|
|
Return a pointer to the current font to be used in calls to Text() and Text3D(). |
|
|
Get the height in pixels of the current font.
|
|
|
Get the height in pixels of the current font.
|
|
|
Get the height in pixels for a specified font. Needed for calculating the Yoffset to go to the next line.
|
|
|
Set the current font. Use a number between 0 and 6, inclusive.
|
|
|
Set the current font. Use one of the GLUT font names: Possible values include:
|
|
||||||||||||||||||||
|
Draw text at the specified 2D location in screen coordinates in the current font. The text will be drawn in the current OpenGL color. The function accepts printf style format specification.
|
|
||||||||||||||||||||||||
|
Draw text at the specified 3D raster location. The text will be drawn in the current OpenGL color. The function accepts printf style format specification.
|
1.2.10 written by Dimitri van Heesch,
© 1997-2001