<!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>glTexParameter</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /></head><body><div class="refentry" lang="en" xml:lang="en"><a id="glTexParameter"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glTexParameter — set texture parameters</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">glTexParameterf</b>(</code></td><td>GLenum  </td><td><var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLenum  </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLfloat  </td><td><var class="pdparam">param</var><code>)</code>;</td></tr></table></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><tr><td><code class="funcdef">void <b class="fsfunc">glTexParameteri</b>(</code></td><td>GLenum  </td><td><var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLenum  </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>GLint  </td><td><var class="pdparam">param</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>target</code></em></span></dt><dd><p>
                    Specifies the target texture,
                    which must be either <code class="constant">GL_TEXTURE_1D</code>, <code class="constant">GL_TEXTURE_2D</code>,
                    <code class="constant">GL_TEXTURE_3D</code>, or <code class="constant">GL_TEXTURE_CUBE_MAP</code>.
                </p></dd><dt><span class="term"><em class="parameter"><code>pname</code></em></span></dt><dd><p>
                    Specifies the symbolic name of a single-valued texture parameter.
                    <em class="parameter"><code>pname</code></em> can be one of the following:
                    <code class="constant">GL_TEXTURE_MIN_FILTER</code>,
                    <code class="constant">GL_TEXTURE_MAG_FILTER</code>,
                    <code class="constant">GL_TEXTURE_MIN_LOD</code>,
                    <code class="constant">GL_TEXTURE_MAX_LOD</code>,
                    <code class="constant">GL_TEXTURE_BASE_LEVEL</code>,
                    <code class="constant">GL_TEXTURE_MAX_LEVEL</code>,
                    <code class="constant">GL_TEXTURE_WRAP_S</code>,
                    <code class="constant">GL_TEXTURE_WRAP_T</code>,
                    <code class="constant">GL_TEXTURE_WRAP_R</code>,
                    <code class="constant">GL_TEXTURE_PRIORITY</code>,
                    <code class="constant">GL_TEXTURE_COMPARE_MODE</code>,
                    <code class="constant">GL_TEXTURE_COMPARE_FUNC</code>,
                    <code class="constant">GL_DEPTH_TEXTURE_MODE</code>, or
                    <code class="constant">GL_GENERATE_MIPMAP</code>.
                </p></dd><dt><span class="term"><em class="parameter"><code>param</code></em></span></dt><dd><p>
                    Specifies the value of <em class="parameter"><code>pname</code></em>.
                </p></dd></dl></div></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">glTexParameterfv</b>(</code></td><td>GLenum  </td><td><var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLenum  </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>const GLfloat *  </td><td><var class="pdparam">params</var><code>)</code>;</td></tr></table></div><div class="funcsynopsis"><table border="0" summary="Function synopsis" cellspacing="0" cellpadding="0"><tr><td><code class="funcdef">void <b class="fsfunc">glTexParameteriv</b>(</code></td><td>GLenum  </td><td><var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLenum  </td><td><var class="pdparam">pname</var>, </td></tr><tr><td> </td><td>const GLint *  </td><td><var class="pdparam">params</var><code>)</code>;</td></tr></table></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="parameters2"></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 target texture,
                    which must be either <code class="constant">GL_TEXTURE_1D</code>, <code class="constant">GL_TEXTURE_2D</code> or
                    <code class="constant">GL_TEXTURE_3D</code>.
                </p></dd><dt><span class="term"><em class="parameter"><code>pname</code></em></span></dt><dd><p>
                    Specifies the symbolic name of a texture parameter.
                    <em class="parameter"><code>pname</code></em> can be one of the following:
                    <code class="constant">GL_TEXTURE_MIN_FILTER</code>,
                    <code class="constant">GL_TEXTURE_MAG_FILTER</code>,
                    <code class="constant">GL_TEXTURE_MIN_LOD</code>,
                    <code class="constant">GL_TEXTURE_MAX_LOD</code>,
                    <code class="constant">GL_TEXTURE_BASE_LEVEL</code>,
                    <code class="constant">GL_TEXTURE_MAX_LEVEL</code>,
                    <code class="constant">GL_TEXTURE_WRAP_S</code>,
                    <code class="constant">GL_TEXTURE_WRAP_T</code>,
                    <code class="constant">GL_TEXTURE_WRAP_R</code>,
                    <code class="constant">GL_TEXTURE_BORDER_COLOR</code>,
                    <code class="constant">GL_TEXTURE_PRIORITY</code>,
                    <code class="constant">GL_TEXTURE_COMPARE_MODE</code>,
                    <code class="constant">GL_TEXTURE_COMPARE_FUNC</code>,
                    <code class="constant">GL_DEPTH_TEXTURE_MODE</code>, or
                    <code class="constant">GL_GENERATE_MIPMAP</code>.
                </p></dd><dt><span class="term"><em class="parameter"><code>params</code></em></span></dt><dd><p>
                    Specifies a pointer to an array where the value or values of <em class="parameter"><code>pname</code></em>
                    are stored.
                </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
            Texture mapping is a technique that applies an image onto an object's surface
            as if the image were a decal or cellophane shrink-wrap.
            The image is created in texture space,
            with an 
            (<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>, 
            <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">t</mml:mi></mml:math>)
            coordinate system.
            A texture is a one- or two-dimensional image and a set of parameters
            that determine how samples are derived from the image.
        </p><p>
            <code class="function">glTexParameter</code> assigns the value or values in <em class="parameter"><code>params</code></em> to the texture parameter
            specified as <em class="parameter"><code>pname</code></em>.
            <em class="parameter"><code>target</code></em> defines the target texture,
            either <code class="constant">GL_TEXTURE_1D</code>, <code class="constant">GL_TEXTURE_2D</code>, or <code class="constant">GL_TEXTURE_3D</code>.
            The following symbols are accepted in <em class="parameter"><code>pname</code></em>:
        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_TEXTURE_MIN_FILTER</code></span></dt><dd><p>
                        The texture minifying function is used whenever the pixel being textured
                        maps to an area greater than one texture element.
                        There are six defined minifying functions.
                        Two of them use the nearest one or nearest four texture elements
                        to compute the texture value.
                        The other four use mipmaps.
                    </p><p>
                        A mipmap is an ordered set of arrays representing the same image
                        at progressively lower resolutions.
                        If the texture has dimensions 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mi mathvariant="italic">n</mml:mi>
                                </mml:msup>
                                <mml:mo>×</mml:mo>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mi mathvariant="italic">m</mml:mi>
                                </mml:msup>
                            </mml:mrow>
                        </mml:math>,
                        there are
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mrow>
                                    <mml:mi mathvariant="italic">max</mml:mi>
                                    <mml:mo>⁡</mml:mo>
                                    <mml:mfenced open="(" close=")">
                                        <mml:mi mathvariant="italic">n</mml:mi>
                                        <mml:mi mathvariant="italic">m</mml:mi>
                                    </mml:mfenced>
                                </mml:mrow>
                                <mml:mo>+</mml:mo>
                                <mml:mn>1</mml:mn>
                            </mml:mrow>
                        </mml:math>
                        mipmaps.
                        The first mipmap is the original texture,
                        with dimensions 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mi mathvariant="italic">n</mml:mi>
                                </mml:msup>
                                <mml:mo>×</mml:mo>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mi mathvariant="italic">m</mml:mi>
                                </mml:msup>
                            </mml:mrow>
                        </mml:math>.
                        Each subsequent mipmap has dimensions 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mfenced open="" close="">
                                    <mml:mrow>
                                        <mml:mi mathvariant="italic">k</mml:mi>
                                        <mml:mo>-</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mrow>
                                </mml:mfenced>
                                </mml:msup>
                                <mml:mo>×</mml:mo>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mfenced open="" close="">
                                    <mml:mrow>
                                        <mml:mi mathvariant="italic">l</mml:mi>
                                        <mml:mo>-</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mrow>
                                </mml:mfenced>
                                </mml:msup>
                            </mml:mrow>
                        </mml:math>,
                        where 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mi mathvariant="italic">k</mml:mi>
                                </mml:msup>
                                <mml:mo>×</mml:mo>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mi mathvariant="italic">l</mml:mi>
                                </mml:msup>
                            </mml:mrow>
                        </mml:math>
                        are the dimensions of the previous mipmap,
                        until either 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mi mathvariant="italic">k</mml:mi>
                                <mml:mo>=</mml:mo>
                                <mml:mn>0</mml:mn>
                            </mml:mrow>
                        </mml:math>
                        or 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mi mathvariant="italic">l</mml:mi>
                                <mml:mo>=</mml:mo>
                                <mml:mn>0</mml:mn>
                            </mml:mrow>
                        </mml:math>.
                        At that point,
                        subsequent mipmaps have dimension 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mn>1</mml:mn>
                                <mml:mo>×</mml:mo>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mfenced open="" close="">
                                    <mml:mrow>
                                        <mml:mi mathvariant="italic">l</mml:mi>
                                        <mml:mo>-</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mrow>
                                </mml:mfenced>
                                </mml:msup>
                            </mml:mrow>
                        </mml:math>
                        or 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:msup><mml:mn>2</mml:mn>
                                <mml:mfenced open="" close="">
                                    <mml:mrow>
                                        <mml:mi mathvariant="italic">k</mml:mi>
                                        <mml:mo>-</mml:mo>
                                        <mml:mn>1</mml:mn>
                                    </mml:mrow>
                                </mml:mfenced>
                                </mml:msup>
                                <mml:mo>×</mml:mo>
                                <mml:mn>1</mml:mn>
                            </mml:mrow>
                        </mml:math>
                        until the final mipmap,
                        which has dimension 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mn>1</mml:mn>
                                <mml:mo>×</mml:mo>
                                <mml:mn>1</mml:mn>
                            </mml:mrow>
                        </mml:math>.
                        To define the mipmaps, call <a class="citerefentry" href="glTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage1D</span></span></a>, <a class="citerefentry" href="glTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>,
                        <a class="citerefentry" href="glTexImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage3D</span></span></a>,
                        <a class="citerefentry" href="glCopyTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage1D</span></span></a>, or <a class="citerefentry" href="glCopyTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage2D</span></span></a>
                        with the <span class="emphasis"><em>level</em></span> argument indicating the order of the mipmaps.
                        Level 0 is the original texture;
                        level 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mi mathvariant="italic">max</mml:mi>
                                <mml:mo>⁡</mml:mo>
                                <mml:mfenced open="(" close=")">
                                    <mml:mi mathvariant="italic">n</mml:mi>
                                    <mml:mi mathvariant="italic">m</mml:mi>
                                </mml:mfenced>
                            </mml:mrow>
                        </mml:math>
                        is the final 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mn>1</mml:mn>
                                <mml:mo>×</mml:mo>
                                <mml:mn>1</mml:mn>
                            </mml:mrow>
                        </mml:math>
                        mipmap.
                    </p><p>
                        <em class="parameter"><code>params</code></em> supplies a function for minifying the texture as one of the
                        following:
                        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_NEAREST</code></span></dt><dd><p>
                                        Returns the value of the texture element that is nearest
                                        (in Manhattan distance)
                                        to the center of the pixel being textured.
                                    </p></dd><dt><span class="term"><code class="constant">GL_LINEAR</code></span></dt><dd><p>
                                        Returns the weighted average of the four texture elements
                                        that are closest to the center of the pixel being textured.
                                        These can include border texture elements,
                                        depending on the values of <code class="constant">GL_TEXTURE_WRAP_S</code> and <code class="constant">GL_TEXTURE_WRAP_T</code>,
                                        and on the exact mapping.
                                    </p></dd><dt><span class="term"><code class="constant">GL_NEAREST_MIPMAP_NEAREST</code></span></dt><dd><p>
                                        Chooses the mipmap that most closely matches the size of the pixel
                                        being textured and uses the <code class="constant">GL_NEAREST</code> criterion
                                        (the texture element nearest to the center of the pixel)
                                        to produce a texture value.
                                    </p></dd><dt><span class="term"><code class="constant">GL_LINEAR_MIPMAP_NEAREST</code></span></dt><dd><p>
                                        Chooses the mipmap that most closely matches the size of the pixel
                                        being textured and uses the <code class="constant">GL_LINEAR</code> criterion
                                        (a weighted average of the four texture elements that are closest
                                        to the center of the pixel)
                                        to produce a texture value.
                                    </p></dd><dt><span class="term"><code class="constant">GL_NEAREST_MIPMAP_LINEAR</code></span></dt><dd><p>
                                        Chooses the two mipmaps that most closely match the size of the pixel
                                        being textured and uses the <code class="constant">GL_NEAREST</code> criterion
                                        (the texture element nearest to the center of the pixel)
                                        to produce a texture value from each mipmap.
                                        The final texture value is a weighted average of those two values.
                                    </p></dd><dt><span class="term"><code class="constant">GL_LINEAR_MIPMAP_LINEAR</code></span></dt><dd><p>
                                        Chooses the two mipmaps that most closely match the size of the pixel
                                        being textured and uses the <code class="constant">GL_LINEAR</code> criterion
                                        (a weighted average of the four texture elements that are closest
                                        to the center of the pixel)
                                        to produce a texture value from each mipmap.
                                        The final texture value is a weighted average of those two values.
                                    </p></dd></dl></div><p>
                    </p><p>
                        As more texture elements are sampled in the minification process,
                        fewer aliasing artifacts will be apparent.
                        While the <code class="constant">GL_NEAREST</code> and <code class="constant">GL_LINEAR</code> minification functions can be
                        faster than the other four,
                        they sample only one or four texture elements to determine the texture value
                        of the pixel being rendered and can produce moire patterns
                        or ragged transitions.
                        The initial value of <code class="constant">GL_TEXTURE_MIN_FILTER</code> is
                        <code class="constant">GL_NEAREST_MIPMAP_LINEAR</code>.
                    </p></dd><dt><span class="term"><code class="constant">GL_TEXTURE_MAG_FILTER</code></span></dt><dd><p>
                        The texture magnification function is used when the pixel being textured
                        maps to an area less than or equal to one texture element.
                        It sets the texture magnification function to either <code class="constant">GL_NEAREST</code>
                        or <code class="constant">GL_LINEAR</code> (see below). <code class="constant">GL_NEAREST</code> is generally faster
                        than <code class="constant">GL_LINEAR</code>,
                        but it can produce textured images with sharper edges
                        because the transition between texture elements is not as smooth.
                        The initial value of <code class="constant">GL_TEXTURE_MAG_FILTER</code> is <code class="constant">GL_LINEAR</code>.
                        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_NEAREST</code></span></dt><dd><p>
                                        Returns the value of the texture element that is nearest
                                        (in Manhattan distance)
                                        to the center of the pixel being textured.
                                    </p></dd><dt><span class="term"><code class="constant">GL_LINEAR</code></span></dt><dd><p>
                                        Returns the weighted average of the four texture elements
                                        that are closest to the center of the pixel being textured.
                                        These can include border texture elements,
                                        depending on the values of <code class="constant">GL_TEXTURE_WRAP_S</code> and <code class="constant">GL_TEXTURE_WRAP_T</code>,
                                        and on the exact mapping.
                                    </p></dd></dl></div><p>
                        </p><p>
                        </p><p>
                    </p></dd></dl></div><p>
        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_TEXTURE_MIN_LOD</code></span></dt><dd><p>
                        Sets the minimum level-of-detail parameter.  This floating-point value
                        limits the selection of highest resolution mipmap (lowest mipmap
                        level). The initial value is -1000.
                    </p></dd></dl></div><p>
        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_TEXTURE_MAX_LOD</code></span></dt><dd><p>
                        Sets the maximum level-of-detail parameter.  This floating-point value
                        limits the selection of the lowest resolution mipmap (highest mipmap
                        level). The initial value is 1000.
                    </p></dd></dl></div><p>
        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_TEXTURE_BASE_LEVEL</code></span></dt><dd><p>
                        Specifies the index of the lowest defined mipmap level. This is an
                        integer value. The initial value is 0.
                    </p></dd></dl></div><p>
        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_TEXTURE_MAX_LEVEL</code></span></dt><dd><p>
                        Sets the index of the highest defined mipmap level. This is an integer
                        value. The initial value is 1000.
                    </p></dd></dl></div><p>
        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_TEXTURE_WRAP_S</code></span></dt><dd><p>
                        Sets the wrap parameter for texture coordinate 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        to either <code class="constant">GL_CLAMP</code>,
                        <code class="constant">GL_CLAMP_TO_BORDER</code>, <code class="constant">GL_CLAMP_TO_EDGE</code>, <code class="constant">GL_MIRRORED_REPEAT</code>, or
                        <code class="constant">GL_REPEAT</code>.  <code class="constant">GL_CLAMP</code> causes 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        coordinates to be clamped to the
                        range [0,1] and is useful for preventing wrapping artifacts when mapping a
                        single image onto an object.  <code class="constant">GL_CLAMP_TO_BORDER</code> causes the 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        coordinate to be clamped to the range
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mfenced open="[" close="]">
                                <mml:mfenced open="" close="">
                                    <mml:mrow>
                                        <mml:mfrac>
                                            <mml:mn>-1</mml:mn>
                                            <mml:mn>2<mml:mi mathvariant="italic">N</mml:mi></mml:mn>
                                        </mml:mfrac>
                                    </mml:mrow>
                                </mml:mfenced>
                                <mml:mrow>
                                    <mml:mn>1</mml:mn>
                                    <mml:mo>+</mml:mo>
                                    <mml:mfenced open="" close="">
                                        <mml:mrow>
                                            <mml:mfrac>
                                                <mml:mn>1</mml:mn>
                                                <mml:mn>2<mml:mi mathvariant="italic">N</mml:mi></mml:mn>
                                            </mml:mfrac>
                                        </mml:mrow>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>,
                        where 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">N</mml:mi></mml:math>
                        is the size of the texture in the direction of
                        clamping.<code class="constant">GL_CLAMP_TO_EDGE</code> causes 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        coordinates to be clamped to the
                        range 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mfenced open="[" close="]">
                                <mml:mfenced open="" close="">
                                    <mml:mrow>
                                        <mml:mfrac>
                                            <mml:mn>1</mml:mn>
                                            <mml:mn>2<mml:mi mathvariant="italic">N</mml:mi></mml:mn>
                                        </mml:mfrac>
                                    </mml:mrow>
                                </mml:mfenced>
                                <mml:mrow>
                                    <mml:mn>1</mml:mn>
                                    <mml:mo>-</mml:mo>
                                    <mml:mfenced open="" close="">
                                        <mml:mrow>
                                            <mml:mfrac>
                                                <mml:mn>1</mml:mn>
                                                <mml:mn>2<mml:mi mathvariant="italic">N</mml:mi></mml:mn>
                                            </mml:mfrac>
                                        </mml:mrow>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mfenced>
                        </mml:math>,
                        where 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">N</mml:mi></mml:math>
                        is the size
                        of the texture in the direction of clamping.  <code class="constant">GL_REPEAT</code> causes the
                        integer part of the 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        coordinate to be ignored; the GL uses only the
                        fractional part, thereby creating a repeating pattern.
                        <code class="constant">GL_MIRRORED_REPEAT</code> causes the 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        coordinate to be set to the
                        fractional part of the texture coordinate if the integer part of 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        is
                        even; if the integer part of 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        is odd, then the 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>
                        texture coordinate is
                        set to 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mn>1</mml:mn>
                                <mml:mo>-</mml:mo>
                                <mml:mrow>
                                    <mml:mi mathvariant="italic">frac</mml:mi>
                                    <mml:mo>⁡</mml:mo>
                                    <mml:mfenced open="(" close=")">
                                        <mml:mi mathvariant="italic">s</mml:mi>
                                    </mml:mfenced>
                                </mml:mrow>
                            </mml:mrow>
                        </mml:math>,
                        where 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mrow>
                                <mml:mi mathvariant="italic">frac</mml:mi>
                                <mml:mo>⁡</mml:mo>
                                <mml:mfenced open="(" close=")">
                                    <mml:mi mathvariant="italic">s</mml:mi>
                                </mml:mfenced>
                            </mml:mrow>
                        </mml:math>
                        represents the fractional part of
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">s</mml:mi></mml:math>.
                        Border texture
                        elements are accessed only if wrapping is set to <code class="constant">GL_CLAMP</code> or <code class="constant">GL_CLAMP_TO_BORDER</code>.  Initially,
                        <code class="constant">GL_TEXTURE_WRAP_S</code> is set to <code class="constant">GL_REPEAT</code>.
                    </p></dd></dl></div><p>
        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_TEXTURE_WRAP_T</code></span></dt><dd><p>
                        Sets the wrap parameter for texture coordinate 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">t</mml:mi></mml:math>
                        to either <code class="constant">GL_CLAMP</code>,
                        <code class="constant">GL_CLAMP_TO_BORDER</code>, <code class="constant">GL_CLAMP_TO_EDGE</code>, <code class="constant">GL_MIRRORED_REPEAT</code>, or
                        <code class="constant">GL_REPEAT</code>.  See the discussion under <code class="constant">GL_TEXTURE_WRAP_S</code>.
                        Initially, <code class="constant">GL_TEXTURE_WRAP_T</code> is set to <code class="constant">GL_REPEAT</code>.
                    </p></dd><dt><span class="term"><code class="constant">GL_TEXTURE_WRAP_R</code></span></dt><dd><p>
                        Sets the wrap parameter for texture coordinate 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">r</mml:mi></mml:math>
                        to either <code class="constant">GL_CLAMP</code>,
                        <code class="constant">GL_CLAMP_TO_BORDER</code>, <code class="constant">GL_CLAMP_TO_EDGE</code>, <code class="constant">GL_MIRRORED_REPEAT</code>, or
                        <code class="constant">GL_REPEAT</code>.  See the discussion under <code class="constant">GL_TEXTURE_WRAP_S</code>.
                        Initially, <code class="constant">GL_TEXTURE_WRAP_R</code> is set to <code class="constant">GL_REPEAT</code>.
                    </p></dd><dt><span class="term"><code class="constant">GL_TEXTURE_BORDER_COLOR</code></span></dt><dd><p>
                        Sets a border color.  <em class="parameter"><code>params</code></em> contains four values that comprise the RGBA
                        color of the texture border.  Integer color components are interpreted
                        linearly such that the most positive integer maps to 1.0, and the most
                        negative integer maps to -1.0.  The values are clamped to the range [0,1]
                        when they are specified.  Initially, the border color is (0, 0, 0, 0).
                    </p></dd><dt><span class="term"><code class="constant">GL_TEXTURE_PRIORITY</code></span></dt><dd><p>
                        Specifies the texture residence priority of the currently bound texture.
                        Permissible values are in the range 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:mfenced open="[" close="]">
                                <mml:mn>0</mml:mn>
                                <mml:mn>1</mml:mn>
                            </mml:mfenced>
                        </mml:math>.
                        See <a class="citerefentry" href="glPrioritizeTextures.xml"><span class="citerefentry"><span class="refentrytitle">glPrioritizeTextures</span></span></a> and <a class="citerefentry" href="glBindTexture.xml"><span class="citerefentry"><span class="refentrytitle">glBindTexture</span></span></a> for more information.
                    </p></dd><dt><span class="term"><code class="constant">GL_TEXTURE_COMPARE_MODE</code></span></dt><dd><p>
                        Specifies the texture comparison mode for currently bound depth textures.
                        That is, a texture whose internal format is <code class="constant">GL_DEPTH_COMPONENT_*</code>; see
                        <a class="citerefentry" href="glTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>)
                        Permissible values are:
                        </p><div class="variablelist"><dl><dt><span class="term"><code class="constant">GL_COMPARE_R_TO_TEXTURE</code></span></dt><dd><p>
                                        Specifies that the interpolated and clamped 
                                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">r</mml:mi></mml:math>
                                        texture coordinate should
                                        be compared to the value in the currently bound depth texture.  See the
                                        discussion of <code class="constant">GL_TEXTURE_COMPARE_FUNC</code> for details of how the comparison
                                        is evaluated.  The result of the comparison is assigned to luminance,
                                        intensity, or alpha (as specified by <code class="constant">GL_DEPTH_TEXTURE_MODE</code>).
                                    </p></dd><dt><span class="term"><code class="constant">GL_NONE</code></span></dt><dd><p>
                                        Specifies that the luminance, intensity, or alpha (as specified by
                                        <code class="constant">GL_DEPTH_TEXTURE_MODE</code>) should be assigned the
                                        appropriate value from the currently bound depth texture.
                                    </p></dd></dl></div><p>
                    </p></dd><dt><span class="term"><code class="constant">GL_TEXTURE_COMPARE_FUNC</code></span></dt><dd><p>
                        Specifies the comparison operator used when <code class="constant">GL_TEXTURE_COMPARE_MODE</code> is
                        set to <code class="constant">GL_COMPARE_R_TO_TEXTURE</code>.  Permissible values are:
                        </p><div class="informaltable"><table border="1"><colgroup><col align="left" /><col align="left" /></colgroup><thead><tr><th align="left"><span class="bold"><strong>
                                        Texture Comparison Function
                                        </strong></span></th><th align="left"><span class="bold"><strong>
                                        Computed result 
                                        </strong></span></th></tr></thead><tbody><tr><td align="left">
                                        <code class="constant">GL_LEQUAL</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mfenced open="{" close="">
                                                        <mml:mrow>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>1.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>0.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                            <mml:mo>⁢  </mml:mo>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&lt;=</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&gt;</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                        </mml:mrow>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:math></div>
                                        </td></tr><tr><td align="left">
                                        <code class="constant">GL_GEQUAL</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mfenced open="{" close="">
                                                        <mml:mrow>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>1.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>0.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                            <mml:mo>⁢  </mml:mo>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&gt;=</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&lt;</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                        </mml:mrow>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:math></div>
                                        </td></tr><tr><td align="left">
                                        <code class="constant">GL_LESS</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mfenced open="{" close="">
                                                        <mml:mrow>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>1.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>0.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                            <mml:mo>⁢  </mml:mo>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&lt;</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&gt;=</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                        </mml:mrow>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:math></div>
                                        </td></tr><tr><td align="left">
                                        <code class="constant">GL_GREATER</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mfenced open="{" close="">
                                                        <mml:mrow>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>1.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>0.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                            <mml:mo>⁢  </mml:mo>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&gt;</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>&lt;=</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                        </mml:mrow>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:math></div>
                                        </td></tr><tr><td align="left">
                                        <code class="constant">GL_EQUAL</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mfenced open="{" close="">
                                                        <mml:mrow>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>1.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>0.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                            <mml:mo>⁢  </mml:mo>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>=</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>≠</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                        </mml:mrow>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:math></div>
                                        </td></tr><tr><td align="left">
                                        <code class="constant">GL_NOTEQUAL</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mfenced open="{" close="">
                                                        <mml:mrow>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>1.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mn>0.0</mml:mn>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                            <mml:mo>⁢  </mml:mo>
                                                            <mml:mtable>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>≠</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                                <mml:mtr><mml:mtd>
                                                                    <mml:mrow>
                                                                        <mml:mi mathvariant="italic">r</mml:mi>
                                                                        <mml:mo>=</mml:mo>
                                                                        <mml:mfenced open="" close="">
                                                                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                                                                            <mml:mi mathvariant="italic">t</mml:mi>
                                                                            </mml:msub>
                                                                        </mml:mfenced>
                                                                    </mml:mrow>
                                                                </mml:mtd></mml:mtr>
                                                            </mml:mtable>
                                                        </mml:mrow>
                                                    </mml:mfenced>
                                                </mml:mrow>
                                            </mml:math></div>
                                        </td></tr><tr><td align="left">
                                        <code class="constant">GL_ALWAYS</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mi>1.0</mml:mi>
                                                </mml:mrow>
                                                </mml:math></div>
                                        </td></tr><tr><td align="left">
                                        <code class="constant">GL_NEVER</code>
                                        </td><td align="left">
                                            <div class="informalequation"><mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                                                <mml:mrow>
                                                    <mml:mi mathvariant="italic">result</mml:mi>
                                                    <mml:mo>=</mml:mo>
                                                    <mml:mi>0.0</mml:mi>
                                                </mml:mrow>
                                                </mml:math></div>
                                        </td></tr></tbody></table></div><p>
                        where <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">r</mml:mi></mml:math>
                        is the current interpolated texture coordinate, and 
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
                            
                            <mml:msub><mml:mi mathvariant="italic">D</mml:mi>
                            <mml:mi mathvariant="italic">t</mml:mi>
                            </mml:msub>
                        </mml:math>
                        is the depth texture value sampled from the currently bound depth texture.
                        <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">result</mml:mi></mml:math>
                        is assigned to the either the luminance, intensity, or alpha (as
                        specified by <code class="constant">GL_DEPTH_TEXTURE_MODE</code>.)
                    </p></dd><dt><span class="term"><code class="constant">GL_DEPTH_TEXTURE_MODE</code></span></dt><dd><p>
                        Specifies a single symbolic constant indicating how depth values should be
                        treated during filtering and texture application.  Accepted values are
                        <code class="constant">GL_LUMINANCE</code>, <code class="constant">GL_INTENSITY</code>, and <code class="constant">GL_ALPHA</code>.  The initial value
                        is <code class="constant">GL_LUMINANCE</code>.
                    </p></dd><dt><span class="term"><code class="constant">GL_GENERATE_MIPMAP</code></span></dt><dd><p>
                        Specifies a boolean value that indicates if all levels of a mipmap array
                        should be automatically updated when any modification to the base level
                        mipmap is done.  The initial value is <code class="constant">GL_FALSE</code>.
                    </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="notes"></a><h2>Notes</h2><p>
            <code class="constant">GL_TEXTURE_3D</code>, <code class="constant">GL_TEXTURE_MIN_LOD</code>, <code class="constant">GL_TEXTURE_MAX_LOD</code>,
            <code class="constant">GL_CLAMP_TO_EDGE</code>, <code class="constant">GL_TEXTURE_BASE_LEVEL</code>, and <code class="constant">GL_TEXTURE_MAX_LEVEL</code> are
            available only if the GL version is 1.2 or greater.
        </p><p>
            <code class="constant">GL_CLAMP_TO_BORDER</code> is available only if the GL version is 1.3 or greater.
        </p><p>
            <code class="constant">GL_MIRRORED_REPEAT</code>, <code class="constant">GL_TEXTURE_COMPARE_MODE</code>,
            <code class="constant">GL_TEXTURE_COMPARE_FUNC</code>, <code class="constant">GL_DEPTH_TEXTURE_MODE</code>, and
            <code class="constant">GL_GENERATE_MIPMAP</code> are available only if the GL version is 1.4 or
            greater.
        </p><p>
            <code class="constant">GL_TEXTURE_COMPARE_FUNC</code> allows the following additional comparison modes only
            if the GL version is 1.5 or greater:
            <code class="constant">GL_LESS</code>, <code class="constant">GL_GREATER</code>,
            <code class="constant">GL_EQUAL</code>, <code class="constant">GL_NOTEQUAL</code>,
            <code class="constant">GL_ALWAYS</code>, and <code class="constant">GL_NEVER</code>.
        </p><p>
            Suppose that a program has enabled texturing (by calling <a class="citerefentry" href="glEnable.xml"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a> with
            argument <code class="constant">GL_TEXTURE_1D</code>, <code class="constant">GL_TEXTURE_2D</code>, or <code class="constant">GL_TEXTURE_3D</code>) and
            has set <code class="constant">GL_TEXTURE_MIN_FILTER</code> to one of the functions that requires a
            mipmap.  If either the dimensions of the texture images currently defined
            (with previous calls to <a class="citerefentry" href="glTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage1D</span></span></a>, <a class="citerefentry" href="glTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>,
            <a class="citerefentry" href="glTexImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage3D</span></span></a>, <a class="citerefentry" href="glCopyTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage1D</span></span></a>, or <a class="citerefentry" href="glCopyTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage2D</span></span></a>) do not
            follow the proper sequence for mipmaps (described above), or there are
            fewer texture images defined than are needed, or the set of texture images
            have differing numbers of texture components, then it is as if texture
            mapping were disabled.
        </p><p>
            Linear filtering accesses the four nearest texture elements only in 2D
            textures.  In 1D textures, linear filtering accesses the two nearest
            texture elements.
        </p><p>
            For OpenGL versions 1.3 and greater, or when the <code class="code">ARB_multitexture</code> extension is supported, <code class="function">glTexParameter</code>
            specifies the texture parameters for the active texture unit, specified
            by calling <a class="citerefentry" href="glActiveTexture.xml"><span class="citerefentry"><span class="refentrytitle">glActiveTexture</span></span></a>.
        </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>target</code></em> or <em class="parameter"><code>pname</code></em> is not
            one of the accepted defined values.
        </p><p>
            <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>params</code></em> should have a defined
            constant value (based on the value of <em class="parameter"><code>pname</code></em>) and does not.
        </p><p>
            <code class="constant">GL_INVALID_OPERATION</code> is generated if <code class="function">glTexParameter</code> is executed between the
            execution of <a class="citerefentry" href="glBegin.xml"><span class="citerefentry"><span class="refentrytitle">glBegin</span></span></a> and the corresponding execution of <a class="citerefentry" href="glEnd.xml"><span class="citerefentry"><span class="refentrytitle">glEnd</span></span></a>.
        </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p>
            <a class="citerefentry" href="glGetTexParameter.xml"><span class="citerefentry"><span class="refentrytitle">glGetTexParameter</span></span></a>
        </p><p>
            <a class="citerefentry" href="glGetTexLevelParameter.xml"><span class="citerefentry"><span class="refentrytitle">glGetTexLevelParameter</span></span></a>
        </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="glBindTexture.xml"><span class="citerefentry"><span class="refentrytitle">glBindTexture</span></span></a>,
            <a class="citerefentry" href="glCopyPixels.xml"><span class="citerefentry"><span class="refentrytitle">glCopyPixels</span></span></a>,
            <a class="citerefentry" href="glCopyTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage1D</span></span></a>,
            <a class="citerefentry" href="glCopyTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage2D</span></span></a>,
            <a class="citerefentry" href="glCopyTexSubImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexSubImage1D</span></span></a>,
            <a class="citerefentry" href="glCopyTexSubImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexSubImage2D</span></span></a>,
            <a class="citerefentry" href="glCopyTexSubImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexSubImage3D</span></span></a>,
            <a class="citerefentry" href="glDrawPixels.xml"><span class="citerefentry"><span class="refentrytitle">glDrawPixels</span></span></a>,
            <a class="citerefentry" href="glPixelStore.xml"><span class="citerefentry"><span class="refentrytitle">glPixelStore</span></span></a>,
            <a class="citerefentry" href="glPixelTransfer.xml"><span class="citerefentry"><span class="refentrytitle">glPixelTransfer</span></span></a>,
            <a class="citerefentry" href="glPrioritizeTextures.xml"><span class="citerefentry"><span class="refentrytitle">glPrioritizeTextures</span></span></a>,
            <a class="citerefentry" href="glTexEnv.xml"><span class="citerefentry"><span class="refentrytitle">glTexEnv</span></span></a>,
            <a class="citerefentry" href="glTexGen.xml"><span class="citerefentry"><span class="refentrytitle">glTexGen</span></span></a>,
            <a class="citerefentry" href="glTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage1D</span></span></a>,
            <a class="citerefentry" href="glTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>,
            <a class="citerefentry" href="glTexImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage3D</span></span></a>,
            <a class="citerefentry" href="glTexSubImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glTexSubImage1D</span></span></a>,
            <a class="citerefentry" href="glTexSubImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glTexSubImage2D</span></span></a>,
            <a class="citerefentry" href="glTexSubImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glTexSubImage3D</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>© 1991-2006
            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>
