Commit | Line | Data |
---|---|---|
7faf1d71 AW |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "xhtml1-transitional.dtd"> |
2 | <!-- saved from url=(0013)about:internet --> | |
3 | <?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>glTexSubImage3D</title><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /></head><body><div class="refentry" lang="en" xml:lang="en"><a id="glTexSubImage3D"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>glTexSubImage3D — specify a three-dimensional texture subimage</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">glTexSubImage3D</b>(</code></td><td>GLenum </td><td><var class="pdparam">target</var>, </td></tr><tr><td> </td><td>GLint </td><td><var class="pdparam">level</var>, </td></tr><tr><td> </td><td>GLint </td><td><var class="pdparam">xoffset</var>, </td></tr><tr><td> </td><td>GLint </td><td><var class="pdparam">yoffset</var>, </td></tr><tr><td> </td><td>GLint </td><td><var class="pdparam">zoffset</var>, </td></tr><tr><td> </td><td>GLsizei </td><td><var class="pdparam">width</var>, </td></tr><tr><td> </td><td>GLsizei </td><td><var class="pdparam">height</var>, </td></tr><tr><td> </td><td>GLsizei </td><td><var class="pdparam">depth</var>, </td></tr><tr><td> </td><td>GLenum </td><td><var class="pdparam">format</var>, </td></tr><tr><td> </td><td>GLenum </td><td><var class="pdparam">type</var>, </td></tr><tr><td> </td><td>const GLvoid * </td><td><var class="pdparam">data</var><code>)</code>;</td></tr></table></div></div><p> | |
4 | </p><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> | |
5 | Specifies the target texture. | |
6 | Must be <code class="constant">GL_TEXTURE_3D</code>. | |
7 | </p></dd><dt><span class="term"><em class="parameter"><code>level</code></em></span></dt><dd><p> | |
8 | Specifies the level-of-detail number. | |
9 | Level 0 is the base image level. | |
10 | Level <span class="emphasis"><em>n</em></span> is the <span class="emphasis"><em>n</em></span>th mipmap reduction image. | |
11 | </p></dd><dt><span class="term"><em class="parameter"><code>xoffset</code></em></span></dt><dd><p> | |
12 | Specifies a texel offset in the x direction within the texture array. | |
13 | </p></dd><dt><span class="term"><em class="parameter"><code>yoffset</code></em></span></dt><dd><p> | |
14 | Specifies a texel offset in the y direction within the texture array. | |
15 | </p></dd><dt><span class="term"><em class="parameter"><code>zoffset</code></em></span></dt><dd><p> | |
16 | Specifies a texel offset in the z direction within the texture array. | |
17 | </p></dd><dt><span class="term"><em class="parameter"><code>width</code></em></span></dt><dd><p> | |
18 | Specifies the width of the texture subimage. | |
19 | </p></dd><dt><span class="term"><em class="parameter"><code>height</code></em></span></dt><dd><p> | |
20 | Specifies the height of the texture subimage. | |
21 | </p></dd><dt><span class="term"><em class="parameter"><code>depth</code></em></span></dt><dd><p> | |
22 | Specifies the depth of the texture subimage. | |
23 | </p></dd><dt><span class="term"><em class="parameter"><code>format</code></em></span></dt><dd><p> | |
24 | Specifies the format of the pixel data. | |
25 | The following symbolic values are accepted: | |
26 | <code class="constant">GL_COLOR_INDEX</code>, | |
27 | <code class="constant">GL_RED</code>, | |
28 | <code class="constant">GL_GREEN</code>, | |
29 | <code class="constant">GL_BLUE</code>, | |
30 | <code class="constant">GL_ALPHA</code>, | |
31 | <code class="constant">GL_RGB</code>, | |
32 | <code class="constant">GL_BGR</code>, | |
33 | <code class="constant">GL_RGBA</code>, | |
34 | <code class="constant">GL_BGRA</code>, | |
35 | <code class="constant">GL_LUMINANCE</code>, and | |
36 | <code class="constant">GL_LUMINANCE_ALPHA</code>. | |
37 | </p></dd><dt><span class="term"><em class="parameter"><code>type</code></em></span></dt><dd><p> | |
38 | Specifies the data type of the pixel data. | |
39 | The following symbolic values are accepted: | |
40 | <code class="constant">GL_UNSIGNED_BYTE</code>, | |
41 | <code class="constant">GL_BYTE</code>, | |
42 | <code class="constant">GL_BITMAP</code>, | |
43 | <code class="constant">GL_UNSIGNED_SHORT</code>, | |
44 | <code class="constant">GL_SHORT</code>, | |
45 | <code class="constant">GL_UNSIGNED_INT</code>, | |
46 | <code class="constant">GL_INT</code>, | |
47 | <code class="constant">GL_FLOAT</code>, | |
48 | <code class="constant">GL_UNSIGNED_BYTE_3_3_2</code>, | |
49 | <code class="constant">GL_UNSIGNED_BYTE_2_3_3_REV</code>, | |
50 | <code class="constant">GL_UNSIGNED_SHORT_5_6_5</code>, | |
51 | <code class="constant">GL_UNSIGNED_SHORT_5_6_5_REV</code>, | |
52 | <code class="constant">GL_UNSIGNED_SHORT_4_4_4_4</code>, | |
53 | <code class="constant">GL_UNSIGNED_SHORT_4_4_4_4_REV</code>, | |
54 | <code class="constant">GL_UNSIGNED_SHORT_5_5_5_1</code>, | |
55 | <code class="constant">GL_UNSIGNED_SHORT_1_5_5_5_REV</code>, | |
56 | <code class="constant">GL_UNSIGNED_INT_8_8_8_8</code>, | |
57 | <code class="constant">GL_UNSIGNED_INT_8_8_8_8_REV</code>, | |
58 | <code class="constant">GL_UNSIGNED_INT_10_10_10_2</code>, and | |
59 | <code class="constant">GL_UNSIGNED_INT_2_10_10_10_REV</code>. | |
60 | </p></dd><dt><span class="term"><em class="parameter"><code>data</code></em></span></dt><dd><p> | |
61 | Specifies a pointer to the image data in memory. | |
62 | </p></dd></dl></div></div><div class="refsect1" lang="en" xml:lang="en"><a id="description"></a><h2>Description</h2><p> | |
63 | Texturing maps a portion of a specified texture image | |
64 | onto each graphical primitive for which texturing is enabled. | |
65 | To enable and disable three-dimensional texturing, call <a class="citerefentry" href="glEnable.xml"><span class="citerefentry"><span class="refentrytitle">glEnable</span></span></a> | |
66 | and <a class="citerefentry" href="glDisable.xml"><span class="citerefentry"><span class="refentrytitle">glDisable</span></span></a> with argument <code class="constant">GL_TEXTURE_3D</code>. | |
67 | </p><p> | |
68 | <code class="function">glTexSubImage3D</code> redefines a contiguous subregion of an existing three-dimensional | |
69 | texture image. | |
70 | The texels referenced by <em class="parameter"><code>data</code></em> replace the portion of the | |
71 | existing texture array with x indices <em class="parameter"><code>xoffset</code></em> and | |
72 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
73 | ||
74 | <mml:mrow> | |
75 | <mml:mi mathvariant="italic">xoffset</mml:mi> | |
76 | <mml:mo>+</mml:mo> | |
77 | <mml:mi mathvariant="italic">width</mml:mi> | |
78 | <mml:mo>-</mml:mo> | |
79 | <mml:mn>1</mml:mn> | |
80 | </mml:mrow> | |
81 | </mml:math>, | |
82 | inclusive, | |
83 | y indices <em class="parameter"><code>yoffset</code></em> and | |
84 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
85 | ||
86 | <mml:mrow> | |
87 | <mml:mi mathvariant="italic">yoffset</mml:mi> | |
88 | <mml:mo>+</mml:mo> | |
89 | <mml:mi mathvariant="italic">height</mml:mi> | |
90 | <mml:mo>-</mml:mo> | |
91 | <mml:mn>1</mml:mn> | |
92 | </mml:mrow> | |
93 | </mml:math>, | |
94 | inclusive, | |
95 | and z indices <em class="parameter"><code>zoffset</code></em> and | |
96 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
97 | ||
98 | <mml:mrow> | |
99 | <mml:mi mathvariant="italic">zoffset</mml:mi> | |
100 | <mml:mo>+</mml:mo> | |
101 | <mml:mi mathvariant="italic">depth</mml:mi> | |
102 | <mml:mo>-</mml:mo> | |
103 | <mml:mn>1</mml:mn> | |
104 | </mml:mrow> | |
105 | </mml:math>, | |
106 | inclusive. | |
107 | This region may not include any texels outside the range of the | |
108 | texture array as it was originally specified. | |
109 | It is not an error to specify a subtexture with zero width, height, or | |
110 | depth but such a specification has no effect. | |
111 | </p><p> | |
112 | If a non-zero named buffer object is bound to the <code class="constant">GL_PIXEL_UNPACK_BUFFER</code> target | |
113 | (see <a class="citerefentry" href="glBindBuffer.xml"><span class="citerefentry"><span class="refentrytitle">glBindBuffer</span></span></a>) while a texture image is | |
114 | specified, <em class="parameter"><code>data</code></em> is treated as a byte offset into the buffer object's data store. | |
115 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="notes"></a><h2>Notes</h2><p> | |
116 | <code class="function">glTexSubImage3D</code> is available only if the GL version is 1.2 or greater. | |
117 | </p><p> | |
118 | Texturing has no effect in color index mode. | |
119 | </p><p> | |
120 | <a class="citerefentry" href="glPixelStore.xml"><span class="citerefentry"><span class="refentrytitle">glPixelStore</span></span></a> and <a class="citerefentry" href="glPixelTransfer.xml"><span class="citerefentry"><span class="refentrytitle">glPixelTransfer</span></span></a> modes affect texture images | |
121 | in exactly the way they affect <a class="citerefentry" href="glDrawPixels.xml"><span class="citerefentry"><span class="refentrytitle">glDrawPixels</span></span></a>. | |
122 | </p><p> | |
123 | Formats <code class="constant">GL_BGR</code>, and <code class="constant">GL_BGRA</code> and types | |
124 | <code class="constant">GL_UNSIGNED_BYTE_3_3_2</code>, | |
125 | <code class="constant">GL_UNSIGNED_BYTE_2_3_3_REV</code>, | |
126 | <code class="constant">GL_UNSIGNED_SHORT_5_6_5</code>, | |
127 | <code class="constant">GL_UNSIGNED_SHORT_5_6_5_REV</code>, | |
128 | <code class="constant">GL_UNSIGNED_SHORT_4_4_4_4</code>, | |
129 | <code class="constant">GL_UNSIGNED_SHORT_4_4_4_4_REV</code>, | |
130 | <code class="constant">GL_UNSIGNED_SHORT_5_5_5_1</code>, | |
131 | <code class="constant">GL_UNSIGNED_SHORT_1_5_5_5_REV</code>, | |
132 | <code class="constant">GL_UNSIGNED_INT_8_8_8_8</code>, | |
133 | <code class="constant">GL_UNSIGNED_INT_8_8_8_8_REV</code>, | |
134 | <code class="constant">GL_UNSIGNED_INT_10_10_10_2</code>, and | |
135 | <code class="constant">GL_UNSIGNED_INT_2_10_10_10_REV</code> are available only if the GL version | |
136 | is 1.2 or greater. | |
137 | </p><p> | |
138 | For OpenGL versions 1.3 and greater, or when the <code class="code">ARB_multitexture</code> extension is supported, <code class="function">glTexSubImage3D</code> | |
139 | specifies a three-dimensional subtexture for the current texture unit, | |
140 | specified with <a class="citerefentry" href="glActiveTexture.xml"><span class="citerefentry"><span class="refentrytitle">glActiveTexture</span></span></a>. | |
141 | </p><p> | |
142 | When the <code class="code">ARB_imaging</code> extension is supported, the RGBA components | |
143 | specified in <em class="parameter"><code>data</code></em> may be processed by the imaging pipeline. See | |
144 | <a class="citerefentry" href="glTexImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage3D</span></span></a> for specific details. | |
145 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="errors"></a><h2>Errors</h2><p> | |
146 | <code class="constant">GL_INVALID_ENUM</code> is generated if /<em class="parameter"><code>target</code></em> is not <code class="constant">GL_TEXTURE_3D</code>. | |
147 | </p><p> | |
148 | <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>format</code></em> is not an accepted | |
149 | format constant. | |
150 | </p><p> | |
151 | <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>type</code></em> is not a type constant. | |
152 | </p><p> | |
153 | <code class="constant">GL_INVALID_ENUM</code> is generated if <em class="parameter"><code>type</code></em> is <code class="constant">GL_BITMAP</code> and | |
154 | <em class="parameter"><code>format</code></em> is not <code class="constant">GL_COLOR_INDEX</code>. | |
155 | </p><p> | |
156 | <code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>level</code></em> is less than 0. | |
157 | </p><p> | |
158 | <code class="constant">GL_INVALID_VALUE</code> may be generated if <em class="parameter"><code>level</code></em> is greater | |
159 | than | |
160 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
161 | ||
162 | <mml:msub><mml:mi mathvariant="italic">log</mml:mi> | |
163 | <mml:mn>2</mml:mn> | |
164 | </mml:msub> | |
165 | </mml:math> | |
166 | <span class="emphasis"><em>max</em></span>, | |
167 | where <span class="emphasis"><em>max</em></span> is the returned value of <code class="constant">GL_MAX_TEXTURE_SIZE</code>. | |
168 | </p><p> | |
169 | <code class="constant">GL_INVALID_VALUE</code> is generated if | |
170 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
171 | ||
172 | <mml:mrow> | |
173 | <mml:mi mathvariant="italic">xoffset</mml:mi> | |
174 | <mml:mo><</mml:mo> | |
175 | <mml:mrow> | |
176 | <mml:mo>-</mml:mo> | |
177 | <mml:mi mathvariant="italic">b</mml:mi> | |
178 | </mml:mrow> | |
179 | </mml:mrow> | |
180 | </mml:math>, | |
181 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
182 | ||
183 | <mml:mrow> | |
184 | <mml:mfenced open="(" close=")"> | |
185 | <mml:mrow> | |
186 | <mml:mi mathvariant="italic">xoffset</mml:mi> | |
187 | <mml:mo>+</mml:mo> | |
188 | <mml:mi mathvariant="italic">width</mml:mi> | |
189 | </mml:mrow> | |
190 | </mml:mfenced> | |
191 | <mml:mo>></mml:mo> | |
192 | <mml:mfenced open="(" close=")"> | |
193 | <mml:mrow> | |
194 | <mml:mi mathvariant="italic">w</mml:mi> | |
195 | <mml:mo>-</mml:mo> | |
196 | <mml:mi mathvariant="italic">b</mml:mi> | |
197 | </mml:mrow> | |
198 | </mml:mfenced> | |
199 | </mml:mrow> | |
200 | </mml:math>, | |
201 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
202 | ||
203 | <mml:mrow> | |
204 | <mml:mi mathvariant="italic">yoffset</mml:mi> | |
205 | <mml:mo><</mml:mo> | |
206 | <mml:mrow> | |
207 | <mml:mo>-</mml:mo> | |
208 | <mml:mi mathvariant="italic">b</mml:mi> | |
209 | </mml:mrow> | |
210 | </mml:mrow> | |
211 | </mml:math>, | |
212 | or | |
213 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
214 | ||
215 | <mml:mrow> | |
216 | <mml:mfenced open="(" close=")"> | |
217 | <mml:mrow> | |
218 | <mml:mi mathvariant="italic">yoffset</mml:mi> | |
219 | <mml:mo>+</mml:mo> | |
220 | <mml:mi mathvariant="italic">height</mml:mi> | |
221 | </mml:mrow> | |
222 | </mml:mfenced> | |
223 | <mml:mo>></mml:mo> | |
224 | <mml:mfenced open="(" close=")"> | |
225 | <mml:mrow> | |
226 | <mml:mi mathvariant="italic">h</mml:mi> | |
227 | <mml:mo>-</mml:mo> | |
228 | <mml:mi mathvariant="italic">b</mml:mi> | |
229 | </mml:mrow> | |
230 | </mml:mfenced> | |
231 | </mml:mrow> | |
232 | </mml:math>, | |
233 | or | |
234 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
235 | ||
236 | <mml:mrow> | |
237 | <mml:mi mathvariant="italic">zoffset</mml:mi> | |
238 | <mml:mo><</mml:mo> | |
239 | <mml:mrow> | |
240 | <mml:mo>-</mml:mo> | |
241 | <mml:mi mathvariant="italic">b</mml:mi> | |
242 | </mml:mrow> | |
243 | </mml:mrow> | |
244 | </mml:math>, | |
245 | or | |
246 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"> | |
247 | ||
248 | <mml:mrow> | |
249 | <mml:mfenced open="(" close=")"> | |
250 | <mml:mrow> | |
251 | <mml:mi mathvariant="italic">zoffset</mml:mi> | |
252 | <mml:mo>+</mml:mo> | |
253 | <mml:mi mathvariant="italic">depth</mml:mi> | |
254 | </mml:mrow> | |
255 | </mml:mfenced> | |
256 | <mml:mo>></mml:mo> | |
257 | <mml:mfenced open="(" close=")"> | |
258 | <mml:mrow> | |
259 | <mml:mi mathvariant="italic">d</mml:mi> | |
260 | <mml:mo>-</mml:mo> | |
261 | <mml:mi mathvariant="italic">b</mml:mi> | |
262 | </mml:mrow> | |
263 | </mml:mfenced> | |
264 | </mml:mrow> | |
265 | </mml:math>, | |
266 | where | |
267 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">w</mml:mi></mml:math> | |
268 | is the <code class="constant">GL_TEXTURE_WIDTH</code>, | |
269 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">h</mml:mi></mml:math> | |
270 | is the <code class="constant">GL_TEXTURE_HEIGHT</code>, | |
271 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">d</mml:mi></mml:math> | |
272 | is the <code class="constant">GL_TEXTURE_DEPTH</code> | |
273 | and | |
274 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">b</mml:mi></mml:math> | |
275 | is the border width of the texture image being modified. | |
276 | Note that | |
277 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">w</mml:mi></mml:math>, | |
278 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">h</mml:mi></mml:math>, | |
279 | and | |
280 | <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" overflow="scroll"><mml:mi mathvariant="italic">d</mml:mi></mml:math> | |
281 | include twice the border width. | |
282 | </p><p> | |
283 | <code class="constant">GL_INVALID_VALUE</code> is generated if <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>, or <em class="parameter"><code>depth</code></em> | |
284 | is less than 0. | |
285 | </p><p> | |
286 | <code class="constant">GL_INVALID_OPERATION</code> is generated if the texture array has not | |
287 | been defined by a previous <a class="citerefentry" href="glTexImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage3D</span></span></a> operation. | |
288 | </p><p> | |
289 | <code class="constant">GL_INVALID_OPERATION</code> is generated if <em class="parameter"><code>type</code></em> is one of | |
290 | <code class="constant">GL_UNSIGNED_BYTE_3_3_2</code>, | |
291 | <code class="constant">GL_UNSIGNED_BYTE_2_3_3_REV</code>, | |
292 | <code class="constant">GL_UNSIGNED_SHORT_5_6_5</code>, or | |
293 | <code class="constant">GL_UNSIGNED_SHORT_5_6_5_REV</code> | |
294 | and <em class="parameter"><code>format</code></em> is not <code class="constant">GL_RGB</code>. | |
295 | </p><p> | |
296 | <code class="constant">GL_INVALID_OPERATION</code> is generated if <em class="parameter"><code>type</code></em> is one of | |
297 | <code class="constant">GL_UNSIGNED_SHORT_4_4_4_4</code>, | |
298 | <code class="constant">GL_UNSIGNED_SHORT_4_4_4_4_REV</code>, | |
299 | <code class="constant">GL_UNSIGNED_SHORT_5_5_5_1</code>, | |
300 | <code class="constant">GL_UNSIGNED_SHORT_1_5_5_5_REV</code>, | |
301 | <code class="constant">GL_UNSIGNED_INT_8_8_8_8</code>, | |
302 | <code class="constant">GL_UNSIGNED_INT_8_8_8_8_REV</code>, | |
303 | <code class="constant">GL_UNSIGNED_INT_10_10_10_2</code>, or | |
304 | <code class="constant">GL_UNSIGNED_INT_2_10_10_10_REV</code> | |
305 | and <em class="parameter"><code>format</code></em> is neither <code class="constant">GL_RGBA</code> nor <code class="constant">GL_BGRA</code>. | |
306 | </p><p> | |
307 | <code class="constant">GL_INVALID_OPERATION</code> is generated if a non-zero buffer object name is bound to the | |
308 | <code class="constant">GL_PIXEL_UNPACK_BUFFER</code> target and the buffer object's data store is currently mapped. | |
309 | </p><p> | |
310 | <code class="constant">GL_INVALID_OPERATION</code> is generated if a non-zero buffer object name is bound to the | |
311 | <code class="constant">GL_PIXEL_UNPACK_BUFFER</code> target and the data would be unpacked from the buffer | |
312 | object such that the memory reads required would exceed the data store size. | |
313 | </p><p> | |
314 | <code class="constant">GL_INVALID_OPERATION</code> is generated if a non-zero buffer object name is bound to the | |
315 | <code class="constant">GL_PIXEL_UNPACK_BUFFER</code> target and <em class="parameter"><code>data</code></em> is not evenly divisible | |
316 | into the number of bytes needed to store in memory a datum indicated by <em class="parameter"><code>type</code></em>. | |
317 | </p><p> | |
318 | <code class="constant">GL_INVALID_OPERATION</code> is generated if <code class="function">glTexSubImage3D</code> is executed | |
319 | between the execution of <a class="citerefentry" href="glBegin.xml"><span class="citerefentry"><span class="refentrytitle">glBegin</span></span></a> and the corresponding | |
320 | execution of <a class="citerefentry" href="glEnd.xml"><span class="citerefentry"><span class="refentrytitle">glEnd</span></span></a>. | |
321 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="associatedgets"></a><h2>Associated Gets</h2><p> | |
322 | <a class="citerefentry" href="glGetTexImage.xml"><span class="citerefentry"><span class="refentrytitle">glGetTexImage</span></span></a> | |
323 | </p><p> | |
324 | <a class="citerefentry" href="glIsEnabled.xml"><span class="citerefentry"><span class="refentrytitle">glIsEnabled</span></span></a> with argument <code class="constant">GL_TEXTURE_3D</code> | |
325 | </p><p> | |
326 | <a class="citerefentry" href="glGet.xml"><span class="citerefentry"><span class="refentrytitle">glGet</span></span></a> with argument <code class="constant">GL_PIXEL_UNPACK_BUFFER_BINDING</code> | |
327 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="seealso"></a><h2>See Also</h2><p> | |
328 | <a class="citerefentry" href="glActiveTexture.xml"><span class="citerefentry"><span class="refentrytitle">glActiveTexture</span></span></a>, | |
329 | <a class="citerefentry" href="glCopyTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage1D</span></span></a>, | |
330 | <a class="citerefentry" href="glCopyTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexImage2D</span></span></a>, | |
331 | <a class="citerefentry" href="glCopyTexSubImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexSubImage1D</span></span></a>, | |
332 | <a class="citerefentry" href="glCopyTexSubImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexSubImage2D</span></span></a>, | |
333 | <a class="citerefentry" href="glCopyTexSubImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glCopyTexSubImage3D</span></span></a>, | |
334 | <a class="citerefentry" href="glDrawPixels.xml"><span class="citerefentry"><span class="refentrytitle">glDrawPixels</span></span></a>, | |
335 | <a class="citerefentry" href="glPixelStore.xml"><span class="citerefentry"><span class="refentrytitle">glPixelStore</span></span></a>, | |
336 | <a class="citerefentry" href="glPixelTransfer.xml"><span class="citerefentry"><span class="refentrytitle">glPixelTransfer</span></span></a>, | |
337 | <a class="citerefentry" href="glTexEnv.xml"><span class="citerefentry"><span class="refentrytitle">glTexEnv</span></span></a>, | |
338 | <a class="citerefentry" href="glTexGen.xml"><span class="citerefentry"><span class="refentrytitle">glTexGen</span></span></a>, | |
339 | <a class="citerefentry" href="glTexImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage1D</span></span></a>, | |
340 | <a class="citerefentry" href="glTexImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage2D</span></span></a>, | |
341 | <a class="citerefentry" href="glTexImage3D.xml"><span class="citerefentry"><span class="refentrytitle">glTexImage3D</span></span></a>, | |
342 | <a class="citerefentry" href="glTexSubImage1D.xml"><span class="citerefentry"><span class="refentrytitle">glTexSubImage1D</span></span></a>, | |
343 | <a class="citerefentry" href="glTexSubImage2D.xml"><span class="citerefentry"><span class="refentrytitle">glTexSubImage2D</span></span></a>, | |
344 | <a class="citerefentry" href="glTexParameter.xml"><span class="citerefentry"><span class="refentrytitle">glTexParameter</span></span></a> | |
345 | </p></div><div class="refsect1" lang="en" xml:lang="en"><a id="Copyright"></a><h2>Copyright</h2><p> | |
346 | Copyright <span class="trademark"></span>© 1991-2006 | |
347 | Silicon Graphics, Inc. This document is licensed under the SGI | |
348 | Free Software B License. For details, see | |
349 | <a class="ulink" href="http://oss.sgi.com/projects/FreeB/" target="_top">http://oss.sgi.com/projects/FreeB/</a>. | |
350 | </p></div></div></body></html> |