37 lines
1.8 KiB
Java
37 lines
1.8 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 {
|
|
public static final int GL_FRAGMENT_PROGRAM_NV = 0x8870;
|
|
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) {
|
|
long function_pointer = GLContext.getCapabilities().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 glGetProgramNamedParameterNV(int id, ByteBuffer name, FloatBuffer params) {
|
|
long function_pointer = GLContext.getCapabilities().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);
|
|
}
|