Top Description Fields Constructors Methods
org.lwjgl.opengles

public Class EXTTextureStorage

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the EXT_texture_storage extension.

The texture image specification commands in OpenGL allow each level to be separately specified with different sizes, formats, types and so on, and only imposes consistency checks at draw time. This adds overhead for implementations.

This extension provides a mechanism for specifying the entire structure of a texture in a single call, allowing certain consistency checks and memory allocations to be done up front. Once specified, the format and dimensions of the image array become immutable, to simplify completeness checks in the implementation.

When using this extension, it is no longer possible to supply texture data using TexImage*. Instead, data can be uploaded using TexSubImage*, or produced by other means (such as render-to-texture, mipmap generation, or rendering to a sibling EGLImage).

This extension has complicated interactions with other extensions. The goal of most of these interactions is to ensure that a texture is always mipmap complete (and cube complete for cubemap textures).

Requires GLES 2.0.

Field Summary

Modifier and TypeField and Description
public static final int
GL_ALPHA16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_ALPHA32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_ALPHA8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_BGRA8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_LUMINANCE16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_LUMINANCE32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_LUMINANCE8_ALPHA8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_LUMINANCE8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_LUMINANCE_ALPHA16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_LUMINANCE_ALPHA32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_R16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_R32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_R8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RG16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RG32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RG8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RGB10_A2_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RGB10_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RGB16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RGB32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RGB_RAW_422_APPLE

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RGBA16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_RGBA32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

public static final int
GL_TEXTURE_IMMUTABLE_FORMAT_EXT

Accepted by the value parameter of GetTexParameter{if}v.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glTexStorage1DEXT(int target, int levels, int internalformat, int width)

public static native void
glTexStorage2DEXT(int target, int levels, int internalformat, int width, int height)

public static native void
glTexStorage3DEXT(int target, int levels, int internalformat, int width, int height, int depth)

public static native void
glTextureStorage1DEXT(int texture, int target, int levels, int internalformat, int width)

public static native void
glTextureStorage2DEXT(int texture, int target, int levels, int internalformat, int width, int height)

public static native void
glTextureStorage3DEXT(int texture, int target, int levels, int internalformat, int width, int height, int depth)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_ALPHA16F_EXTback to summary
public static final int GL_ALPHA16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_ALPHA32F_EXTback to summary
public static final int GL_ALPHA32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_ALPHA8_EXTback to summary
public static final int GL_ALPHA8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_BGRA8_EXTback to summary
public static final int GL_BGRA8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_LUMINANCE16F_EXTback to summary
public static final int GL_LUMINANCE16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_LUMINANCE32F_EXTback to summary
public static final int GL_LUMINANCE32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_LUMINANCE8_ALPHA8_EXTback to summary
public static final int GL_LUMINANCE8_ALPHA8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_LUMINANCE8_EXTback to summary
public static final int GL_LUMINANCE8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_LUMINANCE_ALPHA16F_EXTback to summary
public static final int GL_LUMINANCE_ALPHA16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_LUMINANCE_ALPHA32F_EXTback to summary
public static final int GL_LUMINANCE_ALPHA32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_R16F_EXTback to summary
public static final int GL_R16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_R32F_EXTback to summary
public static final int GL_R32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_R8_EXTback to summary
public static final int GL_R8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RG16F_EXTback to summary
public static final int GL_RG16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RG32F_EXTback to summary
public static final int GL_RG32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RG8_EXTback to summary
public static final int GL_RG8_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RGB10_A2_EXTback to summary
public static final int GL_RGB10_A2_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RGB10_EXTback to summary
public static final int GL_RGB10_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RGB16F_EXTback to summary
public static final int GL_RGB16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RGB32F_EXTback to summary
public static final int GL_RGB32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RGB_RAW_422_APPLEback to summary
public static final int GL_RGB_RAW_422_APPLE

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RGBA16F_EXTback to summary
public static final int GL_RGBA16F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_RGBA32F_EXTback to summary
public static final int GL_RGBA32F_EXT

Accepted by the internalformat parameter of TexStorage when implemented on OpenGL ES.

GL_TEXTURE_IMMUTABLE_FORMAT_EXTback to summary
public static final int GL_TEXTURE_IMMUTABLE_FORMAT_EXT

Accepted by the value parameter of GetTexParameter{if}v.

Constructor Detail

EXTTextureStorageback to summary
protected EXTTextureStorage()

Method Detail

glTexStorage1DEXTback to summary
public static native void glTexStorage1DEXT(int target, int levels, int internalformat, int width)
glTexStorage2DEXTback to summary
public static native void glTexStorage2DEXT(int target, int levels, int internalformat, int width, int height)
glTexStorage3DEXTback to summary
public static native void glTexStorage3DEXT(int target, int levels, int internalformat, int width, int height, int depth)
glTextureStorage1DEXTback to summary
public static native void glTextureStorage1DEXT(int texture, int target, int levels, int internalformat, int width)
glTextureStorage2DEXTback to summary
public static native void glTextureStorage2DEXT(int texture, int target, int levels, int internalformat, int width, int height)
glTextureStorage3DEXTback to summary
public static native void glTextureStorage3DEXT(int texture, int target, int levels, int internalformat, int width, int height, int depth)