<?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>glTexCoord</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="glStencilOp.3G.xml" title="glStencilOp"/><link rel="next" href="glTexCoordPointer.3G.xml" title="glTexCoordPointer"/></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">glTexCoord</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="glStencilOp.3G.xml">Prev</a> </td><th width="60%" align="center">GL</th><td width="20%" align="right"> <a accesskey="n" href="glTexCoordPointer.3G.xml">Next</a></td></tr></table><hr/></div><div class="refentry" lang="en"><a name="glTexCoord.3G"/><div class="titlepage"/><div class="refnamediv"><a name="glTexCoord.3G-name"/><h2>Name</h2><p>glTexCoord1d, glTexCoord1f, glTexCoord1i, glTexCoord1s, glTexCoord2d, glTexCoord2f, glTexCoord2i, glTexCoord2s, glTexCoord3d, glTexCoord3f, glTexCoord3i, glTexCoord3s, glTexCoord4d, glTexCoord4f, glTexCoord4i, glTexCoord4s, glTexCoord1dv, glTexCoord1fv, glTexCoord1iv, glTexCoord1sv, glTexCoord2dv, glTexCoord2fv, glTexCoord2iv, glTexCoord2sv, glTexCoord3dv, glTexCoord3fv, glTexCoord3iv, glTexCoord3sv, glTexCoord4dv, glTexCoord4fv, glTexCoord4iv, glTexCoord4sv &#8212; set the current texture coordinates</p></div><div class="refsynopsisdiv"><a name="glTexCoord.3G-c_spec"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>glTexCoord1d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble <i><tt>s</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord1f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLfloat <i><tt>s</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord1i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint <i><tt>s</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord1s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLshort <i><tt>s</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble <i><tt>s</tt></i>, GLdouble <i><tt>t</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLfloat <i><tt>s</tt></i>, GLfloat <i><tt>t</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint <i><tt>s</tt></i>, GLint <i><tt>t</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLshort <i><tt>s</tt></i>, GLshort <i><tt>t</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble <i><tt>s</tt></i>, GLdouble <i><tt>t</tt></i>, GLdouble <i><tt>r</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLfloat <i><tt>s</tt></i>, GLfloat <i><tt>t</tt></i>, GLfloat <i><tt>r</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint <i><tt>s</tt></i>, GLint <i><tt>t</tt></i>, GLint <i><tt>r</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLshort <i><tt>s</tt></i>, GLshort <i><tt>t</tt></i>, GLshort <i><tt>r</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLdouble <i><tt>s</tt></i>, GLdouble <i><tt>t</tt></i>, GLdouble <i><tt>r</tt></i>, GLdouble <i><tt>q</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLfloat <i><tt>s</tt></i>, GLfloat <i><tt>t</tt></i>, GLfloat <i><tt>r</tt></i>, GLfloat <i><tt>q</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLint <i><tt>s</tt></i>, GLint <i><tt>t</tt></i>, GLint <i><tt>r</tt></i>, GLint <i><tt>q</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>GLshort <i><tt>s</tt></i>, GLshort <i><tt>t</tt></i>, GLshort <i><tt>r</tt></i>, GLshort <i><tt>q</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glTexCoord.3G-python_spec"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glTexCoord1d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord1f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord1i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord1s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4d</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, <i><tt>q</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4f</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, <i><tt>q</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4i</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, <i><tt>q</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4s</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, <i><tt>q</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glTexCoord.3G-parameters"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, <i><tt>q</tt></i></span></dt><dd>
						Specify <i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, and
						<i><tt>q</tt></i> texture coordinates. Not all parameters are present in all forms of the command.
					</dd></dl></div></div><div class="refsynopsisdiv"><a name="glTexCoord.3G-c_spec-v"/><h2>C Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code>void <tt>glTexCoord1dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLdouble *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord1fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLfloat *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord1iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLint *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord1sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLshort *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLdouble *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLfloat *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLint *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord2sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLshort *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLdouble *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLfloat *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLint *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord3sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLshort *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLdouble *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLfloat *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLint *<i><tt>v</tt></i>);</code></td></tr><tr><td valign="top"><code>void <tt>glTexCoord4sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code>const GLshort *<i><tt>v</tt></i>);</code></td></tr></table></div><div class="refsynopsisdiv"><a name="glTexCoord.3G-python_spec-v"/><h2>Python Specification</h2><table class="funcprototype" border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><code><tt>glTexCoord1dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord1fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord1iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord1sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord2sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord3sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4dv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4fv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4iv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr><tr><td valign="top"><code><tt>glTexCoord4sv</tt></code></td><td valign="top"><code>(</code></td><td valign="top"><code><i><tt>v</tt></i>) &#8594; <tt>None</tt></code></td></tr></table></div><div class="refsect1" lang="en"><a name="glTexCoord.3G-parameters-v"/><h2>Parameters</h2><div class="variablelist"><dl><dt><span class="term"><i><tt>v</tt></i></span></dt><dd>
						Specifies a pointer to an array of one, two, three, or four elements, which in turn specify the
						<i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, and <i><tt>q</tt></i>
						texture coordinates.
					</dd></dl></div></div><div class="refsect1" lang="en"><a name="glTexCoord.3G-description"/><h2>Description</h2><p>
			<tt>glTexCoord</tt> specifies texture coordinates in one, two, three, or four
			dimensions. <tt>glTexCoord1</tt> sets the current texture coordinates to
			(<i><tt>s</tt></i>, 0, 0, 1); a call to
		</p><p>
			<tt>glTexCoord2</tt> sets them to (<i><tt>s</tt></i>, <i><tt>t</tt></i>,
			0, 1). Similarly, <tt>glTexCoord3</tt> specifies the texture coordinates as
			(<i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, 1), and <tt>glTexCoord4</tt> defines all four components explicitly as (<i><tt>s</tt></i>,
			<i><tt>t</tt></i>, <i><tt>r</tt></i>, <i><tt>q</tt></i>).
		</p><p>
			The current texture coordinates are part of the data that is associated with each vertex and with the current raster
			position. Initially, the values for <i><tt>s</tt></i>, <i><tt>t</tt></i>, <i><tt>r</tt></i>, and
			<i><tt>q</tt></i> are (0, 0, 0, 1).
		</p></div><div class="refsect1" lang="en"><a name="glTexCoord.3G-notes"/><h2>Notes</h2><p>
			The current texture coordinates can be updated at any time. In particular, <tt>glTexCoord</tt> can be called between a call to <a href="glBegin.3G.xml"><tt>glBegin</tt></a> and the corresponding call to <a href="glBegin.3G.xml"><tt>glEnd</tt></a>.
		</p><p>
			When the <tt>GL_ARB_imaging</tt> extension is supported, <tt>glTexCoord</tt> always updates texture unit <tt>GL_TEXTURE0_ARB</tt>.
		</p></div><div class="refsect1" lang="en"><a name="glTexCoord.3G-associated_gets"/><h2>Associated Gets</h2><p>
			<tt>glGet</tt> with argument <tt>GL_CURRENT_TEXTURE_COORDS</tt>
		</p></div><div class="refsect1" lang="en"><a name="glTexCoord.3G-see_also"/><h2>See Also</h2><p>
			<span class="simplelist"><a href="glTexCoordPointer.3G.xml">glTexCoordPointer</a>, <a href="glVertex.3G.xml">glVertex</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="glStencilOp.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="glTexCoordPointer.3G.xml">Next</a></td></tr><tr><td width="40%" align="left" valign="top">glStencilOp </td><td width="20%" align="center"><a accesskey="h" href="index.xml">Home</a></td><td width="40%" align="right" valign="top"> glTexCoordPointer</td></tr></table></div></body></html>
