2005-02-15 06:05:36 -05:00
|
|
|
/* MACHINE GENERATED FILE, DO NOT EDIT */
|
2004-01-20 03:37:17 -05:00
|
|
|
|
2005-02-15 06:05:36 -05:00
|
|
|
#include <jni.h>
|
2004-01-20 03:37:17 -05:00
|
|
|
#include "extgl.h"
|
|
|
|
|
2005-02-15 06:05:36 -05:00
|
|
|
typedef void (APIENTRY *glFreeMemoryNVPROC) (GLvoid * pointer);
|
|
|
|
typedef GLvoid * (APIENTRY *glAllocateMemoryNVPROC) (GLint size, GLfloat readFrequency, GLfloat writeFrequency, GLfloat priority);
|
|
|
|
typedef void (APIENTRY *glFlushVertexArrayRangeNVPROC) ();
|
|
|
|
typedef void (APIENTRY *glVertexArrayRangeNVPROC) (GLsizei size, const GLvoid * pPointer);
|
2004-01-29 17:08:59 -05:00
|
|
|
|
2005-02-16 11:04:29 -05:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglFreeMemoryNV(JNIEnv *env, jclass clazz, jobject pointer, jint pointer_position, jlong function_pointer) {
|
2005-02-15 06:05:36 -05:00
|
|
|
GLvoid *pointer_address = ((GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pointer)) + pointer_position));
|
2005-02-16 11:04:29 -05:00
|
|
|
glFreeMemoryNVPROC glFreeMemoryNV = (glFreeMemoryNVPROC)((intptr_t)function_pointer);
|
2005-02-15 06:05:36 -05:00
|
|
|
glFreeMemoryNV(pointer_address);
|
2004-01-20 03:37:17 -05:00
|
|
|
}
|
|
|
|
|
2005-02-16 11:04:29 -05:00
|
|
|
JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglAllocateMemoryNV(JNIEnv *env, jclass clazz, jint size, jfloat readFrequency, jfloat writeFrequency, jfloat priority, jint result_size, jlong function_pointer) {
|
|
|
|
glAllocateMemoryNVPROC glAllocateMemoryNV = (glAllocateMemoryNVPROC)((intptr_t)function_pointer);
|
2005-02-15 06:05:36 -05:00
|
|
|
GLvoid * __result = glAllocateMemoryNV(size, readFrequency, writeFrequency, priority);
|
2005-02-16 11:04:29 -05:00
|
|
|
return safeNewBuffer(env, __result, result_size);
|
2004-01-20 03:37:17 -05:00
|
|
|
}
|
|
|
|
|
2005-02-16 11:04:29 -05:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglFlushVertexArrayRangeNV(JNIEnv *env, jclass clazz, jlong function_pointer) {
|
|
|
|
glFlushVertexArrayRangeNVPROC glFlushVertexArrayRangeNV = (glFlushVertexArrayRangeNVPROC)((intptr_t)function_pointer);
|
2005-02-15 06:05:36 -05:00
|
|
|
glFlushVertexArrayRangeNV();
|
2004-01-20 03:37:17 -05:00
|
|
|
}
|
|
|
|
|
2005-02-16 11:04:29 -05:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRangeNV(JNIEnv *env, jclass clazz, jint size, jobject pPointer, jint pPointer_position, jlong function_pointer) {
|
2005-02-15 06:05:36 -05:00
|
|
|
const GLvoid *pPointer_address = ((const GLvoid *)(((char *)(*env)->GetDirectBufferAddress(env, pPointer)) + pPointer_position));
|
2005-02-16 11:04:29 -05:00
|
|
|
glVertexArrayRangeNVPROC glVertexArrayRangeNV = (glVertexArrayRangeNVPROC)((intptr_t)function_pointer);
|
2005-02-15 06:05:36 -05:00
|
|
|
glVertexArrayRangeNV(size, pPointer_address);
|
2004-03-07 10:18:47 -05:00
|
|
|
}
|
|
|
|
|