glCompressedTexSubImage3D

specify a three-dimensional texture subimage in a compressed format

Signature

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

Parameters

VariablesDescription
target
Specifies the target texture. Must be GL_TEXTURE_3D .
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.
depth
Specifies the depth 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.