GLUTSTROKESTRING(3)
π GLUTSTROKESTRING(3) β the glow-up edition π
okay bestie, pull up a chair, we're talking about glutStrokeString from the OpenGLUT - fonts library and it's literally gonna change your whole stroke-drawing era π
β¨ NAME β¨
glutStrokeString β draws a whole string of stroked characters, like a girlboss who refuses to write a for-loop π
π LIBRARY π
OpenGLUT - fonts π¦
πΈ SYNOPSIS πΈ
#include <openglut.h>
void
glutStrokeString(void *fontID, const unsigned char *string);
π PARAMETERS π
fontIDβ a GLUT stroked font identifier, aka which font's vibe you're serving today πstringβ a NUL-terminated ASCII string. yes bestie, it has to be terminated, do not test me π
π« DESCRIPTION π«
So this function draws a string in the font that fontID points at. It's almost the same as calling glutStrokeCharacter() on every single character in the string, one after another β like, basically twins fr fr. Mostly it's just a convenience function: it hides the loop from you (you're welcome π
) and it treats \n as a special symbol instead of a normal glyph. iconic behavior honestly.
The first character shows up at the current model space origin, and then that origin keeps moving along via successive translations. so like, each glyph nudges the origin forward and the next one lands there π
The newline character, \n (ASCII LF), is treated as an actual newline β it resets the origin horizontally and advances the line 1 font-height down the y-axis. line break AND a little scoot down, periodt β¨
π¨ It does nothing if: -fontIDis out of range -stringisNULL-stringis empty
not me just sitting there doing absolutely nothing π like okay go off I guess
Also, heads up: unlike glutBitmapString(), there's little performance advantage to using glutStrokeString() compared with just calling glutStrokeCharacter() yourself for every character. so if you were doing it for the speed, bestie... the speed is not the reason π
π SEE ALSO π
go read those next, iykyk π«Ά
and that's the whole page, bestie!! this one's from the UNDATED era and it's literally labeled UNTITLED() in the footer, which is giving mysterious main character energy ngl β no version, no date, just vibes βπβ¨
π¦ where this page comes from
- centos-stream 10: freeglut-devel 3.4.0-9.el10 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- centos-stream 9: freeglut-devel 3.2.1-10.el9 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.6.0-6.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 43: freeglut-devel 3.8.0-1.fc43 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- fedora 44: freeglut-devel 3.8.0-2.fc44 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- opensuse-leap 16.0: freeglut-devel 3.2.2-160000.2.2 Β· MIT
- Copyright 2004, the OpenGLUT contributors
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms