org.lwjgl.opengl.EXTBlendFuncSeparate Maven / Gradle / Ivy
/*
* 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_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(@NativeType("GLenum") int sfactorRGB, @NativeType("GLenum") int dfactorRGB, @NativeType("GLenum") int sfactorAlpha, @NativeType("GLenum") int dfactorAlpha);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy