copy a two-dimensional texture subimage
Signature
Parameters
Variables | Description |
target
|
Specifies the target texture.
Must be
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_1D_ARRAY
.
|
level
|
Specifies the level-of-detail number.
Level 0 is the base image level.
Level
n
is the
n
th mipmap reduction image.
|
xoffset
|
Specifies a texel offset in the x direction within the texture array.
|
yoffset
|
Specifies a texel offset in the y direction within the texture array.
|
x, y
|
Specify the window coordinates of the lower left corner
of the rectangular region of pixels to be copied.
|
width
|
Specifies the width of the texture subimage.
|
height
|
Specifies the height of the texture subimage.
|
Sample Code References
The following code samples have been found which appear to reference the
functions described here. Take care that the code may be old, broken or not
even use PyOpenGL.