Scroll to navigation

GLUTBITMAPCHARACTER(3) Library Functions Manual (local) GLUTBITMAPCHARACTER(3)

NAME

glutBitmapCharacterDraw 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)