glBeginQuery

delimit the boundaries of a query object

Signature

glBeginQuery( GLenum ( target ) , GLuint ( id ) )-> void
glBeginQuery( target , id )
glEndQuery( GLenum ( target ) )-> void
glEndQuery( target )

Parameters

VariablesDescription
target
Specifies the target type of query object established between glBeginQuery and the subsequent glEndQuery . The symbolic constant must be one of GL_SAMPLES_PASSED , GL_ANY_SAMPLES_PASSED , GL_ANY_SAMPLES_PASSED_CONSERVATIVE , GL_PRIMITIVES_GENERATED , GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN , or GL_TIME_ELAPSED .
id
Specifies the name of a query object.

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.

glBeginQuery
OpenGLContext tests/arbocclusionquery.py Lines: 13, 13, 43
OpenGLContext OpenGLContext/scenegraph/boundingvolume.py Lines: 38, 38, 290
glEndQuery
OpenGLContext tests/arbocclusionquery.py Lines: 15, 15, 46
OpenGLContext OpenGLContext/scenegraph/boundingvolume.py Lines: 40, 40, 293