glGetQueryiv

return parameters of a query object target

Signature

glGetQueryiv( GLenum ( target ) , GLenum ( pname ) , GLint * ( params ) )-> void
glGetQueryiv( target , pname , params )

Parameters

VariablesDescription
target
Specifies a query object target. Must be GL_SAMPLES_PASSED , GL_ANY_SAMPLES_PASSED , GL_ANY_SAMPLES_PASSED_CONSERVATIVE GL_PRIMITIVES_GENERATED , GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN , GL_TIME_ELAPSED , or GL_TIMESTAMP .
pname
Specifies the symbolic name of a query object target parameter. Accepted values are GL_CURRENT_QUERY or GL_QUERY_COUNTER_BITS .
params
Returns the requested data.