glutSetOption (3) - Linux Manuals

glutSetOption: Allows you to set some general state/option variables.

NAME

glutSetOption - Allows you to set some general state/option variables.

LIBRARY

OpenGLUT - state

SYNOPSIS

In openglut.h Ft void Fn glutSetOption GLenum eWhat int value

PARAMETERS

Bf Em
 eWhat Ef
    Enumerated parameter ID.

Bf Em
 value Ef
    New value.

DESCRIPTION

Stores the Bf Sy
 value Ef
 into a state variable named by Bf Sy
 eWhat. Ef
 

Allowable Bf Sy
 eWhat Ef
 IDs are:


  Bf Sy
 GLUT_ACTION_ON_WINDOW_CLOSE Ef
 
Controls what happens when a window is closed by the user or system. Bf Sy
 GLUT_ACTION_EXIT Ef
  will immediately exit the application (default). Bf Sy
 GLUT_ACTION_GLUTMAINLOOP_RETURNS Ef
  will immediately return from the main loop. Bf Sy
 GLUT_ACTION_CONTINUE_EXECUTION Ef
  will contine execution of remaining windows.


  Bf Sy
 GLUT_INIT_DISPLAY_MODE Ef
 
An alternate way to set the display mode for a new window.


  Bf Sy
 GLUT_INIT_WINDOW_HEIGHT Ef
 
An alternate way to set the height of new windows.


  Bf Sy
 GLUT_INIT_WINDOW_WIDTH Ef
 
An alternate way to set the width of new windows.


  Bf Sy
 GLUT_INIT_WINDOW_X Ef
 
An alternate way to set the initial horizontal position of new windows.


  Bf Sy
 GLUT_INIT_WINDOW_Y Ef
 
An alternate way to set the initial vertical position of new windows.


  Bf Sy
 GLUT_RENDERING_CONTEXT Ef
 
Set to either Bf Sy
 GLUT_CREATE_NEW_CONTEXT Ef
 or Bf Sy
 GUT_USE_CURRENT_CONTEXT Ef
 to indicate whether to share the current OpenGL rendering context with new windows.


  Bf Sy
 GLUT_WINDOW_CURSOR Ef
 
Attempt to set the Bf Li
 current window Ef
 's current cursor as if by glutSetCursor().