GLUTINITDISPLAYSTRING(3)

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

πŸ’– GLUTINITDISPLAYSTRING β€” glutInitDisplayString(3) πŸ’–

okay bestie, sit down, we're doing glutInitDisplayString from the OpenGLUT - window library. it's the glow-up version of setting your window's display mode, and honestly? it's giving ✨ options ✨.


✨ NAME ✨

glutInitDisplayString β€” set the window creation display mode. that's it, that's the whole job, and she does it beautifully. πŸŽ€


🌸 LIBRARY 🌸

OpenGLUT - window β€” yeah, we're in the windowing corner of OpenGLUT. iykyk. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <openglut.h>

void
glutInitDisplayString(const char *displayMode);

πŸ“ PARAMETERS πŸ“

  • displayMode β€” the requested display mode string. that's your little wishlist, written out as text. 🫢

πŸ‘‘ DESCRIPTION πŸ‘‘

glutInitDisplayString() lets you define a display mode for subsequent windows that you open. and like, in most regards, the control you get is at least as fine as what you'd get with glutInitDisplayMode(). no cap. πŸ”₯

heads up queen: the displayMode parameter is case-sensitive, and tokens get separated by ASCII TABs (\t) and SPACEs. so yes, the whitespace matters, don't be sloppy with it. 😭

now here's the full token menu, and yes we're listing every single one:

  • index β€” enables GLUT_INDEX. πŸ’œ
  • luminance β€” enables GLUT_LUMINANCE. enables GLUT_STENCIL.
  • red β€” number of red channel bits.
  • green β€” number of green channel bits.
  • blue β€” number of blue channel bits.
  • alpha β€” number of alpha channel bits. enables GLUT_ALPHA.
  • rgb β€” number of RGB channel bits, no aplha bits. enables GLUT_RGB.
  • rgba β€” number of RGBA channel bits. enables GLUT_RGBA.
  • depth β€” number of depth buffer bits.
  • stencil β€” number of stencil buffer bits.
  • double β€” enables GLUT_DOUBLE.
  • single β€” enables GLUT_SINGLE.
  • stereo β€” enables GLUT_STERO. (yes, spelled exactly like that, don't @ me, i'm just the messenger πŸ’€)
  • acca β€” number of RGBA accumulation bits. enables GLUT_ACCUM.
  • acc β€” number of RGB accumulation bits. enables GLUT_ACCUM.
  • samples β€” number of samples for GLX's SGIS_Multisample. enables GLUT_MULTISAMPLE.
  • buffer β€” [TODO] sets bits in index mode?
  • conformant β€” [TODO] conformant with what? enables GLUT_DEPTH.
  • slow β€” [TODO] indicates if a frame-buffer is slow.
  • num β€” [TODO] appears to select a frame-buffer configuration by number from an unspecified list. probably very non-portable. πŸ™ˆ

a special capability name indicating where the value represents the Nth frame buffer configuration matching the description string:

  • win32pdf β€” Win32 specific: pixel format descriptor
  • win32pfd β€” Win32 specific: pixel format descriptor
  • xvisual β€” X11 specific: X Visual
  • xstaticgray β€” X11 specific: "staticgray" mode.
  • xgrayscale β€” X11 specific: "grayscale" mode.
  • xstaticcolor β€” X11 specific: "staticcolor" mode.
  • xpseudocolor β€” X11 specific: "pseudocolor" mode.
  • xtruecolor β€” X11 specific: "trueolor" mode. (yep, "trueolor", that's literally what it says ✨)
  • xdirectcolor β€” X11 specific: "directcolor" mode.

πŸ’€ CAVEATS πŸ’€

conflicting modes β€” like single and double β€” have the same interaction as for glutInitDisplayMode(). so like, don't be surprised when they beef, it's the same beef as always. 😭


🧚 TODO 🧚


🌈 SEE ALSO 🌈

glutInit(3) Β· glutInitWindowPosition(3) Β· glutInitWindowSize(3) Β· glutInitDisplayMode(3)


and that's the whole page, bestie. this one is dated <strong>UNDATED</strong> and comes from <strong>UNTITLED()</strong> β€” iconic in an unfinished-manuscript kinda way. go forth and set your display mode, you absolute main character. πŸ’…πŸ’–βœ¨