public class ARBDrawBuffersBlend
extends java.lang.Object
This extension builds upon the ARB_draw_buffers and EXT_draw_buffers2 extensions. In ARB_draw_buffers (part of OpenGL 2.0), separate
values could be written to each color buffer. This was further enhanced by EXT_draw_buffers2 by adding in the ability to enable blending and to set
color write masks independently per color output.
This extension provides the ability to set individual blend equations and blend functions for each color output.
Requires OpenGL 2.0 and EXT_draw_buffers2. Promoted to core in OpenGL 4.0.
| Modifier and Type | Method and Description |
|---|---|
static void |
glBlendEquationiARB(int buf,
int mode)
Provides a way to enable blending and set color write masks independently per color output.
|
static void |
glBlendEquationSeparateiARB(int buf,
int modeRGB,
int modeAlpha)
Provides a way to enable blending and set color write masks independently per color output.
|
static void |
glBlendFunciARB(int buf,
int src,
int dst)
Provides a way to enable blending and set color write masks independently per color output.
|
static void |
glBlendFuncSeparateiARB(int buf,
int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha)
Provides a way to enable blending and set color write masks independently per color output.
|
public static void glBlendEquationiARB(int buf,
int mode)
This call modifies the blend equations associated with an individual draw buffer.
The error INVALID_ENUM is generated if the buf parameter is outside the range [0, MAX_DRAW_BUFFERS – 1].
The error INVALID_ENUM is generated if mode is not one of FUNC_ADD, FUNC_SUBTRACT,
FUNC_REVERSE_SUBTRACT, MAX, or MIN.
The error INVALID_OPERATION is generated if this method is executed between the execution of Begin and the corresponding execution
of End.
buf - an integer that indicates the DRAW_BUFFER to modify.mode - determines both the RGB and alpha blend equations. One of:FUNC_ADD | FUNC_SUBTRACT | FUNC_REVERSE_SUBTRACT | MIN | MAX |
public static void glBlendEquationSeparateiARB(int buf,
int modeRGB,
int modeAlpha)
This call modifies the blend equations associated with an individual draw buffer.
The error INVALID_ENUM is generated if the buf parameter is outside the range [0, MAX_DRAW_BUFFERS – 1].
The error INVALID_ENUM is generated if either modeRGB or modeAlpha are not one of FUNC_ADD,
FUNC_SUBTRACT, FUNC_REVERSE_SUBTRACT, MAX, or MIN.
The error INVALID_OPERATION is generated if this method is executed between the execution of Begin and the corresponding execution
of End.
buf - an integer that indicates the DRAW_BUFFER to modify.modeRGB - the RGB blend equation. One of:FUNC_ADD | FUNC_SUBTRACT | FUNC_REVERSE_SUBTRACT | MIN | MAX |
modeAlpha - the alpha blend equation. One of:FUNC_ADD | FUNC_SUBTRACT | FUNC_REVERSE_SUBTRACT | MIN | MAX |
public static void glBlendFunciARB(int buf,
int src,
int dst)
This call modifies the blend functions associated with an individual draw buffer.
The error INVALID_ENUM is generated if the buf parameter is outside the range [0, MAX_DRAW_BUFFERS – 1].
The error INVALID_ENUM is generated if either src, or dst is not an accepted value.
The error INVALID_OPERATION is generated if this method is executed between the execution of Begin and the corresponding execution
of End.
buf - an integer that indicates the DRAW_BUFFER to modify.src - determines both RGB and alpha source functionsdst - determines both RGB and alpha destination functionspublic static void glBlendFuncSeparateiARB(int buf,
int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha)
This call modifies the blend functions associated with an individual draw buffer.
The error INVALID_ENUM is generated if the buf parameter is outside the range [0, MAX_DRAW_BUFFERS – 1].
The error INVALID_ENUM is generated if either srcRGB, dstRGB, srcAlpha, or dstAlpha is not an accepted value.
The error INVALID_OPERATION is generated if this method is executed between the execution of Begin and the corresponding execution
of End.
buf - an integer that indicates the DRAW_BUFFER to modify.srcRGB - the source RGB blend functiondstRGB - the destination RGB blend functionsrcAlpha - the source alpha blend functiondstAlpha - the destination alpha blend functionCopyright LWJGL. All Rights Reserved. License terms.