Click or drag to resize

glBlendEquation Method

Specify the equation used for both the RGB blend equation and the Alpha blend equation.

Namespace:  Ooogles
Assembly:  Ooogles (in Ooogles.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void BlendEquation(
	glBlendEquationMode equation
)

Parameters

equation
Type: OooglesglBlendEquationMode
specifies how source and destination colors are combined.
Remarks
The blend equations determine how a new pixel (the 'source' color) is combined with a pixel already in the framebuffer (the 'destination' color). This function sets both the RGB blend equation and the alpha blend equation to a single equation.

These equations use the source and destination blend factors specified by either BlendFunc(glBlendFactor, glBlendFactor) or BlendFuncSeparate(glBlendFactor, glBlendFactor, glBlendFactor, glBlendFactor). See BlendFunc(glBlendFactor, glBlendFactor) or BlendFuncSeparate(glBlendFactor, glBlendFactor, glBlendFactor, glBlendFactor) for a description of the various blend factors.

See glBlendEquationMode for a description of the available options. The results of these equations are clamped to the range 0..1.

The Add equation is useful for anti-aliasing and transparency, among other things.

Initially, both the RGB blend equation and the alpha blend equation are set to Add.

OpenGL API: glBlendEquation

See Also