Class ARBTextureCompression

java.lang.Object
org.lwjgl.opengl.ARBTextureCompression

public class ARBTextureCompression extends Object
Native bindings to the ARB_texture_compression extension.

Compressing texture images can reduce texture memory utilization and improve performance when rendering textured primitives. This extension allows OpenGL applications to use compressed texture images by providing:

  1. A framework upon which extensions providing specific compressed image formats can be built.
  2. A set of generic compressed internal formats that allow applications to specify that texture images should be stored in compressed form without needing to code for specific compression formats.

An application can define compressed texture images by providing a texture image stored in a specific compressed image format. This extension does not define any specific compressed image formats, but it does provide the mechanisms necessary to enable other extensions that do.

An application can also define compressed texture images by providing an uncompressed texture image but specifying a compressed internal format. In this case, the GL will automatically compress the texture image using the appropriate image format. Compressed internal formats can either be specific (as above) or generic. Generic compressed internal formats are not actual image formats, but are instead mapped into one of the specific compressed formats provided by the GL (or to an uncompressed base internal format if no appropriate compressed format is available). Generic compressed internal formats allow applications to use texture compression without needing to code to any particular compression algorithm. Generic compressed formats allow the use of texture compression across a wide range of platforms with differing compression algorithms and also allow future GL implementations to substitute improved compression methods transparently.

Promoted to core in OpenGL 1.3.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.
    static final int
    Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.
    static final int
    Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.
    static final int
    Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.
    static final int
    Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.
    static final int
    Accepted by the internalformat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.
    static final int
    Accepted by the value parameter of GetIntegerv, GetBooleanv, GetFloatv, and GetDoublev.
    static final int
    Accepted by the value parameter of GetIntegerv, GetBooleanv, GetFloatv, and GetDoublev.
    static final int
    Accepted by the value parameter of GetTexLevelParameter.
    static final int
    Accepted by the value parameter of GetTexLevelParameter.
    static final int
    Accepted by the target parameter of Hint and the value parameter of GetIntegerv, GetBooleanv, GetFloatv, and GetDoublev.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    glCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, long data)
    Specifies a one-dimensional texture image in a compressed format.
    static void
    glCompressedTexImage1DARB(int target, int level, int internalformat, int width, ByteBuffer data)
    Specifies a one-dimensional texture image in a compressed format.
    static void
    glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, long data)
    Specifies a two-dimensional texture image in a compressed format.
    static void
    glCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, ByteBuffer data)
    Specifies a two-dimensional texture image in a compressed format.
    static void
    glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data)
    Specifies a three-dimensional texture image in a compressed format.
    static void
    glCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, ByteBuffer data)
    Specifies a three-dimensional texture image in a compressed format.
    static void
    glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, long data)
    Respecifies only a subregion of an existing 1D texel array, with incoming data stored in a specific compressed image format.
    static void
    glCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, ByteBuffer data)
    Respecifies only a subregion of an existing 1D texel array, with incoming data stored in a specific compressed image format.
    static void
    glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, long data)
    Respecifies only a rectangular subregion of an existing 2D texel array, with incoming data stored in a specific compressed image format.
    static void
    glCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, ByteBuffer data)
    Respecifies only a rectangular subregion of an existing 2D texel array, with incoming data stored in a specific compressed image format.
    static void
    glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data)
    Respecifies only a cubic subregion of an existing 3D texel array, with incoming data stored in a specific compressed image format.
    static void
    glCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, ByteBuffer data)
    Respecifies only a cubic subregion of an existing 3D texel array, with incoming data stored in a specific compressed image format.
    static void
    glGetCompressedTexImageARB(int target, int level, long pixels)
    Returns a compressed texture image.
    static void
    glGetCompressedTexImageARB(int target, int level, ByteBuffer pixels)
    Returns a compressed texture image.
    static void
    nglCompressedTexImage1DARB(int target, int level, int internalformat, int width, int border, int imageSize, long data)
    Unsafe version of: CompressedTexImage1DARB
    static void
    nglCompressedTexImage2DARB(int target, int level, int internalformat, int width, int height, int border, int imageSize, long data)
    Unsafe version of: CompressedTexImage2DARB
    static void
    nglCompressedTexImage3DARB(int target, int level, int internalformat, int width, int height, int depth, int border, int imageSize, long data)
    Unsafe version of: CompressedTexImage3DARB
    static void
    nglCompressedTexSubImage1DARB(int target, int level, int xoffset, int width, int format, int imageSize, long data)
    Unsafe version of: CompressedTexSubImage1DARB
    static void
    nglCompressedTexSubImage2DARB(int target, int level, int xoffset, int yoffset, int width, int height, int format, int imageSize, long data)
    Unsafe version of: CompressedTexSubImage2DARB
    static void
    nglCompressedTexSubImage3DARB(int target, int level, int xoffset, int yoffset, int zoffset, int width, int height, int depth, int format, int imageSize, long data)
    Unsafe version of: CompressedTexSubImage3DARB
    static void
    nglGetCompressedTexImageARB(int target, int level, long pixels)
    Unsafe version of: GetCompressedTexImageARB

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait