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

NAME

6       glCopyTexSubImage1D, glCopyTextureSubImage1D - copy a one-dimensional
7       texture subimage
8

C SPECIFICATION

10       void glCopyTexSubImage1D(GLenum target, GLint level, GLint xoffset,
11                                GLint x, GLint y, GLsizei width);
12
13       void glCopyTextureSubImage1D(GLuint texture, GLint level,
14                                    GLint xoffset, GLint x, GLint y,
15                                    GLsizei width);
16

PARAMETERS

18       target
19           Specifies the target to which the texture object is bound for
20           glCopyTexSubImage1D function. Must be GL_TEXTURE_1D.
21
22       texture
23           Specifies the texture object name for glCopyTextureSubImage1D
24           function.
25
26       level
27           Specifies the level-of-detail number. Level 0 is the base image
28           level. Level n is the nth mipmap reduction image.
29
30       xoffset
31           Specifies the texel offset within the texture array.
32
33       x, y
34           Specify the window coordinates of the left corner of the row of
35           pixels to be copied.
36
37       width
38           Specifies the width of the texture subimage.
39

DESCRIPTION

41       glCopyTexSubImage1D and glCopyTextureSubImage1D replace a portion of a
42       one-dimensional texture image with pixels from the current
43       GL_READ_BUFFER (rather than from main memory, as is the case for
44       glTexSubImage1D()). For glCopyTexSubImage1D, the texture object that is
45       bound to target will be used for the process. For
46       glCopyTextureSubImage1D, texture tells which texture object should be
47       used for the purpose of the call.
48
49       The screen-aligned pixel row with left corner at (x,\ y), and with
50       length width replaces the portion of the texture array with x indices
51       xoffset through xoffset + width - 1, inclusive. The destination in the
52       texture array may not include any texels outside the texture array as
53       it was originally specified.
54
55       The pixels in the row are processed exactly as if glReadPixels() had
56       been called, but the process stops just before final conversion. At
57       this point, all pixel component values are clamped to the range 0 1 and
58       then converted to the texture's internal format for storage in the
59       texel array.
60
61       It is not an error to specify a subtexture with zero width, but such a
62       specification has no effect. If any of the pixels within the specified
63       row of the current GL_READ_BUFFER are outside the read window
64       associated with the current rendering context, then the values obtained
65       for those pixels are undefined.
66
67       No change is made to the internalformat or width parameters of the
68       specified texture array or to texel values outside the specified
69       subregion.
70

NOTES

72       The glPixelStore() mode affects texture images.
73

ERRORS

75       GL_INVALID_ENUM is generated by glCopyTexSubImage1D if target is not
76       GL_TEXTURE_1D.
77
78       GL_INVALID_FRAMEBUFFER_OPERATION is generated if the object bound to
79       GL_READ_FRAMEBUFFER_BINDING is not framebuffer complete.
80
81       GL_INVALID_OPERATION is generated by glCopyTextureSubImage1D if texture
82       is not the name of an existing texture object, or if the effective
83       target of texture is not GL_TEXTURE_1D.
84
85       GL_INVALID_OPERATION is generated if the texture array has not been
86       defined by a previous glTexImage1D(), glCopyTexImage1D(), or
87       glTexStorage1D() operation.
88
89       GL_INVALID_VALUE is generated if level is less than 0.
90
91       GL_INVALID_VALUE may be generated if level > log 2 ⁡ max, where max is
92       the returned value of GL_MAX_TEXTURE_SIZE.
93
94       GL_INVALID_VALUE is generated if xoffset < 0, or xoffset + width > w,
95       where w is the GL_TEXTURE_WIDTH of the texture image being modified.
96
97       GL_INVALID_OPERATION is generated if:
98
99       ·   the read buffer is GL_NONE, or
100
101       ·   the value of GL_READ_FRAMEBUFFER_BINDING is non-zero, and:
102
103           ·   the read buffer selects an attachment that has no image
104               attached, or
105
106           ·   the effective value of GL_SAMPLE_BUFFERS for the read
107               framebuffer is one.
108

ASSOCIATED GETS

110       glGetTexImage()
111

VERSION SUPPORT

113       ┌────────────────────────┬───────────────────────────────────────────────────────────────────────┐
114       │                        │                OpenGL Version                                         
115       ├────────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
116Function                2.0 2.1 3.0 3.1 3.2 3.3 4.0 4.1 4.2 4.3 4.4 4.5 
117/                       │     │     │     │     │     │     │     │     │     │     │     │     │
118Feature                 │     │     │     │     │     │     │     │     │     │     │     │     │
119Name                    │     │     │     │     │     │     │     │     │     │     │     │     │
120       ├────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
121glCopyTexSubImage1D     │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
122       ├────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
123glCopyTextureSubImage1D │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │
124       └────────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘
125

SEE ALSO

127       glCopyTexImage1D(), glCopyTexImage2D(), glCopyTexSubImage2D(),
128       glCopyTexSubImage3D(), glPixelStore(), glReadBuffer(), glTexImage1D(),
129       glTexImage2D(), glTexImage3D(), glTexParameter(), glTexSubImage1D(),
130       glTexSubImage2D(), glTexSubImage3D()
131
133       Copyright © 1991-2006 Silicon Graphics, Inc. Copyright © 2012-2014
134       Khronos Group. This document is licensed under the SGI Free Software B
135       License. For details, see http://oss.sgi.com/projects/FreeB/.
136
138       Copyright © 2014 Khronos Group
139
140
141
142[FIXME: source]                   03/06/2019           GLCOPYTEXSUBIMAGE1D(3G)
Impressum