Signature
Parameters
Variables | Description |
---|---|
mode |
Display mode, normally the bitwise OR-ing of GLUT display mode bit masks. See values below:
|
Description
The initial display mode is used when creating top-level windows, subwindows, and overlays to determine the OpenGL
display mode for the to-be-created window or overlay.
Note that
GLUT_RGBA
selects the RGBA color model, but it does not request any bits of alpha
(sometimes called an alpha buffer or destination alpha) be allocated. To request alpha, specify
GLUT_ALPHA
. The same applies to
GLUT_LUMINANCE
.
Note that some bits "request" a capability and other bits "select" a capability. A requestable
capability may be assigned to the created window even if the bit for the capability was not set. For example, GLUT may
create a window with a depth buffer even though
GLUT_DEPTH
is not specified.
The
glutInitDisplayString
routine provides a more powerful way to select frame
buffer capabilities for GLUT windows.
GLUT_LUMINANCE Implementation Notes
GLUT_LUMINANCE
is not supported on most OpenGL platforms.
See Also
glutInit glutCreateWindow glutInitDisplayStringSample Code References
The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.
glutInitDisplayMode