GLUTINITDISPLAYMODE(3)
π glutInitDisplayMode(3) π
okay bestie, welcome to the OpenGLUT - window manual page, the one and only glutInitDisplayMode. this is the glow-up your windows get before they even exist. slay. β¨
π¦ NAME π¦
glutInitDisplayMode β Set the window creation display mode.
π LIBRARY π
OpenGLUT - window
π SYNOPSIS π
#include <openglut.h>
void
glutInitDisplayMode(unsigned int displayMode);
π PARAMETERS π
displayModeβ the requested display mode bitmask. it's giving "wishlist for my future window" energy fr fr.
β¨ DESCRIPTION β¨
so like, glutInitDisplayMode() lets you control the mode for subsequent OpenGLUT windows. you're basically setting the vibe before the window even shows up. main character energy π
the allowable displayMode is a combination of these little icons:
GLUT_RGBβ Red, green, blue framebuffer.GLUT_RGBAβ Red, green, blue, alpha framebuffer.GLUT_INDEXβ Indexed color framebuffer.GLUT_SINGLEβ Single-buffered mode.GLUT_DOUBLEβ Double-buffered mode.GLUT_ACCUMβ Accumulation buffer.GLUT_ALPHAβ Alpha channel.GLUT_DEPTHβ Depth buffering.GLUT_STENCILβ Stencil buffering.GLUT_MULTISAMPLEβ Multisampling mode. (not always available π)GLUT_STEREOβ Left and right framebuffers.GLUT_LUMINANCEβ Greyscale color mode.
π experimental era π
additionally, the following experimental features are implemented:
GLUT_OFFSCREENβ Offscreen windows are very much like onscreen windows that have been dragged off of the edge of the screen. The biggest issue is that offscreen windows do not support subwindows. Other than that, onscreen windows that are dragged off of the edge may not store graphics that you render (whileGLUT_OFFSCREENwindows do), and there is no way to drag an offscreen window onscreen for user interaction.GLUT_BORDERLESSβ Borderless windows are very experimental, and their precise behavior is not set in stone. See alsoglutCreateMenuWindow().
π the defaults π
the following are defaults:
GLUT_RGBGLUT_SINGLE
β οΈ CAVEATS β οΈ
- Some display mode features were introduced by OpenGLUT.
- Not all features or combinations of features are valid for all platforms.
- There is no way to change the display mode of an open window.
bestie that last one is a hard no. once the window is open, that mode is locked in. no take-backs, no glow-up mid-scroll. periodt. π
π BUGS π
GLUT_OFFSCREENwindows do not work with nVidia cards/drivers. (Both Win32 and X11)GLUT_BORDERLESSseems to vary by the window manager on X11, though twm (for example) performs very similarly to WIN32. But KDE's window manager (for example) does not let you send keystrokes to borderless windows without OpenGLUT hacks.
ngl the borderless situation is giving chaos. it lowkey depends on your window manager. π«
π«Ά SEE ALSO π«Ά
glutCreateMenuWindow(3) glutInit(3) glutInitWindowSize(3) glutInitWindowPosition(3) glutInitDisplayString(3) glutSwapBuffers(3)
and that's the whole page, bestie!! this one came from the OpenGLUT era, dated UNDATED, and the footer just says UNTITLED() like it's too mysterious to name itself. iconic honestly. go forth and set your display mode ππΈπ§
π¦ 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