C
glCopyTexSubImage1D
Chapter 3
81
Texturing has no effect in color index mode.
glPixelStore and glPixelTransfer modes affect texture images in exactly the way they
affect glDrawPixels.
Errors
• GL_INVALID_ENUM is generated if target is not GL_TEXTURE_1D.
• GL_INVALID_OPERATION is generated if the texture array has not been defined
by a previous glTexImage1D or glCopyTexImage1D operation.
• GL_INVALID_VALUE is generated if level is less than 0.
• GL_INVALID_VALUE may be generated if level>log
2
max, where max is the
returned value of GL_MAX_TEXTURE_SIZE.
• GL_INVALID_VALUE is generated if y < - b or if width < - b, where b is the border
width of the texture array. GL_INVALID_VALUE is generated if xoffset < - b, or
(xoffset + width) > (w - b), where w is the GL_TEXTURE_WIDTH, and b is the
GL_TEXTURE_BORDER of the texture image being modified. Note that w includes
twice the border width.
Associated Gets
glGetTexImage
glIsEnabled with argument GL_TEXTURE_1D
See Also
glCopyPixels,
glCopyTexImage1D,
glCopyTexImage2D,
glCopyTexSubImage2D,
glPixelStore,
glPixelTransfer,
glTexEnv,
glTexGen,
glTexImage1D,
glTexImage2D,
glTexParameter,
glTexSubImage1D,
glTexSubImage2D