1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glGetQueryiv">
9 <holder>Sams Publishing
</holder>
12 <refentrytitle>glGetQueryiv
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGetQueryiv
</refname>
17 <refpurpose>return parameters of a query object target
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glGetQueryiv
</function></funcdef>
23 <paramdef>GLenum
<parameter>target
</parameter></paramdef>
24 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
25 <paramdef>GLint *
<parameter>params
</parameter></paramdef>
29 <refsect1 id=
"parameters"><title>Parameters
</title>
32 <term><parameter>target
</parameter></term>
35 Specifies a query object target.
36 Must be
<constant>GL_SAMPLES_PASSED
</constant>,
<constant>GL_ANY_SAMPLES_PASSED
</constant>,
37 <constant>GL_PRIMITIVES_GENERATED
</constant>,
<constant>GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
</constant>,
38 <constant>GL_TIME_ELAPSED
</constant>, or
<constant>GL_TIMESTAMP
</constant>.
43 <term><parameter>pname
</parameter></term>
46 Specifies the symbolic name of a query object target parameter.
47 Accepted values are
<constant>GL_CURRENT_QUERY
</constant> or
<constant>GL_QUERY_COUNTER_BITS
</constant>.
52 <term><parameter>params
</parameter></term>
55 Returns the requested data.
61 <refsect1 id=
"description"><title>Description
</title>
63 <function>glGetQueryiv
</function> returns in
<parameter>params
</parameter> a selected parameter of the query object target
64 specified by
<parameter>target
</parameter>.
67 <parameter>pname
</parameter> names a specific query object target parameter. When
<parameter>pname
</parameter> is
68 <constant>GL_CURRENT_QUERY
</constant>, the name of the currently active query for
<parameter>target
</parameter>,
69 or zero if no query is active, will be placed in
<parameter>params
</parameter>.
70 If
<parameter>pname
</parameter> is
<constant>GL_QUERY_COUNTER_BITS
</constant>, the implementation-dependent number
71 of bits used to hold the result of queries for
<parameter>target
</parameter> is returned in
<parameter>params
</parameter>.
74 <refsect1 id=
"notes"><title>Notes
</title>
76 If an error is generated,
77 no change is made to the contents of
<parameter>params
</parameter>.
80 <refsect1 id=
"errors"><title>Errors
</title>
82 <constant>GL_INVALID_ENUM
</constant> is generated if
<parameter>target
</parameter> or
<parameter>pname
</parameter> is not an
86 <refsect1 id=
"seealso"><title>See Also
</title>
88 <citerefentry><refentrytitle>glGetQueryObject
</refentrytitle></citerefentry>,
89 <citerefentry><refentrytitle>glIsQuery
</refentrytitle></citerefentry>
92 <refsect1 id=
"Copyright"><title>Copyright
</title>
94 Copyright
<trademark class=
"copyright"></trademark> 2005 Addison-Wesley.
95 This material may be distributed subject to the terms and conditions set forth in
96 the Open Publication License, v
1.0,
8 June
1999.
97 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.