Class EXTBlendFuncExtended
This extension provides an ES version of the ARB_blend_func_extended functionality.
Traditional OpenGL includes fixed-function blending that combines source colors with the existing content of a render buffer in a variety of ways. A number of extensions have enhanced this functionality by adding further sources of blending weights and methods to combine them. However, the inputs to the fixed-function blending units are constrained to a source color (as output from fragment shading), destination color (as the current content of the frame buffer) or constants that may be used in their place.
This extension adds new blending functions whereby a fragment shader may output two colors, one of which is treated as the source color, and the other used as a blending factor for either source or destination colors. Furthermore, this extension increases orthogonality by allowing the SRC_ALPHA_SATURATE function to be used as the destination weight.
Because of the limitations of the OpenGL ES 2.0 shading language, new built-in variables (gl_SecondaryFragColorEXT, gl_SecondaryFragDataEXT) are added to the ES 1.00 shading language rather than introduce more complex features for user-defined fragment outputs. Because such built-in variable are deprecated in ES 3.0, these variables are NOT available in the OpenGL ES 3.xx shading language verisons.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted in theprops
array of GetProgramResourceiv.static final int
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glBindFragDataLocationEXT
(int program, int colorNumber, CharSequence name) static void
glBindFragDataLocationEXT
(int program, int colorNumber, ByteBuffer name) static void
glBindFragDataLocationIndexedEXT
(int program, int colorNumber, int index, CharSequence name) static void
glBindFragDataLocationIndexedEXT
(int program, int colorNumber, int index, ByteBuffer name) static int
glGetFragDataIndexEXT
(int program, CharSequence name) static int
glGetFragDataIndexEXT
(int program, ByteBuffer name) static int
glGetProgramResourceLocationIndexEXT
(int program, int programInterface, CharSequence name) static int
glGetProgramResourceLocationIndexEXT
(int program, int programInterface, ByteBuffer name) static void
nglBindFragDataLocationEXT
(int program, int colorNumber, long name) static void
nglBindFragDataLocationIndexedEXT
(int program, int colorNumber, int index, long name) static int
nglGetFragDataIndexEXT
(int program, long name) static int
nglGetProgramResourceLocationIndexEXT
(int program, int programInterface, long name)
-
Field Details
-
GL_SRC1_COLOR_EXT
public static final int GL_SRC1_COLOR_EXTAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.- See Also:
-
GL_SRC1_ALPHA_EXT
public static final int GL_SRC1_ALPHA_EXTAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.- See Also:
-
GL_ONE_MINUS_SRC1_COLOR_EXT
public static final int GL_ONE_MINUS_SRC1_COLOR_EXTAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.- See Also:
-
GL_ONE_MINUS_SRC1_ALPHA_EXT
public static final int GL_ONE_MINUS_SRC1_ALPHA_EXTAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.- See Also:
-
GL_SRC_ALPHA_SATURATE_EXT
public static final int GL_SRC_ALPHA_SATURATE_EXTAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunciEXT, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.- See Also:
-
GL_LOCATION_INDEX_EXT
public static final int GL_LOCATION_INDEX_EXTAccepted in theprops
array of GetProgramResourceiv.- See Also:
-
GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT
public static final int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXTAccepted by thepname
parameter of GetBooleanv, GetIntegerv, and GetFloatv.- See Also:
-
-
Method Details
-
nglBindFragDataLocationIndexedEXT
public static void nglBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, long name) -
glBindFragDataLocationIndexedEXT
public static void glBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, ByteBuffer name) -
glBindFragDataLocationIndexedEXT
public static void glBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, CharSequence name) -
nglGetFragDataIndexEXT
public static int nglGetFragDataIndexEXT(int program, long name) -
glGetFragDataIndexEXT
-
glGetFragDataIndexEXT
-
nglBindFragDataLocationEXT
public static void nglBindFragDataLocationEXT(int program, int colorNumber, long name) -
glBindFragDataLocationEXT
-
glBindFragDataLocationEXT
-
nglGetProgramResourceLocationIndexEXT
public static int nglGetProgramResourceLocationIndexEXT(int program, int programInterface, long name) -
glGetProgramResourceLocationIndexEXT
public static int glGetProgramResourceLocationIndexEXT(int program, int programInterface, ByteBuffer name) -
glGetProgramResourceLocationIndexEXT
public static int glGetProgramResourceLocationIndexEXT(int program, int programInterface, CharSequence name)
-