GLUTSTROKECHARACTER(3)

πŸ“¦
version 3.8.0 Β· 2 versions
, in centos-stream 10, centos-stream 9, fedora 43, fedora 44, opensuse-leap 16.0

πŸ’– glutStrokeCharacter πŸ’–

okay so bestie, welcome to the OpenGLUT font corner of the manual, section 3, fonts division ✨ this one's called glutStrokeCharacter and it does exactly one iconic little thing: it draws a stroked character. that's it. that's the whole vibe. πŸŽ€


🌸 LIBRARY 🌸

OpenGLUT - fonts πŸ¦‹


✨ SYNOPSIS ✨

#include <openglut.h>

void
glutStrokeCharacter(void *fontID, int character);

🫢 PARAMETERS 🫢

  • fontID β€” a GLUT stroked font identifier, like the little name tag that tells the function which font is coming to the party πŸ’…
  • character β€” an ASCII character that is not NUL. like, any character, just not that one. πŸ™ˆ

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea: this function draws one single character from one single stroked font (which one? the one you picked with fontID, obvi) and it draws it using OpenGL GL_LINE_STRIP. ✨

these characters get drawn right at the origin in model space. and then β€” plot twist β€” at the end, the model space origin gets translated, based on how wide character is in fontID. so it's giving "draw here, then scoot over." πŸŽ€

and when does it do absolutely nothing? (yes, that's a real possibility, no cap 😭)

  • if the fontID is invalid πŸ’€
  • if the character is out of the font's range πŸ’€
fr fr, if either of those is true, this function is just standing there. no drawing. no translating. nothing. it's not mad, it's just not participating. 🧚

🌈 SEE ALSO 🌈

glBegin(3) glTranslatef(3) glutStrokeWidth(3) glutStrokeString(3) glutStrokeHeight(3) glutBitmapCharacter(3)


and that's the whole page, bestie!! go forth and stroke some characters, you've got this πŸ’–

this page came to you UNDATED, under the title UNTITLED() β€” yeah, it's mysterious like that. main character energy, honestly. πŸ‘‘