Top Description Fields Constructors Methods
org.lwjgl.opengl

public final Class ARBTextureRG

extends Object
Class Inheritance

Native bindings to the ARB_texture_rg extension.

Historically one- and two- component textures have been specified in OpenGL using the intensity, luminance or luminance-alpha (I/L/LA) formats. With the advent of programmable shaders and render-to-texture capabilites 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, and the intensity values are replicated across both the color and alpha 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 I/L/LA formats is under-specified (specifically how to map R/G/B/A values to I/L/A texture channels).

This extension adds new base internal formats for the one-component RED and two-component RG (red green) texture formats as well as sized internal formats for fixed-point, floating-point and pure integer texture formats. The new texure formats can be used for texturing as well as for rendering into with framebuffer objects.

Promoted to core in OpenGL 3.0.

Field Summary

Modifier and TypeField and Description
public static final int
GL_COMPRESSED_RED

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_COMPRESSED_RG

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R16

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R16F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R16I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R16UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R32F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R32I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R32UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R8

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R8I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_R8UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG16

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG16F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG16I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG16UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG32F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG32I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG32UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG8

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG8I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG8UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

public static final int
GL_RG_INTEGER

Accepted by the format parameter of TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and ReadPixels.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_COMPRESSED_REDback to summary
public static final int GL_COMPRESSED_RED

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_COMPRESSED_RGback to summary
public static final int GL_COMPRESSED_RG

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R16back to summary
public static final int GL_R16

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R16Fback to summary
public static final int GL_R16F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R16Iback to summary
public static final int GL_R16I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R16UIback to summary
public static final int GL_R16UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R32Fback to summary
public static final int GL_R32F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R32Iback to summary
public static final int GL_R32I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R32UIback to summary
public static final int GL_R32UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R8back to summary
public static final int GL_R8

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R8Iback to summary
public static final int GL_R8I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_R8UIback to summary
public static final int GL_R8UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RGback to summary
public static final int GL_RG

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG16back to summary
public static final int GL_RG16

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG16Fback to summary
public static final int GL_RG16F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG16Iback to summary
public static final int GL_RG16I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG16UIback to summary
public static final int GL_RG16UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG32Fback to summary
public static final int GL_RG32F

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG32Iback to summary
public static final int GL_RG32I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG32UIback to summary
public static final int GL_RG32UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG8back to summary
public static final int GL_RG8

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG8Iback to summary
public static final int GL_RG8I

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG8UIback to summary
public static final int GL_RG8UI

Accepted by the internalFormat parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.

GL_RG_INTEGERback to summary
public static final int GL_RG_INTEGER

Accepted by the format parameter of TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and ReadPixels.

Constructor Detail

ARBTextureRGback to summary
private ARBTextureRG()