GLUTBITMAPLENGTH
Section: C Library Functions (3)
Updated: LOCAL
Page Index
BSD mandoc
NAME
glutBitmapLength
- Return the width of a bitmapped string, in pixels.
LIBRARY
OpenGLUT - bitmapfont
SYNOPSIS
In openglut.h
Ft int
Fn glutBitmapLength void *font const unsigned char *string
PARAMETERS
Bf Em
font
Ef
A bitmapped font identifier.
Bf Em
string
Ef
A NUL-terminated ASCII string.
DESCRIPTION
Returns the maximum horizontal OpenGL raster position
offset for a
Bf Sy
string
Ef
in a bitmapped
Bf Sy
font.
Ef
As with glutBitmapString(), newlines are taken into
consideration.
Returns 0 if the
Bf Sy
font
Ef
is invalid or if the
Bf Sy
string
Ef
is empty or
Bf Sy
NULL.
Ef
SEE ALSO
glutBitmapString(3)
glutBitmapWidth(3)
glutBitmapHeight(3)
glutStrokeLength(3)