File: glTexCoordPointer.3G.xml

package info (click to toggle)
pyopengl 2.0.1.08-5.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 19,484 kB
  • ctags: 9,036
  • sloc: pascal: 64,950; xml: 28,088; ansic: 20,696; python: 19,761; tcl: 668; makefile: 240; sh: 25
file content (68 lines) | stat: -rw-r--r-- 10,441 bytes parent folder | download
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
61
62
63
64
65
66
67
68
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
<html
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:mml="http://www.w3.org/1998/Math/MathML"
><head><title>glTexCoordPointer</title><link rel="stylesheet" href="style.css" type="text/css"/><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"/><link rel="home" href="index.xml" title="PyOpenGL 2.0.1.07 Man Pages"/><link rel="up" href="reference-GL.xml" title="GL"/><link rel="previous" href="glTexCoord.3G.xml" title="glTexCoord"/><link rel="next" href="glTexEnv.3G.xml" title="glTexEnv"/></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">glTexCoordPointer</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glTexCoord.3G.xml">Prev</a></td><th width="60%" align="center">GL</th><td width="20%" align="right"><a accesskey="n" href="glTexEnv.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glTexCoordPointer.3G"/><div class="titlepage"/><div class="refnamediv"><a name="glTexCoordPointer.3G-name"/><h2>Name</h2><p>glTexCoordPointer, glTexCoordPointerb, glTexCoordPointerd, glTexCoordPointerf, glTexCoordPointeri, glTexCoordPointers &#8212; define an array of texture coordinates</p></div><div class="refsynopsisdiv"><a name="glTexCoordPointer.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void<tt>glTexCoordPointer</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint<i><tt>size</tt></i>, GLenum<i><tt>type</tt></i>, GLsizei<i><tt>stride</tt></i>, constGLvoid*<i><tt>pointer</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glTexCoordPointer.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glTexCoordPointer</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>size</tt></i>, <i><tt>type</tt></i>, <i><tt>stride</tt></i>, <i><tt>pointer</tt></i>) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoordPointerb</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>pointer</tt></i>[][]) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoordPointerd</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>pointer</tt></i>[][]) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoordPointerf</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>pointer</tt></i>[][]) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoordPointeri</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>pointer</tt></i>[][]) &#8594;<tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoordPointers</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>pointer</tt></i>[][]) &#8594;<tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glTexCoordPointer.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>size</tt></i></span></dt><dd>
						Specifies the number of coordinates per array element. Must be 1, 2, 3 or 4. The initial value is 4.
					</dd><dt><span class="term"><i><tt>type</tt></i></span></dt><dd>
						Specifies the data type of each texture coordinate. Symbolic constants <tt>GL_SHORT</tt>,
						<tt>GL_INT</tt>, <tt>GL_FLOAT</tt>, or <tt>GL_DOUBLE</tt> are accepted.
						The initial value is <tt>GL_FLOAT</tt>.
					</dd><dt><span class="term"><i><tt>stride</tt></i></span></dt><dd>
						Specifies the byte offset between consecutive array elements. If <i><tt>stride</tt></i> is 0, the
						array elements are understood to be tightly packed. The initial value is 0.
					</dd><dt><span class="term"><i><tt>pointer</tt></i></span></dt><dd>
						Specifies a pointer to the first coordinate of the first element in the array. The initial value is 0.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glTexCoordPointer.3G-description"/><h2>Description</h2><p>
			<tt>glTexCoordPointer</tt> specifies the location and data of an array of texture coordinates to use when
			rendering. <i><tt>size</tt></i> specifies the number of coordinates per element, and must be 1, 2, 3, or 4.
			<i><tt>type</tt></i> specifies the data type of each texture coordinate and <i><tt>stride</tt></i>
			specifies the byte stride from one array element to the next allowing vertexes and attributes to be packed into a
			single array or stored in separate arrays. (Single-array storage may be more efficient on some implementations; see
			<a href="glInterleavedArrays.3G.xml">glInterleavedArrays</a>.) When a texture coordinate array is specified, <i><tt>size</tt></i>,
			<i><tt>type</tt></i>, <i><tt>stride</tt></i>, and <i><tt>pointer</tt></i> are saved client-side
			state.
		</p><p>
			To enable and disable the texture coordinate array, call <a href="glEnableClientState.3G.xml"><tt>glEnableClientState</tt></a>
			and <a href="glEnableClientState.3G.xml"><tt>glDisableClientState</tt></a> with the argument
			<tt>GL_TEXTURE_COORD_ARRAY</tt>. If enabled, the texture coordinate array is used when <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a>, <a href="glDrawElements.3G.xml"><tt>glDrawElements</tt></a>, <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a> or <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a> is
			called.
		</p><p>
			Use <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a> to construct a sequence of primitives (all of the same type)
			from prespecified vertex and vertex attribute arrays. Use <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a> to
			specify primitives by indexing vertexes and vertex attributes and <a href="glDrawElements.3G.xml"><tt>glDrawElements</tt></a> to construct a sequence of primitives by indexing vertexes and vertex
			attributes.
		</p></div><div class="refsect1" lang="en"><a name="glTexCoordPointer.3G-notes"/><h2>Notes</h2><p>
			<tt>glTexCoordPointer</tt> is available only if the GL version is 1.1 or greater.
		</p><p>
			The texture coordinate array is initially disabled and it won't be accessed when <a href="glArrayElement.3G.xml"><tt>glArrayElement</tt></a>, <a href="glDrawElements.3G.xml"><tt>glDrawElements</tt></a>, <a href="glDrawRangeElements.3G.xml"><tt>glDrawRangeElements</tt></a>, or <a href="glDrawArrays.3G.xml"><tt>glDrawArrays</tt></a> is called.
		</p><p>
			Execution of <tt>glTexCoordPointer</tt> is not allowed between the execution of <a href="glBegin.3G.xml"><tt>glBegin</tt></a> and the corresponding execution of <a href="glBegin.3G.xml"><tt>glEnd</tt></a>, but an error may or may not be generated. If no error is generated, the operation
			is undefined.
		</p><p>
			<tt>glTexCoordPointer</tt> is typically implemented on the client side with no protocol.
		</p><p>
			The texture coordinate array parameters are client-side state and are therefore not saved or restored by <a href="glPushAttrib.3G.xml"><tt>glPushAttrib</tt></a> and <a href="glPushAttrib.3G.xml"><tt>glPopAttrib</tt></a>. Use <a href="glPushClientAttrib.3G.xml"><tt>glPushClientAttrib</tt></a> and <a href="glPushClientAttrib.3G.xml"><tt>glPopClientAttrib</tt></a>
			instead.
		</p><p>
			When the <tt>GL_ARB_imaging</tt> extension is supported, <tt>glTexCoordPointer</tt> updates the
			texture coordinate array state of the active client texture unit, specified with <a href="glClientActiveTextureARB.3G.xml"><tt>glClientActiveTextureARB</tt></a>.
		</p></div><div class="refsect1" lang="en"><a name="glTexCoordPointer.3G-errors"/><h2>Errors</h2><p>
			<tt>GL_INVALID_VALUE</tt> is generated if <i><tt>size</tt></i> is not 1, 2, 3, or 4.
		</p><p>
			<tt>GL_INVALID_ENUM</tt> is generated if <i><tt>type</tt></i> is not an accepted value.
		</p><p>
			<tt>GL_INVALID_VALUE</tt> is generated if <i><tt>stride</tt></i> is negative.
		</p></div><div class="refsect1" lang="en"><a name="glTexCoordPointer.3G-associated_gets"/><h2>Associated Gets</h2><p>
			<a href="glIsEnabled.3G.xml"><tt>glIsEnabled</tt></a> with argument <tt>GL_TEXTURE_COORD_ARRAY</tt>
		</p><p>
			<tt>glGet</tt> with argument <tt>GL_TEXTURE_COORD_ARRAY_SIZE</tt>
		</p><p>
			<tt>glGet</tt> with argument <tt>GL_TEXTURE_COORD_ARRAY_TYPE</tt>
		</p><p>
			<a href="glGetPointerv.3G.xml"><tt>glGetPointerv</tt></a> with argument <tt>GL_TEXTURE_COORD_ARRAY_POINTER</tt>
		</p></div><div class="refsect1" lang="en"><a name="glTexCoordPointer.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glArrayElement.3G.xml">glArrayElement</a>, <a href="glClientActiveTextureARB.3G.xml">glClientActiveTextureARB</a>, <a href="glColorPointer.3G.xml">glColorPointer</a>, <a href="glDrawArrays.3G.xml">glDrawArrays</a>, <a href="glDrawElements.3G.xml">glDrawElements</a>, <a href="glDrawRangeElements.3G.xml">glDrawRangeElements</a>, <a href="glEdgeFlagPointer.3G.xml">glEdgeFlagPointer</a>, <a href="glEnable.3G.xml">glEnable</a>, <a href="glGetPointerv.3G.xml">glGetPointerv</a>, <a href="glIndexPointer.3G.xml">glIndexPointer</a>, <a href="glNormalPointer.3G.xml">glNormalPointer</a>, <a href="glPopClientAttrib.3G.xml">glPopClientAttrib</a>, <a href="glPushClientAttrib.3G.xml">glPushClientAttrib</a>, <a href="glTexCoord.3G.xml">glTexCoord</a>, <a href="glVertexPointer.3G.xml">glVertexPointer</a></span>
		</p></div></div><div class="navfooter"><hr/><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="glTexCoord.3G.xml">Prev</a></td><td width="20%" align="center"><a accesskey="u" href="reference-GL.xml">Up</a></td><td width="40%" align="right"><a accesskey="n" href="glTexEnv.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glTexCoord</td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top">glTexEnv</td></tr></table></div></body></html>