glGet

return the value or values of a selected parameter

Signature

glGet( )->
glGetBooleani_v( GLenum ( target ) , GLuint ( index ) , GLboolean * ( data ) )-> void
glGetBooleani_v( target , index , data )
glGetBooleanv( GLenum ( pname ) , GLboolean * ( data ) )-> void
glGetBoolean( pname , data )
glGetBooleanv( pname , data )
glGetDoublei_v( GLenum ( target ) , GLuint ( index ) , GLdouble * ( data ) )-> void
glGetDoublei_v( target , index , data )
glGetDoublev( GLenum ( pname ) , GLdouble * ( data ) )-> void
glGetDouble( pname , data )
glGetDoublev( pname , data )
glGetFloati_v( GLenum ( target ) , GLuint ( index ) , GLfloat * ( data ) )-> void
glGetFloati_v( target , index , data )
glGetFloatv( GLenum ( pname ) , GLfloat * ( data ) )-> void
glGetFloat( pname , data )
glGetFloatv( pname , data )
glGetInteger64i_v( GLenum ( target ) , GLuint ( index ) , GLint64 * ( data ) )-> void
glGetInteger64i_v( target , index , data )
glGetInteger64v( GLenum ( pname ) , GLint64 * ( data ) )-> void
glGetInteger64v( pname , data )
glGetIntegeri_v( GLenum ( target ) , GLuint ( index ) , GLint * ( data ) )-> void
glGetIntegeri_v( target , index , data )
glGetIntegerv( GLenum ( pname ) , GLint * ( data ) )-> void
glGetInteger( pname , data )
glGetIntegerv( pname , data )

Parameters

VariablesDescription
pname
Specifies the parameter value to be returned for non-indexed versions of glGet . The symbolic constants in the list below are accepted.
target
Specifies the parameter value to be returned for indexed versions of glGet . The symbolic constants in the list below are accepted.
index
Specifies the index of the particular element being queried.
data
Returns the value or values of the specified parameter.

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.

glGetBooleanv
OpenGLContext OpenGLContext/scenegraph/text/font.py Lines: 287
{LGPL} VisionEgg test/opengl_info.py Lines: 114, 115, 116
{LGPL} Pyggel pyggel/geometry.py Lines: 333
glGetDoublev
OpenGLContext tests/glget_with_fonts.py Lines: 33
OpenGLContext OpenGLContext/passes/renderpass.py Lines: 704, 724, 742
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/checker.py Lines: 62
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/text.py Lines: 55
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/conesave.py Lines: 31
OpenGL-Demo PyOpenGL-Demo/GLUT/tom/cone.py Lines: 64
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/glCamera.py Lines: 493, 494
glGetFloatv
OpenGLContext tests/glget_with_fonts.py Lines: 33
OpenGLContext OpenGLContext/frustum.py Lines: 33, 35
OpenGLContext OpenGLContext/scenegraph/polygonsort.py Lines: 39, 41, 66, 68
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/glCamera.py Lines: 189, 192, 320, 323, 728
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson44/lesson44.py Lines: 228, 229
{LGPL} VisionEgg test/conform.py Lines: 163, 176, 189, 202, 221
{LGPL} VisionEgg VisionEgg/Core.py Lines: 813, 826, 839, 879, 1077
{LGPL} PyMT examples/apps/3Dviewer/3Dviewer.py Lines: 84, 160
{LGPL} PyMT examples/apps/3Ddrawing/3Ddrawing.py Lines: 103, 115
{LGPL} PyMT pymt/graphx/stencil.py Lines: 22, 51
Visvis core/line.py Lines: 99
glGetIntegerv
OpenGLContext tests/glget_with_fonts.py Lines: 29
OpenGLContext tests/shader_instanced.py Lines: 80
OpenGLContext tests/shadow_2.py Lines: 43
OpenGLContext OpenGLContext/atlas.py Lines: 299
OpenGLContext OpenGLContext/passes/renderpass.py Lines: 714
OpenGLContext OpenGLContext/scenegraph/polygonsort.py Lines: 43, 70
OpenGL-Demo PyOpenGL-Demo/NeHe/lesson41.py Lines: 96
Glinter Widget.py Lines: 722
pyBzEdit pyBzEdit.py Lines: 769
{LGPL} PyUI pyui/renderers/openglBase.py Lines: 254
{LGPL} PyUI2 renderers/openglBase.py Lines: 254
{LGPL} VisionEgg test/opengl_info.py Lines: 113, 118, 119, 120, 121, 123, 124, 125, 126, 171
{LGPL} VisionEgg VisionEgg/SphereMap.py Lines: 659, 957
{LGPL} VisionEgg VisionEgg/Textures.py Lines: 678, 1183
{LGPL} VisionEgg VisionEgg/Gratings.py Lines: 80, 81, 82, 124, 257, 576
{LGPL} Pyggel pyggel/data.py Lines: 17
{LGPL} pygl2d pygl2d/image.py Lines: 94
Visvis core/axes.py Lines: 42
Visvis core/baseFigure.py Lines: 749, 750, 751