lwjgl/src/generated/org/lwjgl/opengl/EXTBlendColor.java

35 lines
1.2 KiB
Java

/* MACHINE GENERATED FILE, DO NOT EDIT */
package org.lwjgl.opengl;
import org.lwjgl.LWJGLException;
import org.lwjgl.BufferChecks;
import java.nio.*;
public final class EXTBlendColor {
/**
*Accepted by the <sfactor> and <dfactor> parameters of BlendFunc.
*/
public static final int GL_CONSTANT_COLOR_EXT = 0x8001;
public static final int GL_ONE_MINUS_CONSTANT_COLOR_EXT = 0x8002;
public static final int GL_CONSTANT_ALPHA_EXT = 0x8003;
public static final int GL_ONE_MINUS_CONSTANT_ALPHA_EXT = 0x8004;
/**
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv,
* GetFloatv, and GetDoublev.
*/
public static final int GL_BLEND_COLOR_EXT = 0x8005;
private EXTBlendColor() {
}
public static void glBlendColorEXT(float red, float green, float blue, float alpha) {
ContextCapabilities caps = GLContext.getCapabilities();
long function_pointer = caps.EXT_blend_color_glBlendColorEXT_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBlendColorEXT(red, green, blue, alpha, function_pointer);
}
private static native void nglBlendColorEXT(float red, float green, float blue, float alpha, long function_pointer);
}