Skip to content

glCopyTexSubImage2D

copy a two-dimensional texture subimage

function glCopyTexSubImage2D(int $target, int $level, int $xoffset, int $yoffset, int $x, int $y, int $width, int $height) : void
arguments
  1. int $target Specifies the target to which the texture object is bound for glCopyTexSubImage2D function. Must be GL_TEXTURE_1D_ARRAY, GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_TEXTURE_RECTANGLE.
  2. int $level Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image.
  3. int $xoffset Specifies a texel offset in the x direction within the texture array.
  4. int $yoffset Specifies a texel offset in the y direction within the texture array.
  5. int $x Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied.
  6. int $y
  7. int $width Specifies the width of the texture subimage.
  8. int $height Specifies the height of the texture subimage.
returns

void


Copyright © 2010-2014 Khronos Group

This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. https://opencontent.org/openpub/.