SysTutorials

Linux Manual Pages › Section 3

glutbitmapcharacter(3)

glutBitmapCharacter – Draw a bitmapped character

Library

OpenGLUT – bitmapfont

Synopsis

In openglut.h Ft void Fn glutBitmapCharacter void *font int character

Parameters

Bf Em
 font Ef
      A bitmapped font identifier.

Bf Em
 character Ef
 A character code.

Description

Draw a Bf Sy
 character Ef
 at the current OpenGL raster position using a bitmapped Bf Sy
 font. Ef
  The raster position is advanced by the width of the character.

Nothing is drawn, and the raster position is unaffected when either:
 –  Bf Sy
 character Ef
 is out of range
 –  Bf Sy
 font Ef
 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)