GLGETQUERY(3gl)GLGETQUERY(3gl)NAMEglGetQueryiv - return query parameter values
C SPECIFICATION
void glGetQueryiv( GLenum target,
GLenum pname,
GLint *params )
PARAMETERS
target Specifies a type of query. Currently, the only accepted sym‐
bolic name is GL_SAMPLES_PASSED.
pname Specifies the parameter of the query. Accepted symbolic names
are GL_QUERY_COUNTER_BITS, GL_CURRENT_QUERY.
params Returns the requested data.
DESCRIPTION
glGetQuery returns in params the value or values of a query parameter.
The following parameters are defined:
GL_CURRENT_QUERY params returns an integer value representing the
current query.
GL_QUERY_COUNTER_BITS
params returns an integer value representing the
number of bits in the query counter. If the value
is 0, then the counter result from glGetQueryOb‐
ject(GL_QUERY_RESULT, counter) will always be 0.
ERRORS
GL_INVALID_ENUM is generated if target or pname is not an accepted
value.
SEE ALSO
glGetQueryObject
09 Jan 04 GLGETQUERY(3gl)