<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd">
<!-- saved from url=(0013)about:internet -->
<?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>glMultiTexCoord</title><meta name="generator" content="DocBook XSL Stylesheets V1.74.0" /></head><body><div class="refentry" lang="en" xml:lang="en"><a id="glMultiTexCoord"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glMultiTexCoord — set the current texture coordinates</p></div><div class="refsynopsisdiv"><h2>C Specification</h2><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">glMultiTexCoord4f</b>(</code></td><td>GLenum <var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLfloat <var class="pdparam">s</var>, </td></tr><tr><td> </td><td>GLfloat <var class="pdparam">t</var>, </td></tr><tr><td> </td><td>GLfloat <var class="pdparam">r</var>, </td></tr><tr><td> </td><td>GLfloat <var class="pdparam">q</var><code>)</code>;</td></tr></table><div class="funcprototype-spacer"> </div><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0" class="funcprototype-table"><tr><td><code class="funcdef">void <b class="fsfunc">glMultiTexCoord4x</b>(</code></td><td>GLenum <var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLfixed <var class="pdparam">s</var>, </td></tr><tr><td> </td><td>GLfixed <var class="pdparam">t</var>, </td></tr><tr><td> </td><td>GLfixed <var class="pdparam">r</var>, </td></tr><tr><td> </td><td>GLfixed <var class="pdparam">q</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>target</code></em>
                </span></dt><dd><p>Specifies the texture unit whose coordinates should be
                    modified. The number of texture units is implementation
                    dependent, but must be at least 
                    <span>two</span>. 
                    Symbolic constant must be one of
                    <code class="constant">GL_TEXTURE</code><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">i</mml:mi></mml:math>,
                    where i ranges from 0 to <code class="constant">GL_MAX_TEXTURE_UNITS</code> - 1,
                    which is an implementation-dependent value.</p></dd><dt><span class="term">
                <em class="parameter"><code>s</code></em>,
                <em class="parameter"><code>t</code></em>,
                <em class="parameter"><code>r</code></em>,
                <em class="parameter"><code>q</code></em>
                </span></dt><dd><p>Specify
                    <em class="parameter"><code>s</code></em>,
                    <em class="parameter"><code>t</code></em>,
                    <em class="parameter"><code>r</code></em>, and
                    <em class="parameter"><code>q</code></em> texture coordinates for
                    <em class="parameter"><code>target</code></em> texture unit.</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
        <code class="function">glMultiTexCoord</code>
        specifies the four texture coordinates as
        (<em class="parameter"><code>s</code></em>,
        <em class="parameter"><code>t</code></em>,
        <em class="parameter"><code>r</code></em>,
        <em class="parameter"><code>q</code></em>).</p><p>The current texture coordinates are part of the data that
        is associated with each vertex.
            Initially, the values for
            <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                
                <mml:mfenced open="(" close=")">
                    <mml:mi mathvariant="italic">s</mml:mi>
                    <mml:mi mathvariant="italic">t</mml:mi>
                    <mml:mi mathvariant="italic">r</mml:mi>
                    <mml:mi mathvariant="italic">q</mml:mi>
                </mml:mfenced>
            </mml:math>
            are 
            <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                
                <mml:mfenced open="(" close=")">
                    <mml:mn>0</mml:mn>
                    <mml:mn>0</mml:mn>
                    <mml:mn>0</mml:mn>
                    <mml:mn>1</mml:mn>
                </mml:mfenced>
            </mml:math>.</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="notes"></a><h2>Notes</h2><p>It is always the case that
        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
            <mml:mi>GL_TEXTURE</mml:mi><mml:mi>i</mml:mi> <mml:mo>=</mml:mo>
            <mml:mi>GL_TEXTURE0</mml:mi><mml:mo>+</mml:mo><mml:mi>i</mml:mi>
        </mml:math>.</p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p>
            <a class="citerefentry" href="glGet.xml"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_CURRENT_TEXTURE_COORDS</code> with appropriate
            texture unit selected.
        </p><p>
        <a class="citerefentry" href="glGet.xml"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a>
        with argument <code class="constant">GL_MAX_TEXTURE_UNITS</code>
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p>
        <a class="citerefentry" href="glActiveTexture.xml"><span class="citerefentry"><span class="refentrytitle">glActiveTexture</span></span></a>,
        <a class="citerefentry" href="glClientActiveTexture.xml"><span class="citerefentry"><span class="refentrytitle">glClientActiveTexture</span></span></a>,
        <a class="citerefentry" href="glColor.xml"><span class="citerefentry"><span class="refentrytitle">glColor</span></span></a>,
        <a class="citerefentry" href="glGet.xml"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a>,
        <a class="citerefentry" href="glNormal.xml"><span class="citerefentry"><span class="refentrytitle">glNormal</span></span></a>,
        <a class="citerefentry" href="glTexCoordPointer.xml"><span class="citerefentry"><span class="refentrytitle">glTexCoordPointer</span></span></a>
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="copyright"></a><h2>Copyright</h2><p>
            Copyright <span class="trademark"></span>© 2003-2004
            Silicon Graphics, Inc. This document is licensed under the SGI
            Free Software B License. For details, see
            <a class="ulink" href="http://oss.sgi.com/projects/FreeB/" target="_top">http://oss.sgi.com/projects/FreeB/</a>.
        </p></div></div></body></html>
