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=
"glGenQueries">
9 <holder>Sams Publishing
</holder>
12 <refentrytitle>glGenQueries
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGenQueries
</refname>
17 <refpurpose>generate query object names
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glGenQueries
</function></funcdef>
23 <paramdef>GLsizei
<parameter>n
</parameter></paramdef>
24 <paramdef>GLuint *
<parameter>ids
</parameter></paramdef>
28 <refsect1 id=
"parameters"><title>Parameters
</title>
31 <term><parameter>n
</parameter></term>
34 Specifies the number of query object names to be generated.
39 <term><parameter>ids
</parameter></term>
42 Specifies an array in which the generated query object names are stored.
48 <refsect1 id=
"description"><title>Description
</title>
50 <function>glGenQueries
</function> returns
<parameter>n
</parameter> query object names in
<parameter>ids
</parameter>.
51 There is no guarantee that the names form a contiguous set of integers;
52 however, it is guaranteed that none of the returned names was in use
53 immediately before the call to
<function>glGenQueries
</function>.
56 Query object names returned by a call to
<function>glGenQueries
</function> are not returned by
57 subsequent calls, unless they are first deleted with
58 <citerefentry><refentrytitle>glDeleteQueries
</refentrytitle></citerefentry>.
61 No query objects are associated with the returned query object names until they are first used by calling
62 <citerefentry><refentrytitle>glBeginQuery
</refentrytitle></citerefentry>.
65 <refsect1 id=
"errors"><title>Errors
</title>
67 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>n
</parameter> is negative.
70 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
72 <citerefentry><refentrytitle>glIsQuery
</refentrytitle></citerefentry>
75 <refsect1 id=
"seealso"><title>See Also
</title>
77 <citerefentry><refentrytitle>glBeginQuery
</refentrytitle></citerefentry>,
78 <citerefentry><refentrytitle>glDeleteQueries
</refentrytitle></citerefentry>,
79 <citerefentry><refentrytitle>glEndQuery
</refentrytitle></citerefentry>
82 <refsect1 id=
"Copyright"><title>Copyright
</title>
84 Copyright
<trademark class=
"copyright"></trademark> 2005 Addison-Wesley.
85 This material may be distributed subject to the terms and conditions set forth in
86 the Open Publication License, v
1.0,
8 June
1999.
87 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.