Class ARBBlendFuncExtended
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.
Requires ARB_fragment_shader
and EXT_gpu_shader4
. Promoted to core in OpenGL 3.3
.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Accepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunci, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparatei.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunci, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparatei.static final int
Accepted by thesrc
anddst
parameters of BlendFunc and BlendFunci, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparatei. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
glBindFragDataLocationIndexed
(int program, int colorNumber, int index, CharSequence name) Binds a user-defined varying out variable to a fragment shader color number and index.static void
glBindFragDataLocationIndexed
(int program, int colorNumber, int index, ByteBuffer name) Binds a user-defined varying out variable to a fragment shader color number and index.static int
glGetFragDataIndex
(int program, CharSequence name) Queries the bindings of color indices to user-defined varying out variables.static int
glGetFragDataIndex
(int program, ByteBuffer name) Queries the bindings of color indices to user-defined varying out variables.static void
nglBindFragDataLocationIndexed
(int program, int colorNumber, int index, long name) Unsafe version of:BindFragDataLocationIndexed
static int
nglGetFragDataIndex
(int program, long name) Unsafe version of:GetFragDataIndex
-
Field Details
-
GL_SRC1_COLOR
public static final int GL_SRC1_COLORAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunci, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparatei.- See Also:
-
GL_ONE_MINUS_SRC1_COLOR
public static final int GL_ONE_MINUS_SRC1_COLORAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunci, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparatei.- See Also:
-
GL_ONE_MINUS_SRC1_ALPHA
public static final int GL_ONE_MINUS_SRC1_ALPHAAccepted by thesrc
anddst
parameters of BlendFunc and BlendFunci, and by thesrcRGB
,dstRGB
,srcAlpha
anddstAlpha
parameters of BlendFuncSeparate and BlendFuncSeparatei.- See Also:
-
GL_MAX_DUAL_SOURCE_DRAW_BUFFERS
public static final int GL_MAX_DUAL_SOURCE_DRAW_BUFFERSAccepted by thepname
parameter of GetBooleanv, GetIntegerv, GetFloatv and GetDoublev.- See Also:
-
-
Method Details
-
nglBindFragDataLocationIndexed
public static void nglBindFragDataLocationIndexed(int program, int colorNumber, int index, long name) Unsafe version of:BindFragDataLocationIndexed
-
glBindFragDataLocationIndexed
public static void glBindFragDataLocationIndexed(int program, int colorNumber, int index, ByteBuffer name) Binds a user-defined varying out variable to a fragment shader color number and index.- Parameters:
program
- the name of the program containing varying out variable whose binding to modifycolorNumber
- the color number to bind the user-defined varying out variable toindex
- the index of the color input to bind the user-defined varying out variable toname
- the name of the user-defined varying out variable whose binding to modify
-
glBindFragDataLocationIndexed
public static void glBindFragDataLocationIndexed(int program, int colorNumber, int index, CharSequence name) Binds a user-defined varying out variable to a fragment shader color number and index.- Parameters:
program
- the name of the program containing varying out variable whose binding to modifycolorNumber
- the color number to bind the user-defined varying out variable toindex
- the index of the color input to bind the user-defined varying out variable toname
- the name of the user-defined varying out variable whose binding to modify
-
nglGetFragDataIndex
public static int nglGetFragDataIndex(int program, long name) Unsafe version of:GetFragDataIndex
-
glGetFragDataIndex
Queries the bindings of color indices to user-defined varying out variables.- Parameters:
program
- the name of the program containing varying out variable whose binding to queryname
- the name of the user-defined varying out variable whose index to query
-
glGetFragDataIndex
Queries the bindings of color indices to user-defined varying out variables.- Parameters:
program
- the name of the program containing varying out variable whose binding to queryname
- the name of the user-defined varying out variable whose index to query
-