glutBitmapString - Man Page

Draw a string of bitmapped characters

Library

OpenGLUT - bitmapfont

Synopsis

#include <openglut.h>

void
glutBitmapString(void *font, const unsigned char *string);

Parameters


font

A bitmapped font identifier.


string

A NUL-terminated ASCII string.

Description

Draw a


string

the current OpenGL raster position using a bitmapped


font.

The raster position is advanced by the width of the string.

The starting raster position is used as the left margin for multi-line strings. Each newline character repositions the raster position at the beginning of the next line.

Nothing is drawn, and the raster position is unaffected when either:
-


font

is not a valid OpenGLUT bitmap font
-


string

is an empty string or NULL pointer
- The current OpenGL raster position is invalid

See Also

glRasterPos(3) glutBitmapCharacter(3)

Referenced By

glutBitmapCharacter(3), glutBitmapHeight(3), glutBitmapLength(3), glutStrokeString(3).