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"
|
2004-03-07 11:01:45 -05:00
|
|
|
|
2005-02-15 06:05:36 -05:00
|
|
|
typedef void (APIENTRY *glVertexWeightfEXTPROC) (GLfloat weight);
|
2005-06-29 03:39:28 -04:00
|
|
|
typedef void (APIENTRY *glVertexWeightPointerEXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid * pPointer);
|
|
|
|
|
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightfEXT(JNIEnv *env, jclass clazz, jfloat weight, jlong function_pointer) {
|
|
|
|
glVertexWeightfEXTPROC glVertexWeightfEXT = (glVertexWeightfEXTPROC)((intptr_t)function_pointer);
|
|
|
|
glVertexWeightfEXT(weight);
|
|
|
|
}
|
2004-01-29 17:08:59 -05:00
|
|
|
|
2005-02-16 11:04:29 -05:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXT(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, 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
|
|
|
glVertexWeightPointerEXTPROC glVertexWeightPointerEXT = (glVertexWeightPointerEXTPROC)((intptr_t)function_pointer);
|
2005-02-15 06:05:36 -05:00
|
|
|
glVertexWeightPointerEXT(size, type, stride, pPointer_address);
|
2004-01-20 03:37:17 -05:00
|
|
|
}
|
|
|
|
|
2006-02-26 06:44:34 -05:00
|
|
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXTBO(JNIEnv *env, jclass clazz, jint size, jint type, jint stride, jlong pPointer_buffer_offset, jlong function_pointer) {
|
2005-02-15 06:05:36 -05:00
|
|
|
const GLvoid *pPointer_address = ((const GLvoid *)offsetToPointer(pPointer_buffer_offset));
|
2005-02-16 11:04:29 -05:00
|
|
|
glVertexWeightPointerEXTPROC glVertexWeightPointerEXT = (glVertexWeightPointerEXTPROC)((intptr_t)function_pointer);
|
2005-02-15 06:05:36 -05:00
|
|
|
glVertexWeightPointerEXT(size, type, stride, pPointer_address);
|
2004-01-20 03:37:17 -05:00
|
|
|
}
|
|
|
|
|