of the row of pixels to be copied.
</p></dd><dt><span class="term"><em class="parameter"><code>width</code></em></span></dt><dd><p>
Specifies the width of the texture image.
- Must be 0 or
- <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:mrow>
- <mml:mn>2</mml:mn>
- <mml:mo></mml:mo>
- <mml:mfenced open="(" close=")">
- <mml:mi mathvariant="italic">border</mml:mi>
- </mml:mfenced>
- </mml:mrow>
- </mml:mrow>
- </mml:math>
- for some integer
- <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">n</mml:mi></mml:math>.
The height of the texture image is 1.
</p></dd><dt><span class="term"><em class="parameter"><code>border</code></em></span></dt><dd><p>
- Specifies the width of the border.
- Must be either 0 or 1.
+ Must be 0.
</p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p>
<code class="function">glCopyTexImage1D</code> defines a one-dimensional texture image with pixels from the current
<code class="constant">GL_READ_BUFFER</code>.
</mml:math>
and with a length of
<mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll">
-
- <mml:mrow>
- <mml:mi mathvariant="italic">width</mml:mi>
- <mml:mo>+</mml:mo>
- <mml:mrow>
- <mml:mn>2</mml:mn>
- <mml:mo></mml:mo>
- <mml:mfenced open="(" close=")">
- <mml:mi mathvariant="italic">border</mml:mi>
- </mml:mfenced>
- </mml:mrow>
- </mml:mrow>
+ <mml:mi mathvariant="italic">width</mml:mi>
</mml:math>
defines the texture array
at the mipmap level specified by <em class="parameter"><code>level</code></em>.
<code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>width</code></em> is less than 0 or greater than
<code class="constant">GL_MAX_TEXTURE_SIZE</code>.
</p><p>
- <code class="constant">GL_INVALID_VALUE</code> is generated if non-power-of-two textures are not supported and the <em class="parameter"><code>width</code></em> cannot be represented as
- <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:mrow>
- <mml:mn>2</mml:mn>
- <mml:mo></mml:mo>
- <mml:mfenced open="(" close=")">
- <mml:mi mathvariant="italic">border</mml:mi>
- </mml:mfenced>
- </mml:mrow>
- </mml:mrow>
- </mml:math>
- for some integer value of <span class="emphasis"><em>n</em></span>.
- </p><p>
- <code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>border</code></em> is not 0 or 1.
+ <code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>border</code></em> is not 0.
</p><p>
<code class="constant">GL_INVALID_OPERATION</code> is generated if <em class="parameter"><code>internalformat</code></em> is
<code class="constant">GL_DEPTH_COMPONENT</code>, <code class="constant">GL_DEPTH_COMPONENT16</code>,
<a href="glTexParameter.xml"><span class="citerefentry"><span class="refentrytitle">glTexParameter</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
+ Silicon Graphics, Inc.
+ Copyright <span class="trademark"></span>© 2012-2013 Khronos Group.
+ This document is licensed under the SGI
Free Software B License. For details, see
<a href="http://oss.sgi.com/projects/FreeB/" target="_top">http://oss.sgi.com/projects/FreeB/</a>.
</p></div></div></body></html>