glCompressedTexImage3D

specify a three-dimensional texture image in a compressed format

Signature

glCompressedTexImage3D( GLenum ( target ) , GLint ( level ) , GLenum ( internalformat ) , GLsizei ( width ) , GLsizei ( height ) , GLsizei ( depth ) , GLint ( border ) , GLsizei ( imageSize ) , const GLvoid * ( data ) )-> void
glCompressedTexImage3D( target , level , internalformat , width , height , depth , border , data )

Parameters

VariablesDescription
target
Specifies the target texture. Must be GL_TEXTURE_3D , GL_PROXY_TEXTURE_3D , GL_TEXTURE_2D_ARRAY or GL_PROXY_TEXTURE_2D_ARRAY .
level
Specifies the level-of-detail number. Level 0 is the base image level. Level n is the n th mipmap reduction image.
internalformat
Specifies the format of the compressed image data stored at address data .
width
Specifies the width of the texture image. All implementations support 3D texture images that are at least 16 texels wide.
height
Specifies the height of the texture image. All implementations support 3D texture images that are at least 16 texels high.
depth
Specifies the depth of the texture image. All implementations support 3D texture images that are at least 16 texels deep.
border
This value must be 0.
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.