GL_OES_draw_buffers_indexed

Supported Hardware

Series6, Series6XE, Series6XT

Valid APIs

OpenGL ES 2.0

Description

This extension builds upon the EXT_draw_buffers extension. In EXT_draw_buffers (part of OpenGL ES 3.0), separate values could be written to each colour buffer, but the blend enable, blend functions, blend equations and colour write masks are global and apply to all colour outputs.

This extension provides the ability to independently:

  • enable or disable blending,
  • set the blend equations,
  • set the blend functions, and
  • set the colour write masks

per colour output.

This extension introduces indexed versions of the enable, blend equation, blend function, and colour mask commands, as well as associated indexed queries in order to control and query these states independently on a per-colour output basis.

Note

This functionality is core to OpenGL ES 3.0, so the extension is no longer needed.

Registry Link

https://www.khronos.org/registry/gles/extensions/OES/OES_draw_buffers_indexed.txt

Example

EnableiOES(BLEND, 0); 
DisableiOES(BLEND, 0); 
IsEnablediOES(BLEND, 0); 
BlendEquationiOES(0, FUNC_ADD); 
BlendEquationSeparateiOES(0, FUNC_ADD, FUNC_SUBTRACT); 
BlendFunciOES(0, ZERO, ONE); 
BlendFuncSeparateiOES(0, SRC_COLOR, DST_COLOR, CONSTANT_ALPHA, SRC_ALPHA_SATURATE); 
ColorMaskiOES(0, EGL_TRUE, EGL_TRUE, EGL_TRUE, EGL_TRUE);