|  | 
Allows you to query some general state/option variables. 
 
 This function permits you to query for the current value of many different OpenGLUT state variables. The current list is:Parameters:
  
    |  | eWhat | Enumerated parameter ID. | 
 
 
GLUT_ACTION_ON_WINDOW_CLOSE Allows you to do something other than die if the user closes one of your windows.
 
 
GLUT_DISPLAY_MODE_POSSIBLE 
 
 
 
 
 
 
 
 
 
 
GLUT_RENDERING_CONTEXT Allows you to specify context-sharing when you open new windows.
 
 
 
GLUT_SCREEN_HEIGHT_MM Height in millimeters.
 
 
 
GLUT_SCREEN_WIDTH_MM Width in millimeters.
 
 
 
GLUT_WINDOW_ACCUM_ALPHA_SIZE 
 
 
GLUT_WINDOW_ACCUM_BLUE_SIZE 
 
 
GLUT_WINDOW_ACCUM_GREEN_SIZE 
 
 
GLUT_WINDOW_ACCUM_RED_SIZE 
 
 
 
 
 
 
GLUT_WINDOW_COLORMAP_SIZE 
 
 
 
 
 
GLUT_WINDOW_FORMAT_ID System dependant.
 
 
 
GLUT_WINDOW_HEADER_HEIGHT 
 
 
 
 
 
 
 
 
 
 
 
 
Most of the above are very obvious, and so full documentation is postponed for now. 
 Todo:Go back and flesh out the above list. 
This function is a bit messy, especially the WINCE part. Fix.  
Lots of code uses return to hop out. Since it's such a sprawling function, it's easy to be in the middle and not be 100% sure if there's anything important at the end of the function, or if it is safe to just "drop out" of the current case and head for the bottom.  
Causes crashes (assertion failure) if you call this before having called glutInit()---other than GLUT_INIT_STATE and GLUT_ELAPSED_TIME. Because various things can cause OpenGLUT to become deinitialized, we should probably either return default values of some kind or do minimal initialization if we are called without proper initialization. 
 
 See also:glutSetOption(), glutDeviceGet(), glutGetModifiers(), glutLayerGet() 
 |