GL_OES_blend_func_separate

Supported Hardware

Series5, Series5XT, Series6, Series6XE, Series6XT

Valid APIs

OpenGL ES 1.x

Description

OpenGL ES 1.x has functionality allowing a blend function to operate on all the channels in an output colour at once. However, often a different operation is wanted for the alpha and colour channels. This extension adds a new function, glBlendFuncSeparateOES, which operates in the same way as glBlendFunc, except that different equations can now be specified for RGB and Alpha.

Note

This extension is part of the OpenGL ES 1.x Extension Pack Specification and is core functionality in OpenGL ES 2.0 and 3.0.

Example

// Set the blend equation to use a value of transparent white for the source colour, but the
// destination colour remains as it otherwise would.
glBlendFuncSeparate(GL_ONE, GL_DST_COLOR, GL_ZERO, GL_DST_ALPHA);