org.lwjgl.opengl.EXTBlendFuncSeparate Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.lwjgl.opengl Show documentation
Show all versions of org.lwjgl.opengl Show documentation
LWJGL OSGi bundle (OpenGL bindings)
/*
* Copyright LWJGL. All rights reserved.
* License terms: https://www.lwjgl.org/license
* MACHINE GENERATED FILE, DO NOT EDIT
*/
package org.lwjgl.opengl;
import static org.lwjgl.system.Checks.*;
/**
* Native bindings to the EXT_blend_func_separate extension.
*
* Blending capability is extended by defining a function that allows independent setting of the RGB and alpha blend factors for blend operations that
* require source and destination blend factors. It is not always desired that the blending used for RGB is also applied to alpha.
*
* Promoted to core in {@link GL14 OpenGL 1.4}.
*/
public class EXTBlendFuncSeparate {
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int
GL_BLEND_DST_RGB_EXT = 0x80C8,
GL_BLEND_SRC_RGB_EXT = 0x80C9,
GL_BLEND_DST_ALPHA_EXT = 0x80CA,
GL_BLEND_SRC_ALPHA_EXT = 0x80CB;
static { GL.initialize(); }
protected EXTBlendFuncSeparate() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glBlendFuncSeparateEXT
);
}
// --- [ glBlendFuncSeparateEXT ] ---
public static native void glBlendFuncSeparateEXT(int sfactorRGB, int dfactorRGB, int sfactorAlpha, int dfactorAlpha);
}