1GLCOPYTEXSUBIMAGE1D(3G)                                GLCOPYTEXSUBIMAGE1D(3G)
2
3
4

NAME

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

C SPECIFICATION

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

PARAMETERS

19       target   Specifies the target texture.  Must be GL_TEXTURE_1D.
20
21       level    Specifies  the  level-of-detail  number.   Level 0 is the base
22                image level.  Level n is the nth mipmap reduction image.
23
24       xoffset  Specifies the texel offset within the texture array.
25
26       x, y     Specify the window coordinates of the left corner of  the  row
27                of pixels to be copied.
28
29       width    Specifies the width of the texture subimage.
30

DESCRIPTION

32       glCopyTexSubImage1D  replaces  a  portion  of a one-dimensional texture
33       image with pixels from the current  GL_READ_BUFFER  (rather  than  from
34       main memory, as is the case for glTexSubImage1D).
35
36       The  screen-aligned  pixel  row  with  left  corner at (x, y), and with
37       length width replaces the portion of the texture array with  x  indices
38       xoffset through xoffset+width−1, inclusive. The destination in the tex‐
39       ture array may not include any texels outside the texture array  as  it
40       was originally specified.
41
42       The pixels in the row are processed exactly as if glCopyPixels had been
43       called, but the process stops just before final  conversion.   At  this
44       point  all  pixel  component values are clamped to the range [0, 1] and
45       then converted to the texture's internal   for  storage  in  the  texel
46       array.
47
48       It  is not an error to specify a subtexture with zero width, but such a
49       specification has no effect.  If any of the pixels within the specified
50       row  of  the current GL_READ_BUFFER are outside the read window associ‐
51       ated with the current rendering context, then the values  obtained  for
52       those pixels are undefined.
53
54       No change is made to the internalformat, width, or border parameters of
55       the specified texture array or to texel values  outside  the  specified
56       subregion.
57

NOTES

59       glCopyTexSubImage1D  is  available  only  if  the  GL version is 1.1 or
60       greater.
61
62       Texturing has no effect in color index mode.
63
64       glPixelStore and glPixelTransfer modes affect texture images in exactly
65       the way they affect glDrawPixels.
66
67       When  the  GL_ARB_imaging  extension  is supported, the RGBA components
68       copied from the framebuffer may be processed by the  imaging  pipeline.
69       See glTexImage1D for specific details.
70

ERRORS

72       GL_INVALID_ENUM is generated if target is not GL_TEXTURE_1D.
73
74       GL_INVALID_OPERATION  is  generated  if  the texture array has not been
75       defined by a previous glTexImage1D or glCopyTexImage1D operation.
76
77       GL_INVALID_VALUE is generated if level is less than 0.
78
79       GL_INVALID_VALUE may be generated if level>log2 max, where max  is  the
80       returned value of GL_MAX_TEXTURE_SIZE.
81
82       GL_INVALID_VALUE  is  generated  if y<−b or if width<−b, where b is the
83       border width of the texture array.
84
85       GL_INVALID_VALUE is generated if xoffset<−b, or  (xoffset+width)>(wb),
86       where  w is the GL_TEXTURE_WIDTH, and b is the GL_TEXTURE_BORDER of the
87       texture image being modified.  Note that w includes  twice  the  border
88       width.
89

ASSOCIATED GETS

91       glGetTexImage
92       glIsEnabled with argument GL_TEXTURE_1D
93

SEE ALSO

95       glCopyPixels(3G),      glCopyTexImage1D(3G),      glCopyTexImage2D(3G),
96       glCopyTexSubImage2D(3G),   glCopyTexSubImage3D(3G),   glPixelStore(3G),
97       glPixelTransfer(3G),   glReadBuffer(3G),   glTexEnv(3G),  glTexGen(3G),
98       glTexImage1D(3G),          glTexImage2D(3G),          glTexImage3D(3G),
99       glTexParameter(3G),      glTexSubImage1D(3G),      glTexSubImage2D(3G),
100       glTexSubImage3D(3G)
101
102
103
104                                                       GLCOPYTEXSUBIMAGE1D(3G)
Impressum