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=
"glIsQuery">
9 <holder>Sams Publishing
</holder>
12 <refentrytitle>glIsQuery
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glIsQuery
</refname>
17 <refpurpose>determine if a name corresponds to a query object
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>GLboolean
<function>glIsQuery
</function></funcdef>
23 <paramdef>GLuint
<parameter>id
</parameter></paramdef>
27 <refsect1 id=
"parameters"><title>Parameters
</title>
30 <term><parameter>id
</parameter></term>
33 Specifies a value that may be the name of a query object.
39 <refsect1 id=
"description"><title>Description
</title>
41 <function>glIsQuery
</function> returns
<constant>GL_TRUE
</constant> if
<parameter>id
</parameter> is currently the name of a query object.
42 If
<parameter>id
</parameter> is zero, or is a non-zero value that is not currently the
43 name of a query object, or if an error occurs,
<function>glIsQuery
</function> returns
<constant>GL_FALSE
</constant>.
46 A name returned by
<citerefentry><refentrytitle>glGenQueries
</refentrytitle></citerefentry>, but not yet associated with a query object
47 by calling
<citerefentry><refentrytitle>glBeginQuery
</refentrytitle></citerefentry>, is not the name of a query object.
50 <refsect1 id=
"notes"><title>Notes
</title>
52 <function>glIsQuery
</function> is available only if the GL version is
1.5 or greater.
55 <refsect1 id=
"errors"><title>Errors
</title>
57 <constant>GL_INVALID_OPERATION
</constant> is generated if
<function>glIsQuery
</function> is executed
58 between the execution of
<citerefentry><refentrytitle>glBegin
</refentrytitle></citerefentry> and the corresponding
59 execution of
<citerefentry><refentrytitle>glEnd
</refentrytitle></citerefentry>.
62 <refsect1 id=
"seealso"><title>See Also
</title>
64 <citerefentry><refentrytitle>glBeginQuery
</refentrytitle></citerefentry>,
65 <citerefentry><refentrytitle>glDeleteQueries
</refentrytitle></citerefentry>,
66 <citerefentry><refentrytitle>glEndQuery
</refentrytitle></citerefentry>,
67 <citerefentry><refentrytitle>glGenQueries
</refentrytitle></citerefentry>
70 <refsect1 id=
"Copyright"><title>Copyright
</title>
72 Copyright
<trademark class=
"copyright"></trademark> 2005 Addison-Wesley.
73 This material may be distributed subject to the terms and conditions set forth in
74 the Open Publication License, v
1.0,
8 June
1999.
75 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.