GLUTBITMAPSTRING(3)

✨ NAME ✨

glutBitmapString β€” draw a string of bitmapped characters. Manual-page energy: GLUTBITMAPSTRING(3). That's the whole assignment, bestie.

πŸ’– LIBRARY πŸ’–

OpenGLUT - bitmapfont. Iconic library behavior, no cap.

🌸 SYNOPSIS 🌸

#include <openglut.h>

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

πŸŽ€ PARAMETERS πŸŽ€

  • font β€” a bitmapped font identifier. Like, which OpenGLUT bitmap font are we using, bestie?
  • string β€” a NUL-terminated ASCII string. It ends at the NUL, periodt.

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so glutBitmapString draws a string at the current OpenGL raster position using a bitmapped font. Slay. The raster position is advanced by the width of the string β€” so after it's done, the raster position has moved right by however wide your string is.

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. Multi-line text stays left-aligned to that starting spot, iykyk.

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
So if the font is not valid, the string is empty or NULL, or the current OpenGL raster position is invalid, you get nothing drawn and the raster position does not move. Zero drama, zero pixels. πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘


Signing off with date UNDATED and source/version UNTITLED(). Stay iconic, bestie. 🫢✨πŸ’