glutGet

retrieves simple GLUT state represented by integers.

Signature

glutGet( GLenum( state ) )-> int
glutGet( query ) -> <class 'ctypes.c_int'>
glutGet( GLenum(query) ) -> c_int

Parameters

VariablesDescription
state
Name of state to retrieve.

Description

glutGet retrieves simple GLUT state represented by integers. The state parameter determines what type of state to return. Where appropriate, window capability state is returned for the layer in use. GLUT state names beginning with GLUT_WINDOW_ return state for the current window. GLUT state names beginning with GLUT_MENU_ return state for the current menu. Other GLUT state names return global state. Requesting state for an invalid GLUT state name returns negative one.

See Also

glutDeviceGet glutLayerGet glutGetColor glutGetWindow glutGetMenu glutGetModifiers glutExtensionSupported

Sample Code References

The following code samples have been found which appear to reference the functions described here. Take care that the code may be old, broken or not even use PyOpenGL.

glutGet
OpenGLContext tests/glut_fullscreen.py Lines: 51, 52, 53, 54
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 291
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson42.py Lines: 241, 251, 252
OpenGL-Demo PyOpenGL-Demo/proesch/stereo/stereoDemo.py Lines: 57, 57, 138, 138
OpenGL-Demo PyOpenGL-Demo/proesch/bezier/bezier.py Lines: 92, 92
OpenGL-Demo PyOpenGL-Demo/proesch/nurbs/nurbs.py Lines: 145, 145
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/conechecker.py Lines: 33, 33
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/lorentz.py Lines: 74, 74
{GPL3} OpenGL-Programmable 05-shader.py Lines: 203, 203, 250, 250, 277, 277
{GPL3} OpenGL-Programmable 07-attrib.py Lines: 222, 222, 269, 269, 296, 296
{GPL3} OpenGL-Programmable 03-array.py Lines: 118, 118, 165, 165, 197, 197
{GPL3} OpenGL-Programmable 09-gles2.py Lines: 255, 255, 312, 312, 339, 339
{GPL3} OpenGL-Programmable 06-perpixel.py Lines: 211, 211, 258, 258, 285, 285
{GPL3} OpenGL-Programmable 10-gl3.2core.py Lines: 265, 265, 322, 322, 349, 349
{GPL3} OpenGL-Programmable 02-displaylist.py Lines: 116, 116, 163, 163, 195, 195
{GPL3} OpenGL-Programmable 04-vbo.py Lines: 137, 137, 184, 184, 216, 216
{GPL3} OpenGL-Programmable 01-direct.py Lines: 107, 107, 154, 154, 186, 186
{GPL3} OpenGL-Programmable 08-pbo.py Lines: 233, 233, 291, 291, 318, 318