1UNTITLED                             LOCAL                            UNTITLED
2

NAME

4     glutSetOption — Allows you to set some general state/option variables.
5

LIBRARY

7     OpenGLUT - state
8

SYNOPSIS

10     #include <openglut.h>
11
12     void
13     glutSetOption(GLenum eWhat, int value);
14

PARAMETERS

16      eWhat     Enumerated parameter ID.
17
18      value     New value.
19

DESCRIPTION

21     Stores the  value  into a state variable named by  eWhat.
22
23     Allowable  eWhat  IDs are:
24
25      -  GLUT_ACTION_ON_WINDOW_CLOSE
26     Controls what happens when a window is closed by the user or system.
27     GLUT_ACTION_EXIT  will immediately exit the application (default).
28     GLUT_ACTION_GLUTMAINLOOP_RETURNS  will immediately return from the main
29     loop.   GLUT_ACTION_CONTINUE_EXECUTION  will contine execution of remain‐
30     ing windows.
31
32      -  GLUT_INIT_DISPLAY_MODE
33     An alternate way to set the display mode for a new window.
34
35      -  GLUT_INIT_WINDOW_HEIGHT
36     An alternate way to set the height of new windows.
37
38      -  GLUT_INIT_WINDOW_WIDTH
39     An alternate way to set the width of new windows.
40
41      -  GLUT_INIT_WINDOW_X
42     An alternate way to set the initial horizontal position of new windows.
43
44      -  GLUT_INIT_WINDOW_Y
45     An alternate way to set the initial vertical position of new windows.
46
47      -  GLUT_RENDERING_CONTEXT
48     Set to either  GLUT_CREATE_NEW_CONTEXT  or  GUT_USE_CURRENT_CONTEXT  to
49     indicate whether to share the current OpenGL rendering context with new
50     windows.
51
52      -  GLUT_WINDOW_CURSOR
53     Attempt to set the  current window  's current cursor as if by glut‐
54     SetCursor().
55

SEE ALSO

57     glutGet(3) glutDeviceGet(3) glutGetModifiers(3) glutLayerGet(3)
58     glutDestroyWindow(3) glutMainLoop(3) glutInitDisplayMode(3) glutInit(3)
59     glutInitWindowSize(3) glutInitWindowPosition(3) glutSetCursor(3)
60
61
62
63
64                                     Epoch
Impressum