org.lwjgl.opengl.EXTBlendColor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lwjgl-opengl Show documentation
Show all versions of lwjgl-opengl Show documentation
The most widely adopted 2D and 3D graphics API in the industry, bringing thousands of applications to a wide variety of computer platforms.
/*
* 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_color extension.
*
* Blending capability is extended by defining a constant color that can be included in blending equations. A typical usage is blending two RGB images.
* Without the constant blend factor, one image must have an alpha channel with each pixel set to the desired blend factor.
*
* Promoted to core in {@link GL14 OpenGL 1.4}.
*/
public class EXTBlendColor {
/** Accepted by the {@code sfactor} and {@code dfactor} parameters of BlendFunc. */
public static final int
GL_CONSTANT_COLOR_EXT = 0x8001,
GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002,
GL_CONSTANT_ALPHA_EXT = 0x8003,
GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004;
/** Accepted by the {@code pname} parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev. */
public static final int GL_BLEND_COLOR_EXT = 0x8005;
static { GL.initialize(); }
protected EXTBlendColor() {
throw new UnsupportedOperationException();
}
static boolean isAvailable(GLCapabilities caps) {
return checkFunctions(
caps.glBlendColorEXT
);
}
// --- [ glBlendColorEXT ] ---
public static native void glBlendColorEXT(@NativeType("GLfloat") float red, @NativeType("GLfloat") float green, @NativeType("GLfloat") float blue, @NativeType("GLfloat") float alpha);
}