70 lines
3.7 KiB
Java
70 lines
3.7 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 NVFragmentProgram extends NVProgram {
|
|
/**
|
|
* Accepted by the <cap> parameter of Disable, Enable, and IsEnabled, by the
|
|
* <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv, and GetDoublev,
|
|
* and by the <target> parameter of BindProgramNV, LoadProgramNV,
|
|
* ProgramLocalParameter4dARB, ProgramLocalParameter4dvARB,
|
|
* ProgramLocalParameter4fARB, ProgramLocalParameter4fvARB,
|
|
* GetProgramLocalParameterdvARB, and GetProgramLocalParameterfvARB:
|
|
*/
|
|
public static final int GL_FRAGMENT_PROGRAM_NV = 0x8870;
|
|
/**
|
|
* Accepted by the <pname> parameter of GetBooleanv, GetIntegerv, GetFloatv,
|
|
* and GetDoublev:
|
|
*/
|
|
public static final int GL_MAX_TEXTURE_COORDS_NV = 0x8871;
|
|
public static final int GL_MAX_TEXTURE_IMAGE_UNITS_NV = 0x8872;
|
|
public static final int GL_FRAGMENT_PROGRAM_BINDING_NV = 0x8873;
|
|
public static final int GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV = 0x8868;
|
|
|
|
private NVFragmentProgram() {
|
|
}
|
|
|
|
|
|
public static void glProgramNamedParameter4fNV(int id, ByteBuffer name, float x, float y, float z, float w) {
|
|
ContextCapabilities caps = GLContext.getCapabilities();
|
|
long function_pointer = caps.NV_fragment_program_glProgramNamedParameter4fNV_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
BufferChecks.checkDirect(name);
|
|
nglProgramNamedParameter4fNV(id, (name.remaining()), name, name.position(), x, y, z, w, function_pointer);
|
|
}
|
|
private static native void nglProgramNamedParameter4fNV(int id, int length, ByteBuffer name, int name_position, float x, float y, float z, float w, long function_pointer);
|
|
|
|
public static void glProgramNamedParameter4dNV(int id, ByteBuffer name, double x, double y, double z, double w) {
|
|
ContextCapabilities caps = GLContext.getCapabilities();
|
|
long function_pointer = caps.NV_fragment_program_glProgramNamedParameter4dNV_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
BufferChecks.checkDirect(name);
|
|
nglProgramNamedParameter4dNV(id, (name.remaining()), name, name.position(), x, y, z, w, function_pointer);
|
|
}
|
|
private static native void nglProgramNamedParameter4dNV(int id, int length, ByteBuffer name, int name_position, double x, double y, double z, double w, long function_pointer);
|
|
|
|
public static void glGetProgramNamedParameterNV(int id, ByteBuffer name, FloatBuffer params) {
|
|
ContextCapabilities caps = GLContext.getCapabilities();
|
|
long function_pointer = caps.NV_fragment_program_glGetProgramNamedParameterfvNV_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
BufferChecks.checkDirect(name);
|
|
BufferChecks.checkBuffer(params, 4);
|
|
nglGetProgramNamedParameterfvNV(id, (name.remaining()), name, name.position(), params, params.position(), function_pointer);
|
|
}
|
|
private static native void nglGetProgramNamedParameterfvNV(int id, int length, ByteBuffer name, int name_position, FloatBuffer params, int params_position, long function_pointer);
|
|
|
|
public static void glGetProgramNamedParameterNV(int id, ByteBuffer name, DoubleBuffer params) {
|
|
ContextCapabilities caps = GLContext.getCapabilities();
|
|
long function_pointer = caps.NV_fragment_program_glGetProgramNamedParameterdvNV_pointer;
|
|
BufferChecks.checkFunctionAddress(function_pointer);
|
|
BufferChecks.checkDirect(name);
|
|
BufferChecks.checkBuffer(params, 4);
|
|
nglGetProgramNamedParameterdvNV(id, (name.remaining()), name, name.position(), params, params.position(), function_pointer);
|
|
}
|
|
private static native void nglGetProgramNamedParameterdvNV(int id, int length, ByteBuffer name, int name_position, DoubleBuffer params, int params_position, long function_pointer);
|
|
}
|