Top Description Fields Constructors Methods
org.lwjgl.opengles

public final Class EXTTextureRG

extends Object
Class Inheritance

Native bindings to the EXT_texture_rg extension.

Historically one- and two-component textures have been specified in OpenGL ES using the luminance or luminance-alpha (L/LA) formats. With the advent of programmable shaders and render-to-texture capabilities these legacy formats carry some historical artifacts which are no longer useful.

For example, when sampling from such textures, the luminance values are replicated across the color components. This is no longer necessary with programmable shaders.

It is also desirable to be able to render to one- and two-component format textures using capabilities such as framebuffer objects (FBO), but rendering to L/LA formats is under-specified (specifically how to map R/G/B/A values to L/A texture channels).

This extension adds new base internal formats for one-component RED and two-component RG (red green) textures as well as sized RED and RG internal formats for renderbuffers. The RED and RG texture formats can be used for both texturing and rendering into with framebuffer objects.

Requires GLES 2.0.

Field Summary

Modifier and TypeField and Description
public static final int
GL_R8_EXT

Accepted by the internalformat parameter of RenderbufferStorage and RenderbufferStorageMultisampleAPPLE.

public static final int
GL_RED_EXT

Accepted by the internalformat parameter of TexImage2D and CopyTexImage2D, and the format parameter of TexImage2D, TexSubImage2D, and ReadPixels.

public static final int
GL_RG8_EXT

Accepted by the internalformat parameter of RenderbufferStorage and RenderbufferStorageMultisampleAPPLE.

public static final int
GL_RG_EXT

Accepted by the internalformat parameter of TexImage2D and CopyTexImage2D, and the format parameter of TexImage2D, TexSubImage2D, and ReadPixels.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_R8_EXTback to summary
public static final int GL_R8_EXT

Accepted by the internalformat parameter of RenderbufferStorage and RenderbufferStorageMultisampleAPPLE.

GL_RED_EXTback to summary
public static final int GL_RED_EXT

Accepted by the internalformat parameter of TexImage2D and CopyTexImage2D, and the format parameter of TexImage2D, TexSubImage2D, and ReadPixels.

GL_RG8_EXTback to summary
public static final int GL_RG8_EXT

Accepted by the internalformat parameter of RenderbufferStorage and RenderbufferStorageMultisampleAPPLE.

GL_RG_EXTback to summary
public static final int GL_RG_EXT

Accepted by the internalformat parameter of TexImage2D and CopyTexImage2D, and the format parameter of TexImage2D, TexSubImage2D, and ReadPixels.

Constructor Detail

EXTTextureRGback to summary
private EXTTextureRG()