Class ARBDrawBuffersBlend
- java.lang.Object
-
- org.lwjgl.opengl.ARBDrawBuffersBlend
-
public class ARBDrawBuffersBlend extends java.lang.ObjectNative bindings to the ARB_draw_buffers_blend extension.This extension builds upon the
ARB_draw_buffersand 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.0and EXT_draw_buffers2. Promoted to core inOpenGL 4.0.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static voidglBlendEquationiARB(int buf, int mode)Provides a way to enable blending and set color write masks independently per color output.static voidglBlendEquationSeparateiARB(int buf, int modeRGB, int modeAlpha)Provides a way to enable blending and set color write masks independently per color output.static voidglBlendFunciARB(int buf, int src, int dst)Provides a way to enable blending and set color write masks independently per color output.static voidglBlendFuncSeparateiARB(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.
-
-
-
Method Detail
-
glBlendEquationiARB
public static void glBlendEquationiARB(int buf, int mode)Provides a way to enable blending and set color write masks independently per color output.This call modifies the blend equations associated with an individual draw buffer.
The error
INVALID_ENUMis generated if thebufparameter is outside the range [0,MAX_DRAW_BUFFERS– 1].The error
INVALID_ENUMis generated ifmodeis not one ofFUNC_ADD,FUNC_SUBTRACT,FUNC_REVERSE_SUBTRACT,MAX, orMIN.The error
INVALID_OPERATIONis generated if this method is executed between the execution ofBeginand the corresponding execution ofEnd.- Parameters:
buf- an integer that indicates theDRAW_BUFFERto modify.mode- determines both the RGB and alpha blend equations. One of:FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
-
glBlendEquationSeparateiARB
public static void glBlendEquationSeparateiARB(int buf, int modeRGB, int modeAlpha)Provides a way to enable blending and set color write masks independently per color output.This call modifies the blend equations associated with an individual draw buffer.
The error
INVALID_ENUMis generated if thebufparameter is outside the range [0,MAX_DRAW_BUFFERS– 1].The error
INVALID_ENUMis generated if eithermodeRGBormodeAlphaare not one ofFUNC_ADD,FUNC_SUBTRACT,FUNC_REVERSE_SUBTRACT,MAX, orMIN.The error
INVALID_OPERATIONis generated if this method is executed between the execution ofBeginand the corresponding execution ofEnd.- Parameters:
buf- an integer that indicates theDRAW_BUFFERto modify.modeRGB- the RGB blend equation. One of:FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAXmodeAlpha- the alpha blend equation. One of:FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
-
glBlendFunciARB
public static void glBlendFunciARB(int buf, int src, int dst)Provides a way to enable blending and set color write masks independently per color output.This call modifies the blend functions associated with an individual draw buffer.
The error
INVALID_ENUMis generated if thebufparameter is outside the range [0,MAX_DRAW_BUFFERS– 1].The error
INVALID_ENUMis generated if eithersrc, ordstis not an accepted value.The error
INVALID_OPERATIONis generated if this method is executed between the execution ofBeginand the corresponding execution ofEnd.- Parameters:
buf- an integer that indicates theDRAW_BUFFERto modify.src- determines both RGB and alpha source functionsdst- determines both RGB and alpha destination functions
-
glBlendFuncSeparateiARB
public 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.This call modifies the blend functions associated with an individual draw buffer.
The error
INVALID_ENUMis generated if thebufparameter is outside the range [0,MAX_DRAW_BUFFERS– 1].The error
INVALID_ENUMis generated if eithersrcRGB,dstRGB,srcAlpha, ordstAlphais not an accepted value.The error
INVALID_OPERATIONis generated if this method is executed between the execution ofBeginand the corresponding execution ofEnd.- Parameters:
buf- an integer that indicates theDRAW_BUFFERto modify.srcRGB- the source RGB blend functiondstRGB- the destination RGB blend functionsrcAlpha- the source alpha blend functiondstAlpha- the destination alpha blend function
-
-