glutInitDisplayMode man page
glutInitDisplayMode — Set the window creation display mode.
OpenGLUT - window
glutInitDisplayMode(unsigned int displayMode);
Requested display mode bitmask.
glutInitDisplayMode() allows you to control the mode for subsequent OpenGLUT windows.
is a combination of:
Red, green, blue framebuffer.
Red, green, blue, alpha framebuffer.
Indexed color framebuffer.
Multisampling mode. (not always available)
Left and right framebuffers.
Greyscale color mode.
Additionally, the following
features are implemented:
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 (while
windows do), and there is no way to drag an offscreen window onscreen for user interaction.
Borderless windows are very experimental, and their precise behavior is not set in stone. See also glutCreateMenuWindow().
The following are
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.
windows do not work with nVidia cards/drivers. (Both Win32 and X11)
seems 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.
glutCreateMenuWindow(3) glutInit(3) glutInitWindowSize(3) glutInitWindowPosition(3) glutInitDisplayString(3) glutSwapBuffers(3)
glutInit(3), glutInitDisplayString(3), glutInitWindowPosition(3), glutInitWindowSize(3), glutSetOption(3).
Explore man page connections for glutInitDisplayMode(3).