1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutGet — Allows you to query some general state/option variables.
5

LIBRARY

7     OpenGLUT - state
8

SYNOPSIS

10     #include <openglut.h>
11
12     int
13     glutGet(GLenum eWhat);
14

PARAMETERS

16      eWhat     Enumerated parameter ID.
17

DESCRIPTION

19     This function permits you to query for the current value of many differ‐
20     ent OpenGLUT state variables.  The current list is:
21
22      -  GLUT_ACTION_ON_WINDOW_CLOSE
23     Allows you to do something other than die if the user closes one of your
24     windows.
25
26      -  GLUT_DISPLAY_MODE_POSSIBLE
27
28      -  GLUT_ELAPSED_TIME
29
30      -  GLUT_INIT_DISPLAY_MODE
31
32      -  GLUT_INIT_STATE
33
34      -  GLUT_INIT_WINDOW_HEIGHT
35
36      -  GLUT_INIT_WINDOW_WIDTH
37
38      -  GLUT_INIT_WINDOW_X
39
40      -  GLUT_INIT_WINDOW_Y
41
42      -  GLUT_MENU_NUM_ITEMS
43
44      -  GLUT_RENDERING_CONTEXT
45     Allows you to specify context-sharing when you open new windows.
46
47      -  GLUT_SCREEN_HEIGHT
48
49      -  GLUT_SCREEN_HEIGHT_MM
50     Height in millimeters.
51
52      -  GLUT_SCREEN_WIDTH
53
54      -  GLUT_SCREEN_WIDTH_MM
55     Width in millimeters.
56
57      -  GLUT_VERSION
58
59      -  GLUT_WINDOW_ACCUM_ALPHA_SIZE
60
61      -  GLUT_WINDOW_ACCUM_BLUE_SIZE
62
63      -  GLUT_WINDOW_ACCUM_GREEN_SIZE
64
65      -  GLUT_WINDOW_ACCUM_RED_SIZE
66
67      -  GLUT_WINDOW_ALPHA_SIZE
68
69      -  GLUT_WINDOW_BLUE_SIZE
70
71      -  GLUT_WINDOW_BORDER_WIDTH
72
73      -  GLUT_WINDOW_BUFFER_SIZE
74
75      -  GLUT_WINDOW_COLORMAP_SIZE
76
77      -  GLUT_WINDOW_CURSOR
78
79      -  GLUT_WINDOW_DEPTH_SIZE
80
81      -  GLUT_WINDOW_DOUBLEBUFFER
82
83      -  GLUT_WINDOW_FORMAT_ID
84     System dependant.
85
86      -  GLUT_WINDOW_GREEN_SIZE
87
88      -  GLUT_WINDOW_HEADER_HEIGHT
89
90      -  GLUT_WINDOW_HEIGHT
91
92      -  GLUT_WINDOW_NUM_CHILDREN
93
94      -  GLUT_WINDOW_NUM_SAMPLES
95
96      -  GLUT_WINDOW_PARENT
97
98      -  GLUT_WINDOW_RED_SIZE
99
100      -  GLUT_WINDOW_RGBA
101
102      -  GLUT_WINDOW_STENCIL_SIZE
103
104      -  GLUT_WINDOW_STEREO
105
106      -  GLUT_WINDOW_WIDTH
107
108      -  GLUT_WINDOW_X
109
110      -  GLUT_WINDOW_Y
111
112     Most of the above are very obvious, and so full documentation is post‐
113     poned for now.
114

TODO

116     Go back and flesh out the above list.
117
118     This function is a bit messy, especially the WINCE part.  Fix.
119
120     Lots of code uses return to hop out.  Since it's such a sprawling func‐
121     tion, it's easy to be in the middle and not be 100% sure if there's any‐
122     thing important at the end of the function, or if it is safe to just
123     "drop out" of the current case and head for the bottom.
124
125     Causes crashes (assertion failure) if you call this before having called
126     glutInit()---other than GLUT_INIT_STATE and GLUT_ELAPSED_TIME.  Because
127     various things can cause OpenGLUT to become deinitialized, we should
128     probably either return default values of some kind or do minimal initial‐
129     ization if we are called without proper initialization.
130

SEE ALSO

132     glutSetOption(3) glutDeviceGet(3) glutGetModifiers(3) glutLayerGet(3)
133
134
135
136
137                                     Epoch
Impressum