Top Description Constructors Methods
org.lwjgl.opengl

public Class ARBDrawBuffersBlend

extends Object
Class Inheritance
Imports
org.lwjgl.system.*

Native bindings to the ARB_draw_buffers_blend extension.

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.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static native void
glBlendEquationiARB(int
an integer that indicates the DRAW_BUFFER to modify.
buf
,
int
determines both the RGB and alpha blend equations. One of:
FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
mode
)

Provides a way to enable blending and set color write masks independently per color output.

public static native void
glBlendEquationSeparateiARB(int
an integer that indicates the DRAW_BUFFER to modify.
buf
,
int modeRGB, int
the alpha blend equation. One of:
FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
modeAlpha
)

Provides a way to enable blending and set color write masks independently per color output.

public static native void
glBlendFunciARB(int
an integer that indicates the DRAW_BUFFER to modify.
buf
,
int
determines both RGB and alpha source functions
src
,
int
determines both RGB and alpha destination functions
dst
)

Provides a way to enable blending and set color write masks independently per color output.

public static native void
glBlendFuncSeparateiARB(int
an integer that indicates the DRAW_BUFFER to modify.
buf
,
int
the source RGB blend function
srcRGB
,
int
the destination RGB blend function
dstRGB
,
int
the source alpha blend function
srcAlpha
,
int
the destination alpha blend function
dstAlpha
)

Provides a way to enable blending and set color write masks independently per color output.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ARBDrawBuffersBlendback to summary
protected ARBDrawBuffersBlend()

Method Detail

glBlendEquationiARBback to summary
public static native 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_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.

Parameters
buf:int

an integer that indicates the DRAW_BUFFER to modify.

mode:int

determines both the RGB and alpha blend equations. One of:

FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
glBlendEquationSeparateiARBback to summary
public static native 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_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.

Parameters
buf:int

an integer that indicates the DRAW_BUFFER to modify.

modeRGB:int

the RGB blend equation. One of:

FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
modeAlpha:int

the alpha blend equation. One of:

FUNC_ADDFUNC_SUBTRACTFUNC_REVERSE_SUBTRACTMINMAX
glBlendFunciARBback to summary
public static native 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_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.

Parameters
buf:int

an integer that indicates the DRAW_BUFFER to modify.

src:int

determines both RGB and alpha source functions

dst:int

determines both RGB and alpha destination functions

glBlendFuncSeparateiARBback to summary
public static native 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_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.

Parameters
buf:int

an integer that indicates the DRAW_BUFFER to modify.

srcRGB:int

the source RGB blend function

dstRGB:int

the destination RGB blend function

srcAlpha:int

the source alpha blend function

dstAlpha:int

the destination alpha blend function