GLUTINITDISPLAYSTRING(3)
π 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: thedisplayModeparameter 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β enablesGLUT_INDEX. πluminanceβ enablesGLUT_LUMINANCE. enablesGLUT_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. enablesGLUT_ALPHA.rgbβ number ofRGBchannel bits, no aplha bits. enablesGLUT_RGB.rgbaβ number ofRGBAchannel bits. enablesGLUT_RGBA.depthβ number of depth buffer bits.stencilβ number of stencil buffer bits.doubleβ enablesGLUT_DOUBLE.singleβ enablesGLUT_SINGLE.stereoβ enablesGLUT_STERO. (yes, spelled exactly like that, don't @ me, i'm just the messenger π)accaβ number ofRGBAaccumulation bits. enablesGLUT_ACCUM.accβ number ofRGBaccumulation bits. enablesGLUT_ACCUM.samplesβ number of samples for GLX'sSGIS_Multisample. enablesGLUT_MULTISAMPLE.bufferβ [TODO] sets bits in index mode?conformantβ [TODO] conformant with what? enablesGLUT_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 descriptorwin32pfdβ Win32 specific: pixel format descriptorxvisualβ X11 specific: X Visualxstaticgrayβ 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 π§
GLUT_BORDERLESSandGLUT_OFFSCREENare not represented.- not all features appear to be implemented. in particular, numeric parameters and comparator specifications are lacking. see GLUT 3.7 sources for example.
- PyOpenGL
glutInitDisplayStringdocumentation lives athttp://pyopengl.sourceforge.net/documentation/manual/glutInitDisplayString.3GLUT.html
π 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. π πβ¨
π¦ 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