public static void glCompressedTexImage2D(int target, int level, int internalFormat,
                                              int border, long imageSize, Image image)
    {
        glCompressedTexImage2D(target, level, internalFormat, border, imageSize, image.getElement());
    }
public static void glCompressedTexImage2D ( int target , int level , int internalFormat , int border , long imageSize , Image image ) { glCompressedTexImage2D ( target , level , internalFormat , border , imageSize , image . getElement ( ) ) ; }
<p>{@code glCompressedTexImage2D} defines a two-dimensional texture image or cube-map texture image using
compressed image data from client memory. The texture image is decoded according to the extension specification
defining the specified internalFormat. OpenGL ES defines no specific compressed texture formats, but does provide
a mechanism to obtain symbolic constants for such formats provided by extensions.</p>

<p>{@link #GL_INVALID_ENUM} is generated if target is not {@link #GL_TEXTURE_2D}, {@link
#GL_TEXTURE_CUBE_MAP_POSITIVE_X}, {@link #GL_TEXTURE_CUBE_MAP_NEGATIVE_X}, {@link
#GL_TEXTURE_CUBE_MAP_POSITIVE_Y}, {@link #GL_TEXTURE_CUBE_MAP_NEGATIVE_Y}, {@link
#GL_TEXTURE_CUBE_MAP_POSITIVE_Z}, or {@link #GL_TEXTURE_CUBE_MAP_NEGATIVE_Z}.</p>

<p>{@link #GL_INVALID_ENUM} is generated if internalFormat is not a supported format returned in {@link
#GL_COMPRESSED_TEXTURE_FORMATS}.</p>

<p>{@link #GL_INVALID_VALUE} is generated if level is less than 0.</p>

<p>{@link #GL_INVALID_VALUE} may be generated if level is greater than <code>log<sub>2</sub> max</code>, where
{@code max} is the returned value of {@link #GL_MAX_TEXTURE_SIZE} when target is {@link #GL_TEXTURE_2D} or {@link
#GL_MAX_CUBE_MAP_TEXTURE_SIZE} when target is not {@link #GL_TEXTURE_2D}.</p>

<p>{@link #GL_INVALID_VALUE} is generated if border is not 0.</p>

<p>{@link #GL_INVALID_VALUE} is generated if imageSize is not consistent with the format, dimensions, and
contents of the specified compressed image data.</p>

<p>{@link #GL_INVALID_OPERATION} is generated if parameter combinations are not supported by the specific
compressed internal format as specified in the specific texture compression extension.</p>

<p>Undefined results, including abnormal program termination, are generated if data is not encoded in a manner
consistent with the extension specification defining the internal compression format.</p>

@param target         Specifies the target texture of the active texture unit.
@param level          Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth
mipmap reduction image.
@param internalFormat Specifies the format of the compressed image data stored at address data.
@param border         Specifies the width of the border. Must be 0.
@param imageSize      Specifies the number of unsigned bytes of image data starting at the address specified by
data.
@param image          Specifies a pointer to the compressed image data in memory.