1GLCOPYTEXSUBIMAGE3D(3G)         [FIXME: manual]        GLCOPYTEXSUBIMAGE3D(3G)
2
3
4

NAME

6       glCopyTexSubImage3D, glCopyTextureSubImage3D - copy a three-dimensional
7       texture subimage
8

C SPECIFICATION

10       void glCopyTexSubImage3D(GLenum target, GLint level, GLint xoffset,
11                                GLint yoffset, GLint zoffset, GLint x,
12                                GLint y, GLsizei width, GLsizei height);
13
14       void glCopyTextureSubImage3D(GLuint texture, GLint level,
15                                    GLint xoffset, GLint yoffset,
16                                    GLint zoffset, GLint x, GLint y,
17                                    GLsizei width, GLsizei height);
18

PARAMETERS

20       target
21           Specifies the target to which the texture object is bound for
22           glCopyTexSubImage3D function. Must be GL_TEXTURE_3D or
23           GL_TEXTURE_2D_ARRAY.
24
25       texture
26           Specifies the texture object name for glCopyTextureSubImage3D
27           function.
28
29       level
30           Specifies the level-of-detail number. Level 0 is the base image
31           level. Level n is the nth mipmap reduction image.
32
33       xoffset
34           Specifies a texel offset in the x direction within the texture
35           array.
36
37       yoffset
38           Specifies a texel offset in the y direction within the texture
39           array.
40
41       zoffset
42           Specifies a texel offset in the z direction within the texture
43           array.
44
45       x, y
46           Specify the window coordinates of the lower left corner of the
47           rectangular region of pixels to be copied.
48
49       width
50           Specifies the width of the texture subimage.
51
52       height
53           Specifies the height of the texture subimage.
54

DESCRIPTION

56       glCopyTexSubImage3D and glCopyTextureSubImage3D functions replace a
57       rectangular portion of a three-dimensional or two-dimensional array
58       texture image with pixels from the current GL_READ_BUFFER (rather than
59       from main memory, as is the case for glTexSubImage3D()).
60
61       The screen-aligned pixel rectangle with lower left corner at (x, y) and
62       with width width and height height replaces the portion of the texture
63       array with x indices xoffset through xoffset + width - 1, inclusive,
64       and y indices yoffset through yoffset + height - 1, inclusive, at z
65       index zoffset and at the mipmap level specified by level.
66
67       The pixels in the rectangle are processed exactly as if glReadPixels()
68       had been called, but the process stops just before final conversion. At
69       this point, all pixel component values are clamped to the range 0 1 and
70       then converted to the texture's internal format for storage in the
71       texel array.
72
73       The destination rectangle in the texture array may not include any
74       texels outside the texture array as it was originally specified. It is
75       not an error to specify a subtexture with zero width or height, but
76       such a specification has no effect.
77
78       If any of the pixels within the specified rectangle of the current
79       GL_READ_BUFFER are outside the read window associated with the current
80       rendering context, then the values obtained for those pixels are
81       undefined.
82
83       No change is made to the internalformat, width, height, depth, or
84       border parameters of the specified texture array or to texel values
85       outside the specified subregion.
86

NOTES

88       glPixelStore() modes affect texture images.
89

ERRORS

91       GL_INVALID_ENUM is generated by glCopyTexSubImage3D if target is not
92       GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY or GL_TEXTURE_CUBE_MAP_ARRAY.
93
94       GL_INVALID_OPERATION is generated by glCopyTextureSubImage3D if the
95       effective target is not GL_TEXTURE_3D, GL_TEXTURE_2D_ARRAY,
96       GL_TEXTURE_CUBE_MAP_ARRAY or GL_TEXTURE_CUBE_MAP.
97
98       GL_INVALID_FRAMEBUFFER_OPERATION is generated if the object bound to
99       GL_READ_FRAMEBUFFER_BINDING is not framebuffer complete.
100
101       GL_INVALID_OPERATION is generated if the texture array has not been
102       defined by a previous glTexImage3D() or glTexStorage3D() operation.
103
104       GL_INVALID_OPERATION is generated by glCopyTextureSubImage3D if texture
105       is not the name of an existing texture object.
106
107       GL_INVALID_VALUE is generated if level is less than 0.
108
109       GL_INVALID_VALUE may be generated if level > log 2 ⁡ max, where max is
110       the returned value of GL_MAX_3D_TEXTURE_SIZE if target is GL_TEXTURE_3D
111       or the returned value of GL_MAX_ARRAY_TEXTURE_LAYERS if target is
112       GL_TEXTURE_2D_ARRAY.
113
114       GL_INVALID_VALUE is generated if xoffset < 0, xoffset + width > w,
115       yoffset < 0, yoffset + height > h, zoffset < 0, or zoffset + 1 > d,
116       where w is the GL_TEXTURE_WIDTH, h is the GL_TEXTURE_HEIGHT, d is the
117       GL_TEXTURE_DEPTH and of the texture image being modified. Note that w,
118       h, and d include twice the border width.
119
120       GL_INVALID_OPERATION is generated if:
121
122       ·   the read buffer is GL_NONE, or
123
124       ·   the value of GL_READ_FRAMEBUFFER_BINDING is non-zero, and:
125
126           ·   the read buffer selects an attachment that has no image
127               attached, or
128
129           ·   the effective value of GL_SAMPLE_BUFFERS for the read
130               framebuffer is one.
131

ASSOCIATED GETS

133       glGetTexImage()
134

VERSION SUPPORT

136       ┌────────────────────────┬───────────────────────────────────────────────────────────────────────┐
137       │                        │                OpenGL Version                                         
138       ├────────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
139Function                2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
140/                       │     │     │     │     │     │     │     │     │     │     │     │     │
141Feature                 │     │     │     │     │     │     │     │     │     │     │     │     │
142Name                    │     │     │     │     │     │     │     │     │     │     │     │     │
143       ├────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
144glCopyTexSubImage3D     │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
145       ├────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
146glCopyTextureSubImage3D │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │
147       └────────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
148

SEE ALSO

150       glCopyTexImage1D(), glCopyTexImage2D(), glCopyTexSubImage1D(),
151       glCopyTexSubImage2D(), glPixelStore(), glReadBuffer(), glTexImage1D(),
152       glTexImage2D(), glTexImage3D(), glTexParameter(), glTexSubImage1D(),
153       glTexSubImage2D(), glTexSubImage3D()
154
156       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2012-2014
157       Khronos Group. This document is licensed under the SGI Free Software B
158       License. For details, see http://oss.sgi.com/projects/FreeB/.
159
161       Copyright © 2014 Khronos Group
162
163
164
165[FIXME: source]                   07/13/2018           GLCOPYTEXSUBIMAGE3D(3G)
Impressum