forked from BSVino/docs.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
glGetPointerv.xhtml
60 lines (57 loc) · 5.03 KB
/
glGetPointerv.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<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 class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">glGetPointerv</b>(</code></td><td>GLenum <var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLvoid ** <var class="pdparam">params</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div></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>
Specifies the array or buffer pointer to be returned.
Accepted symbolic names are
<code class="constant">GL_COLOR_ARRAY_POINTER</code>,
<code class="constant">GL_NORMAL_ARRAY_POINTER</code>,
<code class="constant">GL_POINT_SIZE_ARRAY_POINTER_OES</code><span>,</span>
<code class="constant">GL_TEXTURE_COORD_ARRAY_POINTER</code>,<span> and</span>
<code class="constant">GL_VERTEX_ARRAY_POINTER</code><span>.</span>
</p></dd><dt><span class="term">
<em class="parameter"><code>params</code></em>
</span></dt><dd><p>
Returns the pointer value specified by <em class="parameter"><code>pname</code></em>.
</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
<code class="function">glGetPointerv</code>
returns pointer information.
<em class="parameter"><code>pname</code></em> is a
symbolic constant indicating the pointer to be returned, and
<em class="parameter"><code>params</code></em> is a pointer to a
location in which to place the returned data.
</p><p>
Querying the GL_TEXTURE_COORD_ARRAY_POINTER returns the value for
the active client texture unit.
</p><p>
If a non-zero
named buffer object was bound to the GL_ARRAY_BUFFER target
(see
<a class="citerefentry" href="glBindBuffer"><span class="citerefentry"><span class="refentrytitle">glBindBuffer</span></span></a>)
when the desired pointer was previously specified, the pointer
returned is a byte offset into the buffer object's data store.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="notes"></a><h2>Notes</h2><p>
<code class="function">glGetPointerv</code> is only supported
if the OpenGL ES version number is 1.1 or greater.
</p><p>
The pointers are all client-side state.
</p><p>
The initial value for each pointer is 0.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p>
<code class="constant">GL_INVALID_ENUM</code> is generated if
<em class="parameter"><code>pname</code></em> is not an accepted value.
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
<a class="citerefentry" href="glBindBuffer"><span class="citerefentry"><span class="refentrytitle">glBindBuffer</span></span></a>,
<a class="citerefentry" href="glClientActiveTexture"><span class="citerefentry"><span class="refentrytitle">glClientActiveTexture</span></span></a>,
<a class="citerefentry" href="glColorPointer"><span class="citerefentry"><span class="refentrytitle">glColorPointer</span></span></a>,
<a class="citerefentry" href="glDrawArrays"><span class="citerefentry"><span class="refentrytitle">glDrawArrays</span></span></a>,
<a class="citerefentry" href="glMatrixIndexPointer"><span class="citerefentry"><span class="refentrytitle">glMatrixIndexPointer</span></span></a>,
<a class="citerefentry" href="glNormalPointer"><span class="citerefentry"><span class="refentrytitle">glNormalPointer</span></span></a>,
<a class="citerefentry" href="glTexCoordPointer"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>,
<a class="citerefentry" href="glPointSizePointerOES"><span class="citerefentry"><span class="refentrytitle">glPointSizePointerOES</span></span></a>,
<a class="citerefentry" href="glVertexPointer"><span class="citerefentry"><span class="refentrytitle">glVertexPointer</span></span></a>
</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="copyright"></a><h2>Copyright</h2><p>
Copyright © 2003-2004
Silicon Graphics, Inc. This document is licensed under the SGI
Free Software B License. For details, see
<a class="ulink" href="https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/" target="_top">https://web.archive.org/web/20171022161616/http://oss.sgi.com/projects/FreeB/</a>.
</p></div></div>