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=
"glGetPointerv">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glGetPointerv
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glGetPointerv
</refname>
17 <refpurpose>return the address of the specified pointer
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glGetPointerv
</function></funcdef>
23 <paramdef>GLenum
<parameter>pname
</parameter></paramdef>
24 <paramdef>GLvoid **
<parameter>params
</parameter></paramdef>
28 <!-- eqn: ignoring delim $$ -->
29 <refsect1 id=
"parameters"><title>Parameters
</title>
32 <term><parameter>pname
</parameter></term>
35 Specifies the array or buffer pointer to be returned.
37 <constant>GL_COLOR_ARRAY_POINTER
</constant>,
38 <constant>GL_EDGE_FLAG_ARRAY_POINTER
</constant>,
39 <constant>GL_FOG_COORD_ARRAY_POINTER
</constant>,
40 <constant>GL_FEEDBACK_BUFFER_POINTER
</constant>,
41 <constant>GL_INDEX_ARRAY_POINTER
</constant>,
42 <constant>GL_NORMAL_ARRAY_POINTER
</constant>,
43 <constant>GL_SECONDARY_COLOR_ARRAY_POINTER
</constant>,
44 <constant>GL_SELECTION_BUFFER_POINTER
</constant>,
45 <constant>GL_TEXTURE_COORD_ARRAY_POINTER
</constant>,
47 <constant>GL_VERTEX_ARRAY_POINTER
</constant>
53 <term><parameter>params
</parameter></term>
56 Returns the pointer value specified by
<parameter>pname
</parameter>.
62 <refsect1 id=
"description"><title>Description
</title>
64 <function>glGetPointerv
</function> returns pointer information.
<parameter>pname
</parameter> is a symbolic constant
65 indicating the pointer to be returned, and
<parameter>params
</parameter> is a pointer to a
66 location in which to place the returned data.
69 For all
<parameter>pname
</parameter> arguments except
<constant>GL_FEEDBACK_BUFFER_POINTER
</constant> and
<constant>GL_SELECTION_BUFFER_POINTER
</constant>,
70 if a non-zero named buffer object was bound to the
<constant>GL_ARRAY_BUFFER
</constant> target
71 (see
<citerefentry><refentrytitle>glBindBuffer
</refentrytitle></citerefentry>) when the desired pointer was previously
72 specified, the pointer returned is a byte offset into the buffer object's data store.
73 Buffer objects are only available in OpenGL versions
1.5 and greater.
76 <refsect1 id=
"notes"><title>Notes
</title>
78 <function>glGetPointerv
</function> is available only if the GL version is
1.1 or greater.
81 <constant>GL_FOG_COORD_ARRAY_POINTER
</constant> and
<constant>GL_SECONDARY_COLOR_ARRAY_POINTER
</constant>
82 are available only if the GL version is
1.4 or greater.
85 The pointers are all client-side state.
88 The initial value for each pointer is
0.
91 For OpenGL versions
1.3 and greater, or when the
<code>ARB_multitexture
</code>
92 extension is supported, querying the
<constant>GL_TEXTURE_COORD_ARRAY_POINTER
</constant>
93 returns the value for the active client texture unit.
96 <refsect1 id=
"errors"><title>Errors
</title>
98 <constant>GL_INVALID_ENUM
</constant> is generated if
<parameter>pname
</parameter> is not an accepted value.
101 <refsect1 id=
"seealso"><title>See Also
</title>
103 <citerefentry><refentrytitle>glBindBuffer
</refentrytitle></citerefentry>,
104 <citerefentry><refentrytitle>glClientActiveTexture
</refentrytitle></citerefentry>,
105 <citerefentry><refentrytitle>glColorPointer
</refentrytitle></citerefentry>,
106 <citerefentry><refentrytitle>glEdgeFlagPointer
</refentrytitle></citerefentry>,
107 <citerefentry><refentrytitle>glFogCoordPointer
</refentrytitle></citerefentry>,
108 <citerefentry><refentrytitle>glFeedbackBuffer
</refentrytitle></citerefentry>,
109 <citerefentry><refentrytitle>glGetVertexAttribPointerv
</refentrytitle></citerefentry>,
110 <citerefentry><refentrytitle>glIndexPointer
</refentrytitle></citerefentry>,
111 <citerefentry><refentrytitle>glNormalPointer
</refentrytitle></citerefentry>,
112 <citerefentry><refentrytitle>glSecondaryColorPointer
</refentrytitle></citerefentry>,
113 <citerefentry><refentrytitle>glSelectBuffer
</refentrytitle></citerefentry>,
114 <citerefentry><refentrytitle>glTexCoordPointer
</refentrytitle></citerefentry>,
115 <citerefentry><refentrytitle>glVertexAttribPointer
</refentrytitle></citerefentry>,
116 <citerefentry><refentrytitle>glVertexPointer
</refentrytitle></citerefentry>
119 <refsect1 id=
"Copyright"><title>Copyright
</title>
121 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
122 Silicon Graphics, Inc. This document is licensed under the SGI
123 Free Software B License. For details, see
124 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.