glCompressedTexSubImage2D

specify a two-dimensional texture subimage in a compressed format

Signature

glCompressedTexSubImage2D( GLenum ( target ) , GLint ( level ) , GLint ( xoffset ) , GLint ( yoffset ) , GLsizei ( width ) , GLsizei ( height ) , GLenum ( format ) , GLsizei ( imageSize ) , const GLvoid * ( data ) )-> void
glCompressedTexSubImage2D( target , level , xoffset , yoffset , width , height , format , data )

Parameters

VariablesDescription
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 , or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z .
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.
width
Specifies the width of the texture subimage.
height
Specifies the height of the texture subimage.
format
Specifies the format of the compressed image data stored at address data .
imageSize
Specifies the number of unsigned bytes of image data starting at the address specified by data .
data
Specifies a pointer to the compressed image data in memory.