UNTITLED LOCAL UNTITLED
NAME
glutBitmapCharacter -- Draw a bitmapped character
LIBRARY
OpenGLUT - bitmapfont
SYNOPSIS
#include <openglut.h>
void
glutBitmapCharacter(void *font, int character);
PARAMETERS
font A bitmapped font identifier.
character A character code.
DESCRIPTION
Draw a character at the current OpenGL raster position using a bitmapped font. The raster position is advanced by the width of the
character.
Nothing is drawn, and the raster position is unaffected when either:
- character is out of range
- font is not a valid OpenGLUT bitmap font
- The current OpenGL raster position is invalid
CAVEATS
glutBitmapString() is generally more efficient for strings of characters.
SEE ALSO glRasterPos(3)glutBitmapString(3)glutBitmapWidth(3)glutBitmapHeight(3)glutStrokeCharacter(3)
Epoch
Check Out this Related Man Page
UNTITLED LOCAL UNTITLED
NAME
glutStrokeString -- Draw a string of stroked characters.
LIBRARY
OpenGLUT - fonts
SYNOPSIS
#include <openglut.h>
void
glutStrokeString(void *fontID, const unsigned char *string);
PARAMETERS
fontID A GLUT stroked font identifier.
string A NUL-terminated ASCII string.
DESCRIPTION
This function draws a string in the font indicated by fontID. It is almost equivalent to calling glutStrokeCharacter() on each char-
acter in the string, successively. Mostly, it is a convenience function to hide the loop, and to treat
as a special symbol rather than
a normal glyph.
The first character displays at the current model space origin, The origin changes by successive translations.
The newline character,
(ASCII LF) is treated as a newline and resets the origin horizontally while advancing the line 1 font-height down
the y-axis.
Does nothing if:
- fontID is out of range.
- string is NULL
- string is empty
Unlike glutBitmapString(), there is little performance advantage to using glutStrokeString() as compared with calling glutStrokeCharacter()
yourself for every character.
SEE ALSO glutStrokeLength(3)glutStrokeCharacter(3)glutStrokeHeight(3)glutBitmapString(3)
Epoch