glutBitmapCharacter man page

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)

 

Referenced By

glutBitmapHeight(3), glutBitmapString(3), glutBitmapWidth(3), glutStrokeCharacter(3).

October 14, 2017