org.lwjgl.opengl.EXTBlendEquationSeparate Maven / Gradle / Ivy
Show all versions of lwjgl-opengl Show documentation
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import org.lwjgl.system.*;
import static org.lwjgl.system.Checks.*;
/**
* Native bindings to the EXT_blend_equation_separate extension.
*
* EXT_blend_func_separate introduced separate RGB and alpha blend factors. EXT_blend_minmax introduced a
* distinct blend equation for combining source and destination blend terms. (EXT_blend_subtract_blend_subtract &
* EXT_blend_logic_op added other blend equation modes.) OpenGL 1.4 integrated both functionalities into the core standard.
*
* While there are separate blend functions for the RGB and alpha blend factors, OpenGL 1.4 provides a single blend equation that applies to both RGB and
* alpha portions of blending.
*
* This extension provides a separate blend equation for RGB and alpha to match the generality available for blend factors.
*
* Requires {@link GL14 OpenGL 1.4} or {@link ARBImaging ARB_imaging} or EXT_blend_minmax and/or
* EXT_blend_subtract_blend_subtract. Promoted to core in {@link GL20 OpenGL 2.0}.
*/
public class EXTBlendEquationSeparate {
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int
GL_BLEND_EQUATION_RGB_EXT = 0x8009,
GL_BLEND_EQUATION_ALPHA_EXT = 0x883D;
static { GL.initialize(); }
protected EXTBlendEquationSeparate() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glBlendEquationSeparateEXT
);
}
// --- [ glBlendEquationSeparateEXT ] ---
public static native void glBlendEquationSeparateEXT(@NativeType("GLenum") int modeRGB, @NativeType("GLenum") int modeAlpha);
}