Class ARBTextureRG
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 TypeFieldDescriptionstatic final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theformat
parameter of TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and ReadPixels.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.static final int
Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D. -
Method Summary
-
Field Details
-
GL_R8
public static final int GL_R8Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R16
public static final int GL_R16Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG8
public static final int GL_RG8Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG16
public static final int GL_RG16Accepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R16F
public static final int GL_R16FAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R32F
public static final int GL_R32FAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG16F
public static final int GL_RG16FAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG32F
public static final int GL_RG32FAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R8I
public static final int GL_R8IAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R8UI
public static final int GL_R8UIAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R16I
public static final int GL_R16IAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R16UI
public static final int GL_R16UIAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R32I
public static final int GL_R32IAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_R32UI
public static final int GL_R32UIAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG8I
public static final int GL_RG8IAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG8UI
public static final int GL_RG8UIAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG16I
public static final int GL_RG16IAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG16UI
public static final int GL_RG16UIAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG32I
public static final int GL_RG32IAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG32UI
public static final int GL_RG32UIAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG
public static final int GL_RGAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_COMPRESSED_RED
public static final int GL_COMPRESSED_REDAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_COMPRESSED_RG
public static final int GL_COMPRESSED_RGAccepted by theinternalFormat
parameter of TexImage1D, TexImage2D, TexImage3D, CopyTexImage1D, and CopyTexImage2D.- See Also:
-
GL_RG_INTEGER
public static final int GL_RG_INTEGERAccepted by theformat
parameter of TexImage1D, TexImage2D, TexImage3D, TexSubImage1D, TexSubImage2D, TexSubImage3D, and ReadPixels.- See Also:
-