Removed duplicate functions (based on NVIDIA's glext.h)

This commit is contained in:
Ioannis Tsakpinis 2006-11-15 18:46:22 +00:00
parent e6d6ddb921
commit 1bb95e94f4
4 changed files with 0 additions and 55 deletions

View File

@ -1040,9 +1040,6 @@ public class ContextCapabilities {
long NV_occlusion_query_glEndOcclusionQueryNV_pointer; long NV_occlusion_query_glEndOcclusionQueryNV_pointer;
long NV_occlusion_query_glGetOcclusionQueryuivNV_pointer; long NV_occlusion_query_glGetOcclusionQueryuivNV_pointer;
long NV_occlusion_query_glGetOcclusionQueryivNV_pointer; long NV_occlusion_query_glGetOcclusionQueryivNV_pointer;
long NV_parameter_buffer_object_glBindBufferRangeNV_pointer;
long NV_parameter_buffer_object_glBindBufferOffsetNV_pointer;
long NV_parameter_buffer_object_glBindBufferBaseNV_pointer;
long NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer; long NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer;
long NV_parameter_buffer_object_glProgramBufferParametersIivNV_pointer; long NV_parameter_buffer_object_glProgramBufferParametersIivNV_pointer;
long NV_parameter_buffer_object_glProgramBufferParametersIuivNV_pointer; long NV_parameter_buffer_object_glProgramBufferParametersIuivNV_pointer;
@ -2288,9 +2285,6 @@ public class ContextCapabilities {
private boolean NV_parameter_buffer_object_initNativeFunctionAddresses() { private boolean NV_parameter_buffer_object_initNativeFunctionAddresses() {
return return
(NV_parameter_buffer_object_glBindBufferRangeNV_pointer = GLContext.getFunctionAddress("glBindBufferRangeNV")) != 0 &&
(NV_parameter_buffer_object_glBindBufferOffsetNV_pointer = GLContext.getFunctionAddress("glBindBufferOffsetNV")) != 0 &&
(NV_parameter_buffer_object_glBindBufferBaseNV_pointer = GLContext.getFunctionAddress("glBindBufferBaseNV")) != 0 &&
(NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer = GLContext.getFunctionAddress("glProgramBufferParametersfvNV")) != 0 && (NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer = GLContext.getFunctionAddress("glProgramBufferParametersfvNV")) != 0 &&
(NV_parameter_buffer_object_glProgramBufferParametersIivNV_pointer = GLContext.getFunctionAddress("glProgramBufferParametersIivNV")) != 0 && (NV_parameter_buffer_object_glProgramBufferParametersIivNV_pointer = GLContext.getFunctionAddress("glProgramBufferParametersIivNV")) != 0 &&
(NV_parameter_buffer_object_glProgramBufferParametersIuivNV_pointer = GLContext.getFunctionAddress("glProgramBufferParametersIuivNV")) != 0; (NV_parameter_buffer_object_glProgramBufferParametersIuivNV_pointer = GLContext.getFunctionAddress("glProgramBufferParametersIuivNV")) != 0;

View File

@ -26,27 +26,6 @@ public final class NVParameterBufferObject {
} }
public static void glBindBufferRangeNV(int target, int index, int buffer, long offset, long size) {
long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glBindBufferRangeNV_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBindBufferRangeNV(target, index, buffer, offset, size, function_pointer);
}
private static native void nglBindBufferRangeNV(int target, int index, int buffer, long offset, long size, long function_pointer);
public static void glBindBufferOffsetNV(int target, int index, int buffer, long offset) {
long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glBindBufferOffsetNV_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBindBufferOffsetNV(target, index, buffer, offset, function_pointer);
}
private static native void nglBindBufferOffsetNV(int target, int index, int buffer, long offset, long function_pointer);
public static void glBindBufferBaseNV(int target, int index, int buffer) {
long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glBindBufferBaseNV_pointer;
BufferChecks.checkFunctionAddress(function_pointer);
nglBindBufferBaseNV(target, index, buffer, function_pointer);
}
private static native void nglBindBufferBaseNV(int target, int index, int buffer, long function_pointer);
public static void glProgramBufferParametersNV(int target, int buffer, int index, FloatBuffer params) { public static void glProgramBufferParametersNV(int target, int buffer, int index, FloatBuffer params) {
long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer; long function_pointer = GLContext.getCapabilities().NV_parameter_buffer_object_glProgramBufferParametersfvNV_pointer;
BufferChecks.checkFunctionAddress(function_pointer); BufferChecks.checkFunctionAddress(function_pointer);

View File

@ -3,28 +3,10 @@
#include <jni.h> #include <jni.h>
#include "extgl.h" #include "extgl.h"
typedef void (APIENTRY *glBindBufferRangeNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset, GLsizeiptr size);
typedef void (APIENTRY *glBindBufferOffsetNVPROC) (GLenum target, GLuint index, GLuint buffer, GLintptr offset);
typedef void (APIENTRY *glBindBufferBaseNVPROC) (GLenum target, GLuint index, GLuint buffer);
typedef void (APIENTRY *glProgramBufferParametersfvNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat * params); typedef void (APIENTRY *glProgramBufferParametersfvNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLfloat * params);
typedef void (APIENTRY *glProgramBufferParametersIivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint * params); typedef void (APIENTRY *glProgramBufferParametersIivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLsizei count, const GLint * params);
typedef void (APIENTRY *glProgramBufferParametersIuivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLuint count, const GLuint * params); typedef void (APIENTRY *glProgramBufferParametersIuivNVPROC) (GLenum target, GLuint buffer, GLuint index, GLuint count, const GLuint * params);
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglBindBufferRangeNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong size, jlong function_pointer) {
glBindBufferRangeNVPROC glBindBufferRangeNV = (glBindBufferRangeNVPROC)((intptr_t)function_pointer);
glBindBufferRangeNV(target, index, buffer, offset, size);
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglBindBufferOffsetNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong offset, jlong function_pointer) {
glBindBufferOffsetNVPROC glBindBufferOffsetNV = (glBindBufferOffsetNVPROC)((intptr_t)function_pointer);
glBindBufferOffsetNV(target, index, buffer, offset);
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglBindBufferBaseNV(JNIEnv *env, jclass clazz, jint target, jint index, jint buffer, jlong function_pointer) {
glBindBufferBaseNVPROC glBindBufferBaseNV = (glBindBufferBaseNVPROC)((intptr_t)function_pointer);
glBindBufferBaseNV(target, index, buffer);
}
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersfvNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) { JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVParameterBufferObject_nglProgramBufferParametersfvNV(JNIEnv *env, jclass clazz, jint target, jint buffer, jint index, jint count, jobject params, jint params_position, jlong function_pointer) {
const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position; const GLfloat *params_address = ((const GLfloat *)(*env)->GetDirectBufferAddress(env, params)) + params_position;
glProgramBufferParametersfvNVPROC glProgramBufferParametersfvNV = (glProgramBufferParametersfvNVPROC)((intptr_t)function_pointer); glProgramBufferParametersfvNVPROC glProgramBufferParametersfvNV = (glProgramBufferParametersfvNVPROC)((intptr_t)function_pointer);

View File

@ -52,12 +52,6 @@ public interface NV_parameter_buffer_object {
int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3; int GL_GEOMETRY_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA3;
int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4; int GL_FRAGMENT_PROGRAM_PARAMETER_BUFFER_NV = 0x8DA4;
void glBindBufferRangeNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset, @GLsizeiptr long size);
void glBindBufferOffsetNV(@GLenum int target, @GLuint int index, @GLuint int buffer, @GLintptr long offset);
void glBindBufferBaseNV(@GLenum int target, @GLuint int index, @GLuint int buffer);
@StripPostfix("params") @StripPostfix("params")
void glProgramBufferParametersfvNV(@GLenum int target, @GLuint int buffer, @GLuint int index, void glProgramBufferParametersfvNV(@GLenum int target, @GLuint int buffer, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const FloatBuffer params); @AutoSize(value = "params", expression = " >> 2") @GLsizei int count, @Const FloatBuffer params);
@ -70,8 +64,4 @@ public interface NV_parameter_buffer_object {
void glProgramBufferParametersIuivNV(@GLenum int target, @GLuint int buffer, @GLuint int index, void glProgramBufferParametersIuivNV(@GLenum int target, @GLuint int buffer, @GLuint int index,
@AutoSize(value = "params", expression = " >> 2") @GLuint int count, @Const @GLuint IntBuffer params); @AutoSize(value = "params", expression = " >> 2") @GLuint int count, @Const @GLuint IntBuffer params);
// TODO: This is weird and breaks the generator, re-examine when the spec's final version is out
//@StripPostfix("data")
//void glGetIntegerIndexedvEXT(@GLenum int value, @GLuint int index, @Check("4") @GLboolean ByteBuffer data);
} }