1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutInitDisplayMode — Set the window creation display mode.
5

LIBRARY

7     OpenGLUT - window
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutInitDisplayMode(unsigned int displayMode);
14

PARAMETERS

16      displayMode     Requested display mode bitmask.
17

DESCRIPTION

19     glutInitDisplayMode() allows you to control the mode for subsequent
20     OpenGLUT windows.
21
22     Allowable  displayMode  is a combination of:
23
24      -  GLUT_RGB
25     Red, green, blue framebuffer.
26
27      -  GLUT_RGBA
28     Red, green, blue, alpha framebuffer.
29
30      -  GLUT_INDEX
31     Indexed color framebuffer.
32
33      -  GLUT_SINGLE
34     Single-buffered mode.
35
36      -  GLUT_DOUBLE
37     Double-buffered mode.
38
39      -  GLUT_ACCUM
40     Accumulation buffer.
41
42      -  GLUT_ALPHA
43     Alpha channel.
44
45      -  GLUT_DEPTH
46     Depth buffering.
47
48      -  GLUT_STENCIL
49     Stencil buffering.
50
51      -  GLUT_MULTISAMPLE
52     Multisampling mode. (not always available)
53
54      -  GLUT_STEREO
55     Left and right framebuffers.
56
57      -  GLUT_LUMINANCE
58     Greyscale color mode.
59
60     Additionally, the following  experimental   features are implemented:
61
62      -  GLUT_OFFSCREEN
63     Offscreen windows are very much like onscreen windows that have been
64     dragged off of the edge of the screen.  The biggest issue is that off‐
65     screen windows do not support subwindows.  Other than that, onscreen win‐
66     dows that are dragged off of the edge may not store graphics that you
67     render (while  GLUT_OFFSCREEN  windows do), and there is no way to drag
68     an offscreen window onscreen for user interaction.
69
70      -  GLUT_BORDERLESS
71     Borderless windows are very experimental, and their precise behavior is
72     not set in stone.  See also glutCreateMenuWindow().
73
74     The following are  defaults  :
75
76      -  GLUT_RGB
77      -  GLUT_SINGLE
78

CAVEATS

80     Some display mode features were introduced by OpenGLUT.
81
82     Not all features or combinations of features are valid for all platforms.
83
84     There is no way to change the display mode of an open window.
85

BUGS

87      GLUT_OFFSCREEN  windows do not work with nVidia cards/drivers.  (Both
88     Win32 and X11)
89
90      GLUT_BORDERLESS  seems to vary by the window manager on X11, though twm
91     (for example) performs very similarly to WIN32. But KDE's window manager
92     (for example) does not let you send keystrokes to borderless windows
93     without OpenGLUT hacks.
94

SEE ALSO

96     glutCreateMenuWindow(3) glutInit(3) glutInitWindowSize(3)
97     glutInitWindowPosition(3) glutInitDisplayString(3) glutSwapBuffers(3)
98
99
100
101
102                                     Epoch
Impressum