GLBLENDEQUATIONEXT(3GL)GLBLENDEQUATIONEXT(3GL)NAME
glBlendEquationEXT - specify the blend equation
C SPECIFICATION
void glBlendEquationEXT(GLenum mode)
PARAMETERS
mode Specify the equation for blending. The following symbolic con‐
stants are accepted: GL_FUNC_ADD_EXT, GL_FUNC_SUBTRACT_EXT,
GL_FUNC_REVERSE_SUBTRACT_EXT, GL_MIN_EXT, and GL_MAX_EXT.
DESCRIPTION
glBlendEquationEXT specifies the equation for blending color compo‐
nents. The blending equations are as follows:
GL_FUNC_ADD_EXT: C = (Cs * S) + (Cd * D)
GL_FUNC_MIN_EXT: C = min (Cs, Cd)
GL_FUNC_MAX_EXT: C = max (Cs, Cd)
GL_FUNC_SUBTRACT_EXT: C = (Cs * S) - (Cd * D)
GL_FUNC_REVERSE_SUBTRACT_EXT: C = (Cd * D) - (Cs * S)
GL_LOGIC_OP: C = Cs OP Cd
where:
Cs = source color components
Cd = destination color components
S = source blending factors
D = destination blending factors
In all cases the blending equation is evaluated separately for each
color component. See glBlendFunc for a complete description of the
blending operations.
NOTES
glBlendEquationEXT is part of the EXT_blend_minmax extension, not part
of the core GL command set. If GL_EXT_blend_minmax is included in the
string returned by glGetString, when called with argument GL_EXTEN‐
SIONS, extension EXT_blend_minmax is supported by the connection.
glBlendEquationEXT is part of the EXT_blend_logic_op extension. If
GL_EXT_blend_logic_op and GL_EXT_blend_minmax are included in the
string returned by glGetString, when called with argument GL_EXTEN‐
SIONS, extension GL_EXT_blend_logic_op and EXT_blend_minmax is sup‐
ported by the connection.
ERRORS
GL_INVALID_OPERATION is generated if glBlendEquationEXT is executed
between the execution of glBegin and the corresponding execution of
glEnd.
ASSOCIATED GETS
glGet with an argument of GL_BLEND_EQUATION_EXT
SEE ALSO
glBlendFunc, glBlendColorEXT, glGetString
13 May 99 GLBLENDEQUATIONEXT(3GL)