1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
2 <!-- saved from url=(0013)about:internet -->
3 <?xml-stylesheet type=
"text/xsl" href=
"mathml.xsl"?><html xmlns=
"http://www.w3.org/1999/xhtml" xmlns:
pref=
"http://www.w3.org/2002/Math/preference" pref:
renderer=
"mathplayer-dl"><head><meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8" /><title>glGetPointerv
</title><meta name=
"generator" content=
"DocBook XSL Stylesheets V1.73.2" /></head><body><div class=
"refentry" lang=
"en" xml:
lang=
"en"><a id=
"glGetPointerv"></a><div class=
"titlepage"></div><div class=
"refnamediv"><h2>Name
</h2><p>glGetPointerv — return the address of the specified pointer
</p></div><div class=
"refsynopsisdiv"><h2>C Specification
</h2><div class=
"funcsynopsis"><table border=
"0" summary=
"Function synopsis" cellspacing=
"0" cellpadding=
"0"><tr><td><code class=
"funcdef">void
<b class=
"fsfunc">glGetPointerv
</b>(
</code></td><td>GLenum
</td><td><var class=
"pdparam">pname
</var>,
</td></tr><tr><td> </td><td>GLvoid **
</td><td><var class=
"pdparam">params
</var><code>)
</code>;
</td></tr></table></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"parameters"></a><h2>Parameters
</h2><div class=
"variablelist"><dl><dt><span class=
"term"><em class=
"parameter"><code>pname
</code></em></span></dt><dd><p>
4 Specifies the array or buffer pointer to be returned.
6 <code class=
"constant">GL_COLOR_ARRAY_POINTER
</code>,
7 <code class=
"constant">GL_EDGE_FLAG_ARRAY_POINTER
</code>,
8 <code class=
"constant">GL_FOG_COORD_ARRAY_POINTER
</code>,
9 <code class=
"constant">GL_FEEDBACK_BUFFER_POINTER
</code>,
10 <code class=
"constant">GL_INDEX_ARRAY_POINTER
</code>,
11 <code class=
"constant">GL_NORMAL_ARRAY_POINTER
</code>,
12 <code class=
"constant">GL_SECONDARY_COLOR_ARRAY_POINTER
</code>,
13 <code class=
"constant">GL_SELECTION_BUFFER_POINTER
</code>,
14 <code class=
"constant">GL_TEXTURE_COORD_ARRAY_POINTER
</code>,
16 <code class=
"constant">GL_VERTEX_ARRAY_POINTER
</code>
18 </p></dd><dt><span class=
"term"><em class=
"parameter"><code>params
</code></em></span></dt><dd><p>
19 Returns the pointer value specified by
<em class=
"parameter"><code>pname
</code></em>.
20 </p></dd></dl></div></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"description"></a><h2>Description
</h2><p>
21 <code class=
"function">glGetPointerv
</code> returns pointer information.
<em class=
"parameter"><code>pname
</code></em> is a symbolic constant
22 indicating the pointer to be returned, and
<em class=
"parameter"><code>params
</code></em> is a pointer to a
23 location in which to place the returned data.
25 For all
<em class=
"parameter"><code>pname
</code></em> arguments except
<code class=
"constant">GL_FEEDBACK_BUFFER_POINTER
</code> and
<code class=
"constant">GL_SELECTION_BUFFER_POINTER
</code>,
26 if a non-zero named buffer object was bound to the
<code class=
"constant">GL_ARRAY_BUFFER
</code> target
27 (see
<a class=
"citerefentry" href=
"glBindBuffer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glBindBuffer
</span></span></a>) when the desired pointer was previously
28 specified, the pointer returned is a byte offset into the buffer object's data store.
29 Buffer objects are only available in OpenGL versions
1.5 and greater.
30 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"notes"></a><h2>Notes
</h2><p>
31 <code class=
"function">glGetPointerv
</code> is available only if the GL version is
1.1 or greater.
33 <code class=
"constant">GL_FOG_COORD_ARRAY_POINTER
</code> and
<code class=
"constant">GL_SECONDARY_COLOR_ARRAY_POINTER
</code>
34 are available only if the GL version is
1.4 or greater.
36 The pointers are all client-side state.
38 The initial value for each pointer is
0.
40 For OpenGL versions
1.3 and greater, or when the
<code class=
"code">ARB_multitexture
</code>
41 extension is supported, querying the
<code class=
"constant">GL_TEXTURE_COORD_ARRAY_POINTER
</code>
42 returns the value for the active client texture unit.
43 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"errors"></a><h2>Errors
</h2><p>
44 <code class=
"constant">GL_INVALID_ENUM
</code> is generated if
<em class=
"parameter"><code>pname
</code></em> is not an accepted value.
45 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"seealso"></a><h2>See Also
</h2><p>
46 <a class=
"citerefentry" href=
"glBindBuffer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glBindBuffer
</span></span></a>,
47 <a class=
"citerefentry" href=
"glClientActiveTexture.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glClientActiveTexture
</span></span></a>,
48 <a class=
"citerefentry" href=
"glColorPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glColorPointer
</span></span></a>,
49 <a class=
"citerefentry" href=
"glEdgeFlagPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glEdgeFlagPointer
</span></span></a>,
50 <a class=
"citerefentry" href=
"glFogCoordPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glFogCoordPointer
</span></span></a>,
51 <a class=
"citerefentry" href=
"glFeedbackBuffer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glFeedbackBuffer
</span></span></a>,
52 <a class=
"citerefentry" href=
"glGetVertexAttribPointerv.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glGetVertexAttribPointerv
</span></span></a>,
53 <a class=
"citerefentry" href=
"glIndexPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glIndexPointer
</span></span></a>,
54 <a class=
"citerefentry" href=
"glNormalPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glNormalPointer
</span></span></a>,
55 <a class=
"citerefentry" href=
"glSecondaryColorPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glSecondaryColorPointer
</span></span></a>,
56 <a class=
"citerefentry" href=
"glSelectBuffer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glSelectBuffer
</span></span></a>,
57 <a class=
"citerefentry" href=
"glTexCoordPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glTexCoordPointer
</span></span></a>,
58 <a class=
"citerefentry" href=
"glVertexAttribPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glVertexAttribPointer
</span></span></a>,
59 <a class=
"citerefentry" href=
"glVertexPointer.xml"><span class=
"citerefentry"><span class=
"refentrytitle">glVertexPointer
</span></span></a>
60 </p></div><div class=
"refsect1" lang=
"en" xml:
lang=
"en"><a id=
"Copyright"></a><h2>Copyright
</h2><p>
61 Copyright
<span class=
"trademark"></span>©
1991-
2006
62 Silicon Graphics, Inc. This document is licensed under the SGI
63 Free Software B License. For details, see
64 <a class=
"ulink" href=
"http://oss.sgi.com/projects/FreeB/" target=
"_top">http://oss.sgi.com/projects/FreeB/
</a>.
65 </p></div></div></body></html>