GL_EXT_texture_rg#
Supported Hardware#
Series5XT, Series6, Series6XE, Series6XT
Valid APIs#
OpenGL ES 2.0
Description#
OpenGL ES exposed luminance/alpha texture formats as the only single and double channel texture formats available, and these were not available as colour buffers when rendering. This extension adds the RG88 and R8 texture formats which can additionally be used as colour buffers. These also have the benefit of dropping the baggage previously associated with the LA formats, such as luminance being replicated across all channels - something that is no longer necessary with programmable shaders.
Note#
This functionality is core to OpenGL ES 3.0.
Registry Link#
http://www.khronos.org/registry/gles/extensions/EXT/EXT_texture_rg.txt
Example#
// Create a two-channel byte texture
glTexImage2D(GL_TEXTURE_2D, 0, GL_RG_EXT, 1024, 1024, 0, GL_RG_EXT, GL_UNSIGNED_BYTE, pixelData);