Top Description Fields Constructors Methods
org.lwjgl.opengles

public Class EXTBlendFuncExtended

extends Object
Class Inheritance
Imports
java.nio.*, org.lwjgl.system.*

Native bindings to the EXT_blend_func_extended extension.

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 TypeField and Description
public static final int
GL_LOCATION_INDEX_EXT

Accepted in the props array of GetProgramResourceiv.

public static final int
GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, and GetFloatv.

public static final int
GL_ONE_MINUS_SRC1_ALPHA_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

public static final int
GL_ONE_MINUS_SRC1_COLOR_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

public static final int
GL_SRC1_ALPHA_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

public static final int
GL_SRC1_COLOR_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

public static final int
GL_SRC_ALPHA_SATURATE_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
glBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name)

public static void
glBindFragDataLocationEXT(int program, int colorNumber, CharSequence name)

public static void
glBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, ByteBuffer name)

public static void
glBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, CharSequence name)

public static int
glGetFragDataIndexEXT(int program, ByteBuffer name)

public static int
public static int
glGetProgramResourceLocationIndexEXT(int program, int programInterface, ByteBuffer name)

public static int
glGetProgramResourceLocationIndexEXT(int program, int programInterface, CharSequence name)

public static native void
nglBindFragDataLocationEXT(int program, int colorNumber, long name)

public static native void
nglBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, long name)

public static native int
nglGetFragDataIndexEXT(int program, long name)

public static native int
nglGetProgramResourceLocationIndexEXT(int program, int programInterface, long name)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

GL_LOCATION_INDEX_EXTback to summary
public static final int GL_LOCATION_INDEX_EXT

Accepted in the props array of GetProgramResourceiv.

GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXTback to summary
public static final int GL_MAX_DUAL_SOURCE_DRAW_BUFFERS_EXT

Accepted by the pname parameter of GetBooleanv, GetIntegerv, and GetFloatv.

GL_ONE_MINUS_SRC1_ALPHA_EXTback to summary
public static final int GL_ONE_MINUS_SRC1_ALPHA_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

GL_ONE_MINUS_SRC1_COLOR_EXTback to summary
public static final int GL_ONE_MINUS_SRC1_COLOR_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

GL_SRC1_ALPHA_EXTback to summary
public static final int GL_SRC1_ALPHA_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

GL_SRC1_COLOR_EXTback to summary
public static final int GL_SRC1_COLOR_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

GL_SRC_ALPHA_SATURATE_EXTback to summary
public static final int GL_SRC_ALPHA_SATURATE_EXT

Accepted by the src and dst parameters of BlendFunc and BlendFunciEXT, and by the srcRGB, dstRGB, srcAlpha and dstAlpha parameters of BlendFuncSeparate and BlendFuncSeparateiEXT.

Constructor Detail

EXTBlendFuncExtendedback to summary
protected EXTBlendFuncExtended()

Method Detail

glBindFragDataLocationEXTback to summary
public static void glBindFragDataLocationEXT(int program, int colorNumber, ByteBuffer name)
glBindFragDataLocationEXTback to summary
public static void glBindFragDataLocationEXT(int program, int colorNumber, CharSequence name)
glBindFragDataLocationIndexedEXTback to summary
public static void glBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, ByteBuffer name)
glBindFragDataLocationIndexedEXTback to summary
public static void glBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, CharSequence name)
glGetFragDataIndexEXTback to summary
public static int glGetFragDataIndexEXT(int program, ByteBuffer name)
Annotations
@NativeType:GLint
glGetFragDataIndexEXTback to summary
public static int glGetFragDataIndexEXT(int program, CharSequence name)
Annotations
@NativeType:GLint
glGetProgramResourceLocationIndexEXTback to summary
public static int glGetProgramResourceLocationIndexEXT(int program, int programInterface, ByteBuffer name)
Annotations
@NativeType:GLint
glGetProgramResourceLocationIndexEXTback to summary
public static int glGetProgramResourceLocationIndexEXT(int program, int programInterface, CharSequence name)
Annotations
@NativeType:GLint
nglBindFragDataLocationEXTback to summary
public static native void nglBindFragDataLocationEXT(int program, int colorNumber, long name)
nglBindFragDataLocationIndexedEXTback to summary
public static native void nglBindFragDataLocationIndexedEXT(int program, int colorNumber, int index, long name)
nglGetFragDataIndexEXTback to summary
public static native int nglGetFragDataIndexEXT(int program, long name)
nglGetProgramResourceLocationIndexEXTback to summary
public static native int nglGetProgramResourceLocationIndexEXT(int program, int programInterface, long name)