diff --git a/src/java/org/lwjgl/opengl/GL11.java b/src/java/org/lwjgl/opengl/GL11.java index 2f2b34d4..2ed2928b 100644 --- a/src/java/org/lwjgl/opengl/GL11.java +++ b/src/java/org/lwjgl/opengl/GL11.java @@ -1035,6 +1035,12 @@ public final class GL11 { } private static native void nglGetTexImage(int target, int level, int format, int type, Buffer pixels, int pixels_offset); + public static void glGetTexGen(int coord, int pname, IntBuffer params) { + BufferChecks.checkBuffer(params); + nglGetTexGeniv(coord, pname, params, params.position()); + } + private static native void nglGetTexGeniv(int coord, int pname, IntBuffer params, int params_offset); + public static void glGetTexGen(int coord, int pname, FloatBuffer params) { BufferChecks.checkBuffer(params); nglGetTexGenfv(coord, pname, params, params.position()); diff --git a/src/java/org/lwjgl/opengl/NVVertexProgram.java b/src/java/org/lwjgl/opengl/NVVertexProgram.java index df3aea75..a4b0b0b9 100644 --- a/src/java/org/lwjgl/opengl/NVVertexProgram.java +++ b/src/java/org/lwjgl/opengl/NVVertexProgram.java @@ -469,4 +469,48 @@ public final class NVVertexProgram extends NVProgram { public static native void glVertexAttrib4ubNV(int index, byte x, byte y, byte z, byte w); + public static void glVertexAttribs1NV(int index, int n, ShortBuffer v) { + nglVertexAttribs1svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs1svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs1NV(int index, int n, FloatBuffer v) { + nglVertexAttribs1fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs1fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs2NV(int index, int n, ShortBuffer v) { + nglVertexAttribs2svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs2svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs2NV(int index, int n, FloatBuffer v) { + nglVertexAttribs2fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs2fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs3NV(int index, int n, ShortBuffer v) { + nglVertexAttribs3svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs3svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs3NV(int index, int n, FloatBuffer v) { + nglVertexAttribs3fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs3fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs4NV(int index, int n, ShortBuffer v) { + nglVertexAttribs4svNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs4svNV(int index, int n, ShortBuffer v, int v_offset); + + public static void glVertexAttribs4NV(int index, int n, FloatBuffer v) { + nglVertexAttribs4fvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs4fvNV(int index, int n, FloatBuffer v, int v_offset); + + public static void glVertexAttribs4uNV(int index, int n, ByteBuffer v) { + nglVertexAttribs4ubvNV(index, n, v, v.position()); + } + private static native void nglVertexAttribs4ubvNV(int index, int n, ByteBuffer v, int v_offset); } diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBImaging.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBImaging.cpp index 697d8f8c..5964f0ef 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBImaging.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBImaging.cpp @@ -39,7 +39,6 @@ * @version $Revision$ */ -#include "org_lwjgl_opengl_ARBImaging.h" #include "checkGLerror.h" #include "extgl.h" @@ -113,56 +112,14 @@ static glMinmaxPROC glMinmax; static glResetHistogramPROC glResetHistogram; static glResetMinmaxPROC glResetMinmax; -void extgl_InitARBImaging(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_imaging) - return; - glBlendColor = (glBlendColorPROC) extgl_GetProcAddress("glBlendColor"); - glBlendEquation = (glBlendEquationPROC) extgl_GetProcAddress("glBlendEquation"); - glColorTable = (glColorTablePROC) extgl_GetProcAddress("glColorTable"); - glColorTableParameterfv = (glColorTableParameterfvPROC) extgl_GetProcAddress("glColorTableParameterfv"); - glColorTableParameteriv = (glColorTableParameterivPROC) extgl_GetProcAddress("glColorTableParameteriv"); - glCopyColorTable = (glCopyColorTablePROC) extgl_GetProcAddress("glCopyColorTable"); - glGetColorTable = (glGetColorTablePROC) extgl_GetProcAddress("glGetColorTable"); - glGetColorTableParameterfv = (glGetColorTableParameterfvPROC) extgl_GetProcAddress("glGetColorTableParameterfv"); - glGetColorTableParameteriv = (glGetColorTableParameterivPROC) extgl_GetProcAddress("glGetColorTableParameteriv"); - glColorSubTable = (glColorSubTablePROC) extgl_GetProcAddress("glColorSubTable"); - glCopyColorSubTable = (glCopyColorSubTablePROC) extgl_GetProcAddress("glCopyColorSubTable"); - glConvolutionFilter1D = (glConvolutionFilter1DPROC) extgl_GetProcAddress("glConvolutionFilter1D"); - glConvolutionFilter2D = (glConvolutionFilter2DPROC) extgl_GetProcAddress("glConvolutionFilter2D"); - glConvolutionParameterf = (glConvolutionParameterfPROC) extgl_GetProcAddress("glConvolutionParameterf"); - glConvolutionParameterfv = (glConvolutionParameterfvPROC) extgl_GetProcAddress("glConvolutionParameterfv"); - glConvolutionParameteri = (glConvolutionParameteriPROC) extgl_GetProcAddress("glConvolutionParameteri"); - glConvolutionParameteriv = (glConvolutionParameterivPROC) extgl_GetProcAddress("glConvolutionParameteriv"); - glCopyConvolutionFilter1D = (glCopyConvolutionFilter1DPROC) extgl_GetProcAddress("glCopyConvolutionFilter1D"); - glCopyConvolutionFilter2D = (glCopyConvolutionFilter2DPROC) extgl_GetProcAddress("glCopyConvolutionFilter2D"); - glGetConvolutionFilter = (glGetConvolutionFilterPROC) extgl_GetProcAddress("glGetConvolutionFilter"); - glGetConvolutionParameterfv = (glGetConvolutionParameterfvPROC) extgl_GetProcAddress("glGetConvolutionParameterfv"); - glGetConvolutionParameteriv = (glGetConvolutionParameterivPROC) extgl_GetProcAddress("glGetConvolutionParameteriv"); - glGetSeparableFilter = (glGetSeparableFilterPROC) extgl_GetProcAddress("glGetSeparableFilter"); - glSeparableFilter2D = (glSeparableFilter2DPROC) extgl_GetProcAddress("glSeparableFilter2D"); - glGetHistogram = (glGetHistogramPROC) extgl_GetProcAddress("glGetHistogram"); - glGetHistogramParameterfv = (glGetHistogramParameterfvPROC) extgl_GetProcAddress("glGetHistogramParameterfv"); - glGetHistogramParameteriv = (glGetHistogramParameterivPROC) extgl_GetProcAddress("glGetHistogramParameteriv"); - glGetMinmax = (glGetMinmaxPROC) extgl_GetProcAddress("glGetMinmax"); - glGetMinmaxParameterfv = (glGetMinmaxParameterfvPROC) extgl_GetProcAddress("glGetMinmaxParameterfv"); - glGetMinmaxParameteriv = (glGetMinmaxParameterivPROC) extgl_GetProcAddress("glGetMinmaxParameteriv"); - glHistogram = (glHistogramPROC) extgl_GetProcAddress("glHistogram"); - glMinmax = (glMinmaxPROC) extgl_GetProcAddress("glMinmax"); - glResetHistogram = (glResetHistogramPROC) extgl_GetProcAddress("glResetHistogram"); - glResetMinmax = (glResetMinmaxPROC) extgl_GetProcAddress("glResetMinmax"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_imaging) -} - /* * Class: org_lwjgl_opengl_ARBImaging * Method: glColorTable * Signature: (IIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTable +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTable (JNIEnv * env, jclass clazz, jint target, jint internalFormat, jint width, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glColorTable) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glColorTable(target, internalFormat, width, format, type, address); CHECK_GL_ERROR @@ -173,10 +130,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTable * Method: glColorSubTable * Signature: (IIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTable +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTable (JNIEnv * env, jclass clazz, jint target, jint start, jint count, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glColorSubTable) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glColorSubTable(target, start, count, format, type, address); CHECK_GL_ERROR @@ -187,10 +143,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTable * Method: glGetColorTable * Signature: (IIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTable +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTable (JNIEnv * env, jclass clazz, jint target, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glGetColorTable) void *address = (void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glGetColorTable(target, format, type, address); CHECK_GL_ERROR @@ -201,10 +156,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTable * Method: glGetColorTableParameteriv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameteriv (JNIEnv * env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetColorTableParameteriv) GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetColorTableParameteriv(target, pname, address); CHECK_GL_ERROR @@ -215,10 +169,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParamete * Method: glGetColorTableParameterfv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameterfv (JNIEnv * env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetColorTableParameterfv) GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetColorTableParameterfv(target, pname, address); CHECK_GL_ERROR @@ -229,10 +182,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParamete * Method: glColorTableParameteriv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameteriv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glColorTableParameteriv) const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glColorTableParameteriv(target, pname, address); CHECK_GL_ERROR @@ -243,10 +195,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameteriv * Method: glColorTableParameterfv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameterfv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glColorTableParameterfv) const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glColorTableParameterfv(target, pname, address); CHECK_GL_ERROR @@ -258,10 +209,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameterfv * Method: glCopyColorSubTable * Signature: (IIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorSubTable +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorSubTable (JNIEnv *env, jclass clazz, jint target, jint start, jint x, jint y, jint width) { - CHECK_EXISTS(glCopyColorSubTable) glCopyColorSubTable(target, start, x, y, width); CHECK_GL_ERROR } @@ -272,10 +222,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorSubTable * Method: glCopyColorTable * Signature: (IIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorTable +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorTable (JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width) { - CHECK_EXISTS(glCopyColorTable) glCopyColorTable(target, internalformat, x, y, width); CHECK_GL_ERROR } @@ -286,10 +235,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorTable * Method: glBlendEquation * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendEquation +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendEquation (JNIEnv *env, jclass clazz, jint mode) { - CHECK_EXISTS(glBlendEquation) glBlendEquation(mode); CHECK_GL_ERROR } @@ -298,9 +246,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendEquation * Class: org_lwjgl_opengl_ARBImaging * Method: glBlendColor */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { - CHECK_EXISTS(glBlendColor) glBlendColor((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); CHECK_GL_ERROR } @@ -310,10 +257,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendColor(JNIEnv * en * Method: glHistogram * Signature: (IIIZ)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glHistogram +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glHistogram (JNIEnv *env, jclass clazz, jint target, jint width, jint internalformat, jboolean sink) { - CHECK_EXISTS(glHistogram) glHistogram(target, width, internalformat, sink); CHECK_GL_ERROR } @@ -323,10 +269,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glHistogram * Method: glResetHistogram * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetHistogram +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetHistogram (JNIEnv *env, jclass clazz, jint target) { - CHECK_EXISTS(glResetHistogram) glResetHistogram(target); CHECK_GL_ERROR } @@ -336,10 +281,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetHistogram * Method: glGetHistogram * Signature: (IZIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogram +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogram (JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glGetHistogram) void *address = (void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glGetHistogram(target, reset, format, type, address); CHECK_GL_ERROR @@ -350,10 +294,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogram * Method: glGetHistogramParameterfv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameterfv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetHistogramParameterfv) GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetHistogramParameterfv(target, pname, address); CHECK_GL_ERROR @@ -364,10 +307,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameter * Method: glGetHistogramParameteriv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameteriv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetHistogramParameteriv) GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetHistogramParameteriv(target, pname, address); CHECK_GL_ERROR @@ -378,10 +320,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameter * Method: glMinmax * Signature: (IIZ)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glMinmax +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glMinmax (JNIEnv *env, jclass clazz, jint target, jint internalformat, jboolean sink) { - CHECK_EXISTS(glMinmax) glMinmax(target, internalformat, sink); CHECK_GL_ERROR } @@ -391,10 +332,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glMinmax * Method: glResetMinmax * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetMinmax +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetMinmax (JNIEnv *env, jclass clazz, jint target) { - CHECK_EXISTS(glResetMinmax) glResetMinmax(target); CHECK_GL_ERROR } @@ -404,10 +344,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetMinmax * Method: glGetMinmax * Signature: (IZIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmax +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmax (JNIEnv *env, jclass clazz, jint target, jboolean reset, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glGetMinmax) void *address = (void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glGetMinmax(target, reset, format, type, address); CHECK_GL_ERROR @@ -418,10 +357,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmax * Method: glGetMinmaxParameterfv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameterfv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetMinmaxParameterfv) GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetMinmaxParameterfv(target, pname, address); CHECK_GL_ERROR @@ -432,10 +370,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameterfv * Method: glGetMinmaxParameteriv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameteriv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetMinmaxParameteriv) GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetMinmaxParameteriv(target, pname, address); CHECK_GL_ERROR @@ -446,10 +383,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameteriv * Method: glConvolutionFilter1D * Signature: (IIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1D (JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glConvolutionFilter1D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glConvolutionFilter1D(target, internalformat, width, format, type, address); CHECK_GL_ERROR @@ -460,10 +396,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1D * Method: glConvolutionFilter2D * Signature: (IIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2D (JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glConvolutionFilter2D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glConvolutionFilter2D(target, internalformat, width, height, format, type, address); CHECK_GL_ERROR @@ -474,10 +409,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2D * Method: glConvolutionParameterf * Signature: (IIF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameterf +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameterf (JNIEnv *env, jclass clazz, jint target, jint pname, jfloat params) { - CHECK_EXISTS(glConvolutionParameterf) glConvolutionParameterf(target, pname, params); CHECK_GL_ERROR } @@ -487,10 +421,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameterf * Method: glConvolutionParameterfv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterfv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glConvolutionParameterfv) const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glConvolutionParameterfv(target, pname, address); CHECK_GL_ERROR @@ -501,10 +434,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterf * Method: glConvolutionParameteri * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameteri +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameteri (JNIEnv *env, jclass clazz, jint target, jint pname, jint params) { - CHECK_EXISTS(glConvolutionParameteri) glConvolutionParameteri(target, pname, params); CHECK_GL_ERROR } @@ -514,10 +446,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameteri * Method: glConvolutionParameteriv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteriv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glConvolutionParameteriv) const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glConvolutionParameteriv(target, pname, address); CHECK_GL_ERROR @@ -528,10 +459,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteri * Method: glCopyConvolutionFilter1D * Signature: (IIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter1D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter1D (JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width) { - CHECK_EXISTS(glCopyConvolutionFilter1D) glCopyConvolutionFilter1D(target, internalformat, x, y, width); CHECK_GL_ERROR } @@ -541,10 +471,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter1 * Method: glCopyConvolutionFilter2D * Signature: (IIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter2D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter2D (JNIEnv *env, jclass clazz, jint target, jint internalformat, jint x, jint y, jint width, jint height) { - CHECK_EXISTS(glCopyConvolutionFilter2D) glCopyConvolutionFilter2D(target, internalformat, x, y, width, height); CHECK_GL_ERROR } @@ -554,10 +483,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter2 * Method: glGetConvolutionFilter * Signature: (IIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilter +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilter (JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glGetConvolutionFilter) void *address = (void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glGetConvolutionFilter(target, format, type, address); CHECK_GL_ERROR @@ -568,10 +496,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilter * Method: glGetConvolutionParameterfv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameterfv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetConvolutionParameterfv) GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetConvolutionParameterfv(target, pname, address); CHECK_GL_ERROR @@ -582,10 +509,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParamet * Method: glGetConvolutionParameteriv * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameteriv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject buffer, jint offset) { - CHECK_EXISTS(glGetConvolutionParameteriv) GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetConvolutionParameteriv(target, pname, address); CHECK_GL_ERROR @@ -596,10 +522,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParamet * Method: glSeparableFilter2D * Signature: (IIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2D (JNIEnv *env, jclass clazz, jint target, jint internalformat, jint width, jint height, jint format, jint type, jobject row, jint row_offset, jobject column, jint column_offset) { - CHECK_EXISTS(glSeparableFilter2D) const void *address = (const void *)(row_offset + (const GLbyte *)env->GetDirectBufferAddress(row)); const void *address2 = (const void *)(column_offset + (const GLbyte *)env->GetDirectBufferAddress(column)); glSeparableFilter2D(target, internalformat, width, height, format, type, address, address2); @@ -611,13 +536,57 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2D * Method: glGetSeparableFilter * Signature: (IIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetSeparableFilter +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetSeparableFilter (JNIEnv *env, jclass clazz, jint target, jint format, jint type, jobject row, jint row_offset, jobject column, jint column_offset, jobject span, jint span_offset) { - CHECK_EXISTS(glGetSeparableFilter) void *address = (void *)(row_offset + (GLbyte *)env->GetDirectBufferAddress(row)); void *address2 = (void *)(column_offset + (GLbyte *)env->GetDirectBufferAddress(column)); void *address3 = (void *)(span_offset + (GLbyte *)env->GetDirectBufferAddress(span)); glGetSeparableFilter(target, format, type, address, address2, address3); CHECK_GL_ERROR } + +void extgl_InitARBImaging(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglColorTable", "(IIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglColorTable, "glColorTable", (void**)&glColorTable}, + {"nglColorSubTable", "(IIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglColorSubTable, "glColorSubTable", (void**)&glColorSubTable}, + {"nglColorTableParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameteriv, "glColorTableParameteriv", (void**)&glColorTableParameteriv}, + {"nglColorTableParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameterfv, "glColorTableParameterfv", (void**)&glColorTableParameterfv}, + {"glCopyColorSubTable", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glCopyColorSubTable, "glCopyColorSubTable", (void**)&glCopyColorSubTable}, + {"glCopyColorTable", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glCopyColorTable, "glCopyColorTable", (void**)&glCopyColorTable}, + {"nglGetColorTable", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetColorTable, "glGetColorTable", (void**)&glGetColorTable}, + {"nglGetColorTableParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameteriv, "glGetColorTableParameteriv", (void**)&glGetColorTableParameteriv}, + {"nglGetColorTableParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameterfv, "glGetColorTableParameterfv", (void**)&glGetColorTableParameterfv}, + {"glBlendEquation", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glBlendEquation, "glBlendEquation", (void**)&glBlendEquation}, + {"glBlendColor", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glBlendColor, "glBlendColor", (void**)&glBlendColor}, + {"glHistogram", "(IIIZ)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glHistogram, "glHistogram", (void**)&glHistogram}, + {"glResetHistogram", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glResetHistogram, "glResetHistogram", (void**)&glResetHistogram}, + {"nglGetHistogram", "(IZIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetHistogram, "glGetHistogram", (void**)&glGetHistogram}, + {"nglGetHistogramParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameterfv, "glGetHistogramParameterfv", (void**)&glGetHistogramParameterfv}, + {"nglGetHistogramParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameteriv, "glGetHistogramParameteriv", (void**)&glGetHistogramParameteriv}, + {"glMinmax", "(IIZ)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glMinmax, "glMinmax", (void**)&glMinmax}, + {"glResetMinmax", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glResetMinmax, "glResetMinmax", (void**)&glResetMinmax}, + {"nglGetMinmax", "(IZIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetMinmax, "glGetMinmax", (void**)&glGetMinmax}, + {"nglGetMinmaxParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameterfv, "glGetMinmaxParameterfv", (void**)&glGetMinmaxParameterfv}, + {"nglGetMinmaxParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameteriv, "glGetMinmaxParameteriv", (void**)&glGetMinmaxParameteriv}, + {"nglConvolutionFilter1D", "(IIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1D, "glConvolutionFilter1D", (void**)&glConvolutionFilter1D}, + {"nglConvolutionFilter2D", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2D, "glConvolutionFilter2D", (void**)&glConvolutionFilter2D}, + {"glConvolutionParameterf", "(IIF)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameterf, "glConvolutionParameterf", (void**)&glConvolutionParameterf}, + {"nglConvolutionParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterfv, "glConvolutionParameterfv", (void**)&glConvolutionParameterfv}, + {"glConvolutionParameteri", "(III)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameteri, "glConvolutionParameteri", (void**)&glConvolutionParameteri}, + {"nglConvolutionParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteriv, "glConvolutionParameteriv", (void**)&glConvolutionParameteriv}, + {"glCopyConvolutionFilter1D", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter1D, "glCopyConvolutionFilter1D", (void**)&glCopyConvolutionFilter1D}, + {"glCopyConvolutionFilter2D", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter2D, "glCopyConvolutionFilter2D", (void**)&glCopyConvolutionFilter2D}, + {"nglGetConvolutionFilter", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilter, "glGetConvolutionFilter", (void**)&glGetConvolutionFilter}, + {"nglGetConvolutionParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameterfv, "glGetConvolutionParameterfv", (void**)&glGetConvolutionParameterfv}, + {"nglGetConvolutionParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameteriv, "glGetConvolutionParameteriv", (void**)&glGetConvolutionParameteriv}, + {"nglSeparableFilter2D", "(IIIIIILjava/nio/Buffer;ILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2D, "glSeparableFilter2D", (void**)&glSeparableFilter2D}, + {"nglGetSeparableFilter", "(IIILjava/nio/Buffer;ILjava/nio/Buffer;ILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBImaging_nglGetSeparableFilter, "glGetSeparableFilter", (void**)&glGetSeparableFilter} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBImaging"); + if (extgl_Extensions.GL_ARB_imaging) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_imaging", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBImaging.h b/src/native/common/arb/org_lwjgl_opengl_ARBImaging.h deleted file mode 100644 index f7595fda..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBImaging.h +++ /dev/null @@ -1,435 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_ARBImaging */ - -#ifndef _Included_org_lwjgl_opengl_ARBImaging -#define _Included_org_lwjgl_opengl_ARBImaging -#ifdef __cplusplus -extern "C" { -#endif -#undef org_lwjgl_opengl_ARBImaging_GL_CONSTANT_COLOR -#define org_lwjgl_opengl_ARBImaging_GL_CONSTANT_COLOR 32769L -#undef org_lwjgl_opengl_ARBImaging_GL_ONE_MINUS_CONSTANT_COLOR -#define org_lwjgl_opengl_ARBImaging_GL_ONE_MINUS_CONSTANT_COLOR 32770L -#undef org_lwjgl_opengl_ARBImaging_GL_CONSTANT_ALPHA -#define org_lwjgl_opengl_ARBImaging_GL_CONSTANT_ALPHA 32771L -#undef org_lwjgl_opengl_ARBImaging_GL_ONE_MINUS_CONSTANT_ALPHA -#define org_lwjgl_opengl_ARBImaging_GL_ONE_MINUS_CONSTANT_ALPHA 32772L -#undef org_lwjgl_opengl_ARBImaging_GL_BLEND_COLOR -#define org_lwjgl_opengl_ARBImaging_GL_BLEND_COLOR 32773L -#undef org_lwjgl_opengl_ARBImaging_GL_FUNC_ADD -#define org_lwjgl_opengl_ARBImaging_GL_FUNC_ADD 32774L -#undef org_lwjgl_opengl_ARBImaging_GL_MIN -#define org_lwjgl_opengl_ARBImaging_GL_MIN 32775L -#undef org_lwjgl_opengl_ARBImaging_GL_MAX -#define org_lwjgl_opengl_ARBImaging_GL_MAX 32776L -#undef org_lwjgl_opengl_ARBImaging_GL_BLEND_EQUATION -#define org_lwjgl_opengl_ARBImaging_GL_BLEND_EQUATION 32777L -#undef org_lwjgl_opengl_ARBImaging_GL_FUNC_SUBTRACT -#define org_lwjgl_opengl_ARBImaging_GL_FUNC_SUBTRACT 32778L -#undef org_lwjgl_opengl_ARBImaging_GL_FUNC_REVERSE_SUBTRACT -#define org_lwjgl_opengl_ARBImaging_GL_FUNC_REVERSE_SUBTRACT 32779L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_MATRIX -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_MATRIX 32945L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_MATRIX_STACK_DEPTH -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_MATRIX_STACK_DEPTH 32946L -#undef org_lwjgl_opengl_ARBImaging_GL_MAX_COLOR_MATRIX_STACK_DEPTH -#define org_lwjgl_opengl_ARBImaging_GL_MAX_COLOR_MATRIX_STACK_DEPTH 32947L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_RED_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_RED_SCALE 32948L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_GREEN_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_GREEN_SCALE 32949L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_BLUE_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_BLUE_SCALE 32950L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_ALPHA_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_ALPHA_SCALE 32951L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_RED_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_RED_BIAS 32952L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_GREEN_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_GREEN_BIAS 32953L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_BLUE_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_BLUE_BIAS 32954L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_ALPHA_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_ALPHA_BIAS 32955L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE 32976L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_COLOR_TABLE -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_COLOR_TABLE 32977L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_COLOR_TABLE -#define org_lwjgl_opengl_ARBImaging_GL_POST_COLOR_MATRIX_COLOR_TABLE 32978L -#undef org_lwjgl_opengl_ARBImaging_GL_PROXY_COLOR_TABLE -#define org_lwjgl_opengl_ARBImaging_GL_PROXY_COLOR_TABLE 32979L -#undef org_lwjgl_opengl_ARBImaging_GL_PROXY_POST_CONVOLUTION_COLOR_TABLE -#define org_lwjgl_opengl_ARBImaging_GL_PROXY_POST_CONVOLUTION_COLOR_TABLE 32980L -#undef org_lwjgl_opengl_ARBImaging_GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE -#define org_lwjgl_opengl_ARBImaging_GL_PROXY_POST_COLOR_MATRIX_COLOR_TABLE 32981L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_SCALE 32982L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_BIAS 32983L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_FORMAT -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_FORMAT 32984L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_WIDTH -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_WIDTH 32985L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_RED_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_RED_SIZE 32986L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_GREEN_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_GREEN_SIZE 32987L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_BLUE_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_BLUE_SIZE 32988L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_ALPHA_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_ALPHA_SIZE 32989L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_LUMINANCE_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_LUMINANCE_SIZE 32990L -#undef org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_INTENSITY_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_COLOR_TABLE_INTENSITY_SIZE 32991L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_1D -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_1D 32784L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_2D -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_2D 32785L -#undef org_lwjgl_opengl_ARBImaging_GL_SEPARABLE_2D -#define org_lwjgl_opengl_ARBImaging_GL_SEPARABLE_2D 32786L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_BORDER_MODE -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_BORDER_MODE 32787L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_FILTER_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_FILTER_SCALE 32788L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_FILTER_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_FILTER_BIAS 32789L -#undef org_lwjgl_opengl_ARBImaging_GL_REDUCE -#define org_lwjgl_opengl_ARBImaging_GL_REDUCE 32790L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_FORMAT -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_FORMAT 32791L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_WIDTH -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_WIDTH 32792L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_HEIGHT -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_HEIGHT 32793L -#undef org_lwjgl_opengl_ARBImaging_GL_MAX_CONVOLUTION_WIDTH -#define org_lwjgl_opengl_ARBImaging_GL_MAX_CONVOLUTION_WIDTH 32794L -#undef org_lwjgl_opengl_ARBImaging_GL_MAX_CONVOLUTION_HEIGHT -#define org_lwjgl_opengl_ARBImaging_GL_MAX_CONVOLUTION_HEIGHT 32795L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_RED_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_RED_SCALE 32796L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_GREEN_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_GREEN_SCALE 32797L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_BLUE_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_BLUE_SCALE 32798L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_ALPHA_SCALE -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_ALPHA_SCALE 32799L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_RED_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_RED_BIAS 32800L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_GREEN_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_GREEN_BIAS 32801L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_BLUE_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_BLUE_BIAS 32802L -#undef org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_ALPHA_BIAS -#define org_lwjgl_opengl_ARBImaging_GL_POST_CONVOLUTION_ALPHA_BIAS 32803L -#undef org_lwjgl_opengl_ARBImaging_GL_IGNORE_BORDER -#define org_lwjgl_opengl_ARBImaging_GL_IGNORE_BORDER 33104L -#undef org_lwjgl_opengl_ARBImaging_GL_CONSTANT_BORDER -#define org_lwjgl_opengl_ARBImaging_GL_CONSTANT_BORDER 33105L -#undef org_lwjgl_opengl_ARBImaging_GL_REPLICATE_BORDER -#define org_lwjgl_opengl_ARBImaging_GL_REPLICATE_BORDER 33107L -#undef org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_BORDER_COLOR -#define org_lwjgl_opengl_ARBImaging_GL_CONVOLUTION_BORDER_COLOR 33108L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM 32804L -#undef org_lwjgl_opengl_ARBImaging_GL_PROXY_HISTOGRAM -#define org_lwjgl_opengl_ARBImaging_GL_PROXY_HISTOGRAM 32805L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_WIDTH -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_WIDTH 32806L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_FORMAT -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_FORMAT 32807L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_RED_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_RED_SIZE 32808L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_GREEN_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_GREEN_SIZE 32809L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_BLUE_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_BLUE_SIZE 32810L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_ALPHA_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_ALPHA_SIZE 32811L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_LUMINANCE_SIZE -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_LUMINANCE_SIZE 32812L -#undef org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_SINK -#define org_lwjgl_opengl_ARBImaging_GL_HISTOGRAM_SINK 32813L -#undef org_lwjgl_opengl_ARBImaging_GL_MINMAX -#define org_lwjgl_opengl_ARBImaging_GL_MINMAX 32814L -#undef org_lwjgl_opengl_ARBImaging_GL_MINMAX_FORMAT -#define org_lwjgl_opengl_ARBImaging_GL_MINMAX_FORMAT 32815L -#undef org_lwjgl_opengl_ARBImaging_GL_MINMAX_SINK -#define org_lwjgl_opengl_ARBImaging_GL_MINMAX_SINK 32816L -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglColorTable - * Signature: (IIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTable - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglColorSubTable - * Signature: (IIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorSubTable - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglColorTableParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglColorTableParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglColorTableParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glCopyColorSubTable - * Signature: (IIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorSubTable - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glCopyColorTable - * Signature: (IIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyColorTable - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetColorTable - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTable - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetColorTableParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetColorTableParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetColorTableParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glBlendEquation - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendEquation - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glBlendColor - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glBlendColor - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glHistogram - * Signature: (IIIZ)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glHistogram - (JNIEnv *, jclass, jint, jint, jint, jboolean); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glResetHistogram - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetHistogram - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetHistogram - * Signature: (IZIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogram - (JNIEnv *, jclass, jint, jboolean, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetHistogramParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetHistogramParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetHistogramParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glMinmax - * Signature: (IIZ)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glMinmax - (JNIEnv *, jclass, jint, jint, jboolean); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glResetMinmax - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glResetMinmax - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetMinmax - * Signature: (IZIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmax - (JNIEnv *, jclass, jint, jboolean, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetMinmaxParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetMinmaxParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetMinmaxParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglConvolutionFilter1D - * Signature: (IIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglConvolutionFilter2D - * Signature: (IIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionFilter2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glConvolutionParameterf - * Signature: (IIF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameterf - (JNIEnv *, jclass, jint, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglConvolutionParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glConvolutionParameteri - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glConvolutionParameteri - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglConvolutionParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglConvolutionParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glCopyConvolutionFilter1D - * Signature: (IIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: glCopyConvolutionFilter2D - * Signature: (IIIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_glCopyConvolutionFilter2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetConvolutionFilter - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionFilter - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetConvolutionParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetConvolutionParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetConvolutionParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglSeparableFilter2D - * Signature: (IIIIIILjava/nio/Buffer;ILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglSeparableFilter2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBImaging - * Method: nglGetSeparableFilter - * Signature: (IIILjava/nio/Buffer;ILjava/nio/Buffer;ILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBImaging_nglGetSeparableFilter - (JNIEnv *, jclass, jint, jint, jint, jobject, jint, jobject, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.cpp index b108b6e0..f7eb9baf 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBMatrixPalette // ---------------------------------- -#include "org_lwjgl_opengl_ARBMatrixPalette.h" #include "extgl.h" #include "checkGLerror.h" @@ -50,26 +49,13 @@ static glMatrixIndexusvARBPROC glMatrixIndexusvARB; static glMatrixIndexuivARBPROC glMatrixIndexuivARB; static glMatrixIndexPointerARBPROC glMatrixIndexPointerARB; -void extgl_InitARBMatrixPalette(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_matrix_palette) - return; - glCurrentPaletteMatrixARB = (glCurrentPaletteMatrixARBPROC) extgl_GetProcAddress("glCurrentPaletteMatrixARB"); - glMatrixIndexubvARB = (glMatrixIndexubvARBPROC) extgl_GetProcAddress("glMatrixIndexubvARB"); - glMatrixIndexusvARB = (glMatrixIndexusvARBPROC) extgl_GetProcAddress("glMatrixIndexusvARB"); - glMatrixIndexuivARB = (glMatrixIndexuivARBPROC) extgl_GetProcAddress("glMatrixIndexuivARB"); - glMatrixIndexPointerARB = (glMatrixIndexPointerARBPROC) extgl_GetProcAddress("glMatrixIndexPointerARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_matrix_palette) -} - /* * Class: org.lwjgl.opengl.ARBMatrixPalette * Method: glCurrentPaletteMatrixARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_glCurrentPaletteMatrixARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_glCurrentPaletteMatrixARB (JNIEnv * env, jclass clazz, jint index) { - CHECK_EXISTS(glCurrentPaletteMatrixARB) glCurrentPaletteMatrixARB(index); CHECK_GL_ERROR } @@ -78,10 +64,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_glCurrentPaletteMa * Class: org.lwjgl.opengl.ARBMatrixPalette * Method: nglMatrixIndexPointerARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARB (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_offset) { - CHECK_EXISTS(glMatrixIndexPointerARB) GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPointer) + pPointer_offset); glMatrixIndexPointerARB(size, type, stride, pPointer_ptr); CHECK_GL_ERROR @@ -91,10 +76,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPoin * Class: org.lwjgl.opengl.ARBMatrixPalette * Method: nglMatrixIndexPointerARBVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARBVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARBVBO (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jint buffer_offset) { - CHECK_EXISTS(glMatrixIndexPointerARB) glMatrixIndexPointerARB(size, type, stride, (GLvoid *)buffer_offset); CHECK_GL_ERROR } @@ -103,10 +87,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPoin * Class: org.lwjgl.opengl.ARBMatrixPalette * Method: nglMatrixIndexubvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB (JNIEnv * env, jclass clazz, jint size, jobject pIndices, jint pIndices_offset) { - CHECK_EXISTS(glMatrixIndexubvARB) GLubyte *pIndices_ptr = (GLubyte *)env->GetDirectBufferAddress(pIndices) + pIndices_offset; glMatrixIndexubvARB(size, pIndices_ptr); CHECK_GL_ERROR @@ -116,10 +99,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvA * Class: org.lwjgl.opengl.ARBMatrixPalette * Method: nglMatrixIndexuivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB (JNIEnv * env, jclass clazz, jint size, jobject piIndices, jint piIndices_offset) { - CHECK_EXISTS(glMatrixIndexuivARB) GLuint *piIndices_ptr = (GLuint *)env->GetDirectBufferAddress(piIndices) + piIndices_offset; glMatrixIndexuivARB(size, piIndices_ptr); CHECK_GL_ERROR @@ -129,11 +111,27 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivA * Class: org.lwjgl.opengl.ARBMatrixPalette * Method: nglMatrixIndexusvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexusvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexusvARB (JNIEnv * env, jclass clazz, jint size, jobject psIndices, jint psIndices_offset) { - CHECK_EXISTS(glMatrixIndexusvARB) GLushort *psIndices_ptr = (GLushort *)env->GetDirectBufferAddress(psIndices) + psIndices_offset; glMatrixIndexusvARB(size, psIndices_ptr); CHECK_GL_ERROR } + +void extgl_InitARBMatrixPalette(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glCurrentPaletteMatrixARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBMatrixPalette_glCurrentPaletteMatrixARB, "glCurrentPaletteMatrixARB", (void**)&glCurrentPaletteMatrixARB}, + {"nglMatrixIndexPointerARB", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARB, "glMatrixIndexPointerARB", (void**)&glMatrixIndexPointerARB}, + {"nglMatrixIndexPointerARBVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARBVBO, NULL, NULL}, + {"nglMatrixIndexubvARB", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB, "glMatrixIndexubvARB", (void**)&glMatrixIndexubvARB}, + {"nglMatrixIndexuivARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB, "glMatrixIndexuivARB", (void**)&glMatrixIndexuivARB}, + {"nglMatrixIndexusvARB", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexusvARB, "glMatrixIndexusvARB", (void**)&glMatrixIndexusvARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBMatrixPalette"); + if (extgl_Extensions.GL_ARB_matrix_palette) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_matrix_palette", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.h b/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.h deleted file mode 100644 index 819135fa..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBMatrixPalette.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBMatrixPalette -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBMatrixPalette -#define _Included_org_lwjgl_opengl_ARBMatrixPalette - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: glCurrentPaletteMatrixARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_glCurrentPaletteMatrixARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexPointerARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARB - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexPointerARBVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexPointerARBVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexubvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexubvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexuivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexuivARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBMatrixPalette - * Method: nglMatrixIndexusvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMatrixPalette_nglMatrixIndexusvARB - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBMultisample.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBMultisample.cpp index d4c534a4..f078a4cc 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBMultisample.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBMultisample.cpp @@ -34,30 +34,32 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBMultisample // ---------------------------------- -#include "org_lwjgl_opengl_ARBMultisample.h" #include "extgl.h" #include "checkGLerror.h" -typedef void (APIENTRY * glSampleCoverageARBPROC) (GLclampf value, GLboolean invert ); +typedef void (APIENTRY * glSampleCoverageARBPROC) (GLclampf value, GLboolean invert); static glSampleCoverageARBPROC glSampleCoverageARB; -void extgl_InitARBMultisample(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_multisample) - return; - glSampleCoverageARB = (glSampleCoverageARBPROC) extgl_GetProcAddress("glSampleCoverageARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_multisample) -} - /* * Class: org.lwjgl.opengl.ARBMultisample * Method: glSampleCoverageARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultisample_glSampleCoverageARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultisample_glSampleCoverageARB (JNIEnv * env, jclass clazz, jfloat value, jboolean invert) { - CHECK_EXISTS(glSampleCoverageARB) glSampleCoverageARB(value, invert); CHECK_GL_ERROR } + +void extgl_InitARBMultisample(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glSampleCoverageARB", "(FZ)V", (void*)&Java_org_lwjgl_opengl_ARBMultisample_glSampleCoverageARB, "glSampleCoverageARB", (void**)&glSampleCoverageARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBMultisample"); + if (extgl_Extensions.GL_ARB_multisample) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_multisample", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBMultisample.h b/src/native/common/arb/org_lwjgl_opengl_ARBMultisample.h deleted file mode 100644 index 9381f923..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBMultisample.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBMultisample -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBMultisample -#define _Included_org_lwjgl_opengl_ARBMultisample - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBMultisample - * Method: glSampleCoverageARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultisample_glSampleCoverageARB - (JNIEnv *, jclass, jfloat, jboolean); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBMultitexture.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBMultitexture.cpp index 8656d18f..9d88edf7 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBMultitexture.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBMultitexture.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBMultitexture // ---------------------------------- -#include "org_lwjgl_opengl_ARBMultitexture.h" #include "extgl.h" #include "checkGLerror.h" @@ -68,39 +67,13 @@ static glMultiTexCoord4fARBPROC glMultiTexCoord4fARB; static glMultiTexCoord4iARBPROC glMultiTexCoord4iARB; static glMultiTexCoord4sARBPROC glMultiTexCoord4sARB; -void extgl_InitARBMultitexture(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_multitexture) - return; - glActiveTextureARB = (glActiveTextureARBPROC) extgl_GetProcAddress("glActiveTextureARB"); - glClientActiveTextureARB = (glClientActiveTextureARBPROC) extgl_GetProcAddress("glClientActiveTextureARB"); - - glMultiTexCoord1fARB = (glMultiTexCoord1fARBPROC) extgl_GetProcAddress("glMultiTexCoord1fARB"); - glMultiTexCoord1iARB = (glMultiTexCoord1iARBPROC) extgl_GetProcAddress("glMultiTexCoord1iARB"); - glMultiTexCoord1sARB = (glMultiTexCoord1sARBPROC) extgl_GetProcAddress("glMultiTexCoord1sARB"); - - glMultiTexCoord2fARB = (glMultiTexCoord2fARBPROC) extgl_GetProcAddress("glMultiTexCoord2fARB"); - glMultiTexCoord2iARB = (glMultiTexCoord2iARBPROC) extgl_GetProcAddress("glMultiTexCoord2iARB"); - glMultiTexCoord2sARB = (glMultiTexCoord2sARBPROC) extgl_GetProcAddress("glMultiTexCoord2sARB"); - - glMultiTexCoord3fARB = (glMultiTexCoord3fARBPROC) extgl_GetProcAddress("glMultiTexCoord3fARB"); - glMultiTexCoord3iARB = (glMultiTexCoord3iARBPROC) extgl_GetProcAddress("glMultiTexCoord3iARB"); - glMultiTexCoord3sARB = (glMultiTexCoord3sARBPROC) extgl_GetProcAddress("glMultiTexCoord3sARB"); - - glMultiTexCoord4fARB = (glMultiTexCoord4fARBPROC) extgl_GetProcAddress("glMultiTexCoord4fARB"); - glMultiTexCoord4iARB = (glMultiTexCoord4iARBPROC) extgl_GetProcAddress("glMultiTexCoord4iARB"); - glMultiTexCoord4sARB = (glMultiTexCoord4sARBPROC) extgl_GetProcAddress("glMultiTexCoord4sARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_multitexture) -} - /* * Class: org.lwjgl.opengl.ARBMultitexture * Method: glClientActiveTextureARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glClientActiveTextureARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glClientActiveTextureARB (JNIEnv * env, jclass clazz, jint texture) { - CHECK_EXISTS(glClientActiveTextureARB) glClientActiveTextureARB(texture); CHECK_GL_ERROR } @@ -109,10 +82,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glClientActiveTextu * Class: org.lwjgl.opengl.ARBMultitexture * Method: glActiveTextureARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glActiveTextureARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glActiveTextureARB (JNIEnv * env, jclass clazz, jint texture) { - CHECK_EXISTS(glActiveTextureARB) glActiveTextureARB(texture); CHECK_GL_ERROR } @@ -121,10 +93,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glActiveTextureARB * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord1fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1fARB (JNIEnv * env, jclass clazz, jint target, jfloat s) { - CHECK_EXISTS(glMultiTexCoord1fARB) glMultiTexCoord1fARB(target, s); CHECK_GL_ERROR } @@ -133,10 +104,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1fAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord1iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1iARB (JNIEnv * env, jclass clazz, jint target, jint s) { - CHECK_EXISTS(glMultiTexCoord1iARB) glMultiTexCoord1iARB(target, s); CHECK_GL_ERROR } @@ -145,10 +115,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1iAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord1sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1sARB (JNIEnv * env, jclass clazz, jint target, jshort s) { - CHECK_EXISTS(glMultiTexCoord1sARB) glMultiTexCoord1sARB(target, s); CHECK_GL_ERROR } @@ -157,10 +126,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1sAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord2fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2fARB (JNIEnv * env, jclass clazz, jint target, jfloat s, jfloat t) { - CHECK_EXISTS(glMultiTexCoord2fARB) glMultiTexCoord2fARB(target, s, t); CHECK_GL_ERROR } @@ -169,10 +137,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2fAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord2iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2iARB (JNIEnv * env, jclass clazz, jint target, jint s, jint t) { - CHECK_EXISTS(glMultiTexCoord2iARB) glMultiTexCoord2iARB(target, s, t); CHECK_GL_ERROR } @@ -181,10 +148,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2iAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord2sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2sARB (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t) { - CHECK_EXISTS(glMultiTexCoord2sARB) glMultiTexCoord2sARB(target, s, t); CHECK_GL_ERROR } @@ -193,10 +159,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2sAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord3fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3fARB (JNIEnv * env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r) { - CHECK_EXISTS(glMultiTexCoord3fARB) glMultiTexCoord3fARB(target, s, t, r); CHECK_GL_ERROR } @@ -205,10 +170,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3fAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord3iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3iARB (JNIEnv * env, jclass clazz, jint target, jint s, jint t, jint r) { - CHECK_EXISTS(glMultiTexCoord3iARB) glMultiTexCoord3iARB(target, s, t, r); CHECK_GL_ERROR } @@ -217,10 +181,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3iAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord3sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3sARB (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t, jshort r) { - CHECK_EXISTS(glMultiTexCoord3sARB) glMultiTexCoord3sARB(target, s, t, r); CHECK_GL_ERROR } @@ -229,10 +192,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3sAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord4fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4fARB (JNIEnv * env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q) { - CHECK_EXISTS(glMultiTexCoord4fARB) glMultiTexCoord4fARB(target, s, t, r, q); CHECK_GL_ERROR } @@ -241,10 +203,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4fAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord4iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4iARB (JNIEnv * env, jclass clazz, jint target, jint s, jint t, jint r, jint q) { - CHECK_EXISTS(glMultiTexCoord4iARB) glMultiTexCoord4iARB(target, s, t, r, q); CHECK_GL_ERROR } @@ -253,10 +214,34 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4iAR * Class: org.lwjgl.opengl.ARBMultitexture * Method: glMultiTexCoord4sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4sARB (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q) { - CHECK_EXISTS(glMultiTexCoord4sARB) glMultiTexCoord4sARB(target, s, t, r, q); CHECK_GL_ERROR } + +void extgl_InitARBMultitexture(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glClientActiveTextureARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glClientActiveTextureARB, "glClientActiveTextureARB", (void**)&glClientActiveTextureARB}, + {"glActiveTextureARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glActiveTextureARB, "glActiveTextureARB", (void**)&glActiveTextureARB}, + {"glMultiTexCoord1fARB", "(IF)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1fARB, "glMultiTexCoord1fARB", (void**)&glMultiTexCoord1fARB}, + {"glMultiTexCoord1iARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1iARB, "glMultiTexCoord1iARB", (void**)&glMultiTexCoord1iARB}, + {"glMultiTexCoord1sARB", "(IS)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1sARB, "glMultiTexCoord1sARB", (void**)&glMultiTexCoord1sARB}, + {"glMultiTexCoord2fARB", "(IFF)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2fARB, "glMultiTexCoord2fARB", (void**)&glMultiTexCoord2fARB}, + {"glMultiTexCoord2iARB", "(III)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2iARB, "glMultiTexCoord2iARB", (void**)&glMultiTexCoord2iARB}, + {"glMultiTexCoord2sARB", "(ISS)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2sARB, "glMultiTexCoord2sARB", (void**)&glMultiTexCoord2sARB}, + {"glMultiTexCoord3fARB", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3fARB, "glMultiTexCoord3fARB", (void**)&glMultiTexCoord3fARB}, + {"glMultiTexCoord3iARB", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3iARB, "glMultiTexCoord3iARB", (void**)&glMultiTexCoord3iARB}, + {"glMultiTexCoord3sARB", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3sARB, "glMultiTexCoord3sARB", (void**)&glMultiTexCoord3sARB}, + {"glMultiTexCoord4fARB", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4fARB, "glMultiTexCoord4fARB", (void**)&glMultiTexCoord4fARB}, + {"glMultiTexCoord4iARB", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4iARB, "glMultiTexCoord4iARB", (void**)&glMultiTexCoord4iARB}, + {"glMultiTexCoord4sARB", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4sARB, "glMultiTexCoord4sARB", (void**)&glMultiTexCoord4sARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBMultitexture"); + if (extgl_Extensions.GL_ARB_multitexture) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_multitexture", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBMultitexture.h b/src/native/common/arb/org_lwjgl_opengl_ARBMultitexture.h deleted file mode 100644 index f28645de..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBMultitexture.h +++ /dev/null @@ -1,148 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBMultitexture -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBMultitexture -#define _Included_org_lwjgl_opengl_ARBMultitexture - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glClientActiveTextureARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glClientActiveTextureARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glActiveTextureARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glActiveTextureARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord1fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1fARB - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord1iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1iARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord1sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord1sARB - (JNIEnv *, jclass, jint, jshort); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord2fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2fARB - (JNIEnv *, jclass, jint, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord2iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2iARB - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord2sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord2sARB - (JNIEnv *, jclass, jint, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord3fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3fARB - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord3iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3iARB - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord3sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord3sARB - (JNIEnv *, jclass, jint, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord4fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4fARB - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord4iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4iARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBMultitexture - * Method: glMultiTexCoord4sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBMultitexture_glMultiTexCoord4sARB - (JNIEnv *, jclass, jint, jshort, jshort, jshort, jshort); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBOcclusionQuery.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBOcclusionQuery.cpp index 171fcaac..13577dc9 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBOcclusionQuery.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBOcclusionQuery.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBOcclusionQuery // ---------------------------------- -#include "org_lwjgl_opengl_ARBOcclusionQuery.h" #include "extgl.h" #include "checkGLerror.h" @@ -56,31 +55,13 @@ static glGetQueryivARBPROC glGetQueryivARB; static glGetQueryObjectivARBPROC glGetQueryObjectivARB; static glGetQueryObjectuivARBPROC glGetQueryObjectuivARB; -void extgl_InitARBOcclusionQuery(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_occlusion_query) - return; - - glGenQueriesARB = (glGenQueriesARBPROC) extgl_GetProcAddress("glGenQueriesARB"); - glDeleteQueriesARB = (glDeleteQueriesARBPROC) extgl_GetProcAddress("glDeleteQueriesARB"); - glIsQueryARB = (glIsQueryARBPROC) extgl_GetProcAddress("glIsQueryARB"); - glBeginQueryARB = (glBeginQueryARBPROC) extgl_GetProcAddress("glBeginQueryARB"); - glEndQueryARB = (glEndQueryARBPROC) extgl_GetProcAddress("glEndQueryARB"); - glGetQueryivARB = (glGetQueryivARBPROC) extgl_GetProcAddress("glGetQueryivARB"); - glGetQueryObjectivARB = (glGetQueryObjectivARBPROC) extgl_GetProcAddress("glGetQueryObjectivARB"); - glGetQueryObjectuivARB = (glGetQueryObjectuivARBPROC) extgl_GetProcAddress("glGetQueryObjectuivARB"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_occlusion_query) -} - /* * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: nglGenQueriesARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGenQueriesARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGenQueriesARB (JNIEnv * env, jclass clazz, jint n, jobject ids, jint idsOffset) { - CHECK_EXISTS(glGenQueriesARB) GLuint *ids_ptr = (GLuint *)env->GetDirectBufferAddress(ids) + idsOffset; glGenQueriesARB(n, ids_ptr); CHECK_GL_ERROR @@ -90,10 +71,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGenQueriesARB * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: nglDeleteQueriesARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglDeleteQueriesARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglDeleteQueriesARB (JNIEnv * env, jclass clazz, jint n, jobject ids, jint idsOffset) { - CHECK_EXISTS(glDeleteQueriesARB) GLuint *ids_ptr = (GLuint *)env->GetDirectBufferAddress(ids) + idsOffset; glDeleteQueriesARB(n, ids_ptr); CHECK_GL_ERROR @@ -103,10 +83,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglDeleteQueriesA * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: glIsQueryARB */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glIsQueryARB +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glIsQueryARB (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glIsQueryARB) GLboolean result = glIsQueryARB(id); CHECK_GL_ERROR return result; @@ -116,10 +95,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glIsQueryARB * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: glBeginQueryARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glBeginQueryARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glBeginQueryARB (JNIEnv * env, jclass clazz, jint target, jint id) { - CHECK_EXISTS(glBeginQueryARB) glBeginQueryARB(target, id); CHECK_GL_ERROR } @@ -128,10 +106,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glBeginQueryARB * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: glEndQueryARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glEndQueryARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glEndQueryARB (JNIEnv * env, jclass clazz, jint target) { - CHECK_EXISTS(glEndQueryARB) glEndQueryARB(target); CHECK_GL_ERROR } @@ -140,10 +117,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glEndQueryARB * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: nglGetQueryivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryivARB (JNIEnv * env, jclass clazz, jint target, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetQueryivARB) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetQueryivARB(target, pname, params_ptr); CHECK_GL_ERROR @@ -153,10 +129,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryivARB * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: nglGetQueryObjectivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectivARB (JNIEnv * env, jclass clazz, jint id, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetQueryObjectivARB) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetQueryObjectivARB(id, pname, params_ptr); CHECK_GL_ERROR @@ -166,11 +141,29 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObject * Class: org.lwjgl.opengl.ARBOcclusionQuery * Method: nglGetQueryObjectuivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectuivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectuivARB (JNIEnv * env, jclass clazz, jint id, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetQueryObjectuivARB) GLuint *params_ptr = (GLuint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetQueryObjectuivARB(id, pname, params_ptr); CHECK_GL_ERROR } + +void extgl_InitARBOcclusionQuery(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglGenQueriesARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGenQueriesARB, "glGenQueriesARB", (void**)&glGenQueriesARB}, + {"nglDeleteQueriesARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_nglDeleteQueriesARB, "glDeleteQueriesARB", (void**)&glDeleteQueriesARB}, + {"glIsQueryARB", "(I)Z", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_glIsQueryARB, "glIsQueryARB", (void**)&glIsQueryARB}, + {"glBeginQueryARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_glBeginQueryARB, "glBeginQueryARB", (void**)&glBeginQueryARB}, + {"glEndQueryARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_glEndQueryARB, "glEndQueryARB", (void**)&glEndQueryARB}, + {"nglGetQueryivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryivARB, "glGetQueryivARB", (void**)&glGetQueryivARB}, + {"nglGetQueryObjectivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectivARB, "glGetQueryObjectivARB", (void**)&glGetQueryObjectivARB}, + {"nglGetQueryObjectuivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectuivARB, "glGetQueryObjectuivARB", (void**)&glGetQueryObjectuivARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBOcclusionQuery"); + if (extgl_Extensions.GL_ARB_occlusion_query) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_occlusion_query", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBOcclusionQuery.h b/src/native/common/arb/org_lwjgl_opengl_ARBOcclusionQuery.h deleted file mode 100644 index 62262f72..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBOcclusionQuery.h +++ /dev/null @@ -1,87 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_ARBOcclusionQuery */ - -#ifndef _Included_org_lwjgl_opengl_ARBOcclusionQuery -#define _Included_org_lwjgl_opengl_ARBOcclusionQuery -#ifdef __cplusplus -extern "C" { -#endif -#undef org_lwjgl_opengl_ARBOcclusionQuery_GL_SAMPLES_PASSED_ARB -#define org_lwjgl_opengl_ARBOcclusionQuery_GL_SAMPLES_PASSED_ARB 35092L -#undef org_lwjgl_opengl_ARBOcclusionQuery_GL_QUERY_COUNTER_BITS_ARB -#define org_lwjgl_opengl_ARBOcclusionQuery_GL_QUERY_COUNTER_BITS_ARB 34916L -#undef org_lwjgl_opengl_ARBOcclusionQuery_GL_CURRENT_QUERY_ARB -#define org_lwjgl_opengl_ARBOcclusionQuery_GL_CURRENT_QUERY_ARB 34917L -#undef org_lwjgl_opengl_ARBOcclusionQuery_GL_QUERY_RESULT_ARB -#define org_lwjgl_opengl_ARBOcclusionQuery_GL_QUERY_RESULT_ARB 34918L -#undef org_lwjgl_opengl_ARBOcclusionQuery_GL_QUERY_RESULT_AVAILABLE_ARB -#define org_lwjgl_opengl_ARBOcclusionQuery_GL_QUERY_RESULT_AVAILABLE_ARB 34919L -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: nglGenQueriesARB - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGenQueriesARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: nglDeleteQueriesARB - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglDeleteQueriesARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: glIsQueryARB - * Signature: (I)Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glIsQueryARB - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: glBeginQueryARB - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glBeginQueryARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: glEndQueryARB - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_glEndQueryARB - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: nglGetQueryivARB - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: nglGetQueryObjectivARB - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_ARBOcclusionQuery - * Method: nglGetQueryObjectuivARB - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBOcclusionQuery_nglGetQueryObjectuivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBPointParameters.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBPointParameters.cpp index ecf05bad..f57ea8e8 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBPointParameters.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBPointParameters.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBPointParameters // ---------------------------------- -#include "org_lwjgl_opengl_ARBPointParameters.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glPointParameterfvARBPROC) (GLenum pname, GLfloat *para static glPointParameterfARBPROC glPointParameterfARB; static glPointParameterfvARBPROC glPointParameterfvARB; -void extgl_InitARBPointParameters(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_point_parameters) - return; - glPointParameterfARB = (glPointParameterfARBPROC) extgl_GetProcAddress("glPointParameterfARB"); - glPointParameterfvARB = (glPointParameterfvARBPROC) extgl_GetProcAddress("glPointParameterfvARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_point_parameters) -} - /* * Class: org.lwjgl.opengl.ARBPointParameters * Method: glPointParameterfARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_glPointParameterfARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_glPointParameterfARB (JNIEnv * env, jclass clazz, jint pname, jfloat param) { - CHECK_EXISTS(glPointParameterfARB) glPointParameterfARB(pname, param); CHECK_GL_ERROR } @@ -69,11 +58,23 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_glPointParameter * Class: org.lwjgl.opengl.ARBPointParameters * Method: nglPointParameterfvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_nglPointParameterfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_nglPointParameterfvARB (JNIEnv * env, jclass clazz, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glPointParameterfvARB) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glPointParameterfvARB(pname, pfParams_ptr); CHECK_GL_ERROR } + +void extgl_InitARBPointParameters(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glPointParameterfARB", "(IF)V", (void*)&Java_org_lwjgl_opengl_ARBPointParameters_glPointParameterfARB, "glPointParameterfARB", (void**)&glPointParameterfARB}, + {"nglPointParameterfvARB", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBPointParameters_nglPointParameterfvARB, "glPointParameterfvARB", (void**)&glPointParameterfvARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBPointParameters"); + if (extgl_Extensions.GL_ARB_point_parameters) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_point_parameters", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBPointParameters.h b/src/native/common/arb/org_lwjgl_opengl_ARBPointParameters.h deleted file mode 100644 index 81edc6b3..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBPointParameters.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBPointParameters -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBPointParameters -#define _Included_org_lwjgl_opengl_ARBPointParameters - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBPointParameters - * Method: glPointParameterfARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_glPointParameterfARB - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBPointParameters - * Method: nglPointParameterfvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBPointParameters_nglPointParameterfvARB - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBProgram.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBProgram.cpp index 18b529d9..268dd64a 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBProgram.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBProgram.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBProgram // ---------------------------------- -#include "org_lwjgl_opengl_ARBProgram.h" #include "extgl.h" #include "checkGLerror.h" @@ -67,34 +66,13 @@ static glGetProgramivARBPROC glGetProgramivARB; static glGetProgramStringARBPROC glGetProgramStringARB; static glIsProgramARBPROC glIsProgramARB; -void extgl_InitARBProgram(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_fragment_program) - return; - glProgramStringARB = (glProgramStringARBPROC) extgl_GetProcAddress("glProgramStringARB"); - glBindProgramARB = (glBindProgramARBPROC) extgl_GetProcAddress("glBindProgramARB"); - glDeleteProgramsARB = (glDeleteProgramsARBPROC) extgl_GetProcAddress("glDeleteProgramsARB"); - glGenProgramsARB = (glGenProgramsARBPROC) extgl_GetProcAddress("glGenProgramsARB"); - glProgramEnvParameter4fARB = (glProgramEnvParameter4fARBPROC) extgl_GetProcAddress("glProgramEnvParameter4fARB"); - glProgramEnvParameter4fvARB = (glProgramEnvParameter4fvARBPROC) extgl_GetProcAddress("glProgramEnvParameter4fvARB"); - glProgramLocalParameter4fARB = (glProgramLocalParameter4fARBPROC) extgl_GetProcAddress("glProgramLocalParameter4fARB"); - glProgramLocalParameter4fvARB = (glProgramLocalParameter4fvARBPROC) extgl_GetProcAddress("glProgramLocalParameter4fvARB"); - glGetProgramEnvParameterfvARB = (glGetProgramEnvParameterfvARBPROC) extgl_GetProcAddress("glGetProgramEnvParameterfvARB"); - glGetProgramLocalParameterfvARB = (glGetProgramLocalParameterfvARBPROC) extgl_GetProcAddress("glGetProgramLocalParameterfvARB"); - glGetProgramivARB = (glGetProgramivARBPROC) extgl_GetProcAddress("glGetProgramivARB"); - glGetProgramStringARB = (glGetProgramStringARBPROC) extgl_GetProcAddress("glGetProgramStringARB"); - glIsProgramARB = (glIsProgramARBPROC) extgl_GetProcAddress("glIsProgramARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_fragment_program) -} - /* * Class: org.lwjgl.opengl.ARBProgram * Method: nglProgramStringARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramStringARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramStringARB (JNIEnv * env, jclass clazz, jint target, jint format, jint length, jobject string, jint stringOffset) { - CHECK_EXISTS(glProgramStringARB) GLvoid *string_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(string) + stringOffset); glProgramStringARB(target, format, length, string_ptr); CHECK_GL_ERROR @@ -104,10 +82,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramStringARB * Class: org.lwjgl.opengl.ARBProgram * Method: glBindProgramARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glBindProgramARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glBindProgramARB (JNIEnv * env, jclass clazz, jint target, jint program) { - CHECK_EXISTS(glBindProgramARB) glBindProgramARB(target, program); CHECK_GL_ERROR } @@ -116,10 +93,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glBindProgramARB * Class: org.lwjgl.opengl.ARBProgram * Method: nglDeleteProgramsARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglDeleteProgramsARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglDeleteProgramsARB (JNIEnv * env, jclass clazz, jint n, jobject programs, jint programsOffset) { - CHECK_EXISTS(glDeleteProgramsARB) GLuint *programs_ptr = (GLuint *)env->GetDirectBufferAddress(programs) + programsOffset; glDeleteProgramsARB(n, programs_ptr); CHECK_GL_ERROR @@ -129,10 +105,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglDeleteProgramsARB * Class: org.lwjgl.opengl.ARBProgram * Method: nglGenProgramsARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGenProgramsARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGenProgramsARB (JNIEnv * env, jclass clazz, jint n, jobject programs, jint programsOffset) { - CHECK_EXISTS(glGenProgramsARB) GLuint *programs_ptr = (GLuint *)env->GetDirectBufferAddress(programs) + programsOffset; glGenProgramsARB(n, programs_ptr); CHECK_GL_ERROR @@ -142,10 +117,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGenProgramsARB * Class: org.lwjgl.opengl.ARBProgram * Method: glProgramEnvParameter4fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramEnvParameter4fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramEnvParameter4fARB (JNIEnv * env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glProgramEnvParameter4fARB) glProgramEnvParameter4fARB(target, index, x, y, z, w); CHECK_GL_ERROR } @@ -154,10 +128,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramEnvParameter4fA * Class: org.lwjgl.opengl.ARBProgram * Method: nglProgramEnvParameter4fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fvARB (JNIEnv * env, jclass clazz, jint target, jint index, jobject params, jint paramsOffset) { - CHECK_EXISTS(glProgramEnvParameter4fvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glProgramEnvParameter4fvARB(target, index, params_ptr); CHECK_GL_ERROR @@ -167,10 +140,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4f * Class: org.lwjgl.opengl.ARBProgram * Method: glProgramLocalParameter4fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramLocalParameter4fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramLocalParameter4fARB (JNIEnv * env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glProgramLocalParameter4fARB) glProgramLocalParameter4fARB(target, index, x, y, z, w); CHECK_GL_ERROR } @@ -179,10 +151,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramLocalParameter4 * Class: org.lwjgl.opengl.ARBProgram * Method: nglProgramLocalParameter4fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fvARB (JNIEnv * env, jclass clazz, jint target, jint index, jobject params, jint paramsOffset) { - CHECK_EXISTS(glProgramLocalParameter4fvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glProgramLocalParameter4fvARB(target, index, params_ptr); CHECK_GL_ERROR @@ -192,10 +163,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter * Class: org.lwjgl.opengl.ARBProgram * Method: nglGetProgramEnvParameterfvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramEnvParameterfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramEnvParameterfvARB (JNIEnv * env, jclass clazz, jint target, jint index, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetProgramEnvParameterfvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetProgramEnvParameterfvARB(target, index, params_ptr); CHECK_GL_ERROR @@ -205,10 +175,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramEnvParamete * Class: org.lwjgl.opengl.ARBProgram * Method: nglGetProgramLocalParameterfvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramLocalParameterfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramLocalParameterfvARB (JNIEnv * env, jclass clazz, jint target, jint index, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetProgramLocalParameterfvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetProgramLocalParameterfvARB(target, index, params_ptr); CHECK_GL_ERROR @@ -218,10 +187,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramLocalParame * Class: org.lwjgl.opengl.ARBProgram * Method: nglGetProgramivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramivARB (JNIEnv * env, jclass clazz, jint target, jint parameterName, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetProgramivARB) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetProgramivARB(target, parameterName, params_ptr); CHECK_GL_ERROR @@ -231,10 +199,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramivARB * Class: org.lwjgl.opengl.ARBProgram * Method: nglGetProgramStringARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramStringARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramStringARB (JNIEnv * env, jclass clazz, jint target, jint parameterName, jobject paramString, jint paramStringOffset) { - CHECK_EXISTS(glGetProgramStringARB) GLvoid *paramString_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(paramString) + paramStringOffset); glGetProgramStringARB(target, parameterName, paramString_ptr); CHECK_GL_ERROR @@ -244,11 +211,33 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramStringARB * Class: org.lwjgl.opengl.ARBProgram * Method: glIsProgramARB */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBProgram_glIsProgramARB +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBProgram_glIsProgramARB (JNIEnv * env, jclass clazz, jint program) { - CHECK_EXISTS(glIsProgramARB) GLboolean result = glIsProgramARB(program); CHECK_GL_ERROR return result; } + +void extgl_InitARBProgram(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglProgramStringARB", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglProgramStringARB, "glProgramStringARB", (void**)&glProgramStringARB}, + {"glBindProgramARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_glBindProgramARB, "glBindProgramARB", (void**)&glBindProgramARB}, + {"nglDeleteProgramsARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglDeleteProgramsARB, "glDeleteProgramsARB", (void**)&glDeleteProgramsARB}, + {"nglGenProgramsARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglGenProgramsARB, "glGenProgramsARB", (void**)&glGenProgramsARB}, + {"glProgramEnvParameter4fARB", "(IIFFFF)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_glProgramEnvParameter4fARB, "glProgramEnvParameter4fARB", (void**)&glProgramEnvParameter4fARB}, + {"nglProgramEnvParameter4fvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fvARB, "glProgramEnvParameter4fvARB", (void**)&glProgramEnvParameter4fvARB}, + {"glProgramLocalParameter4fARB", "(IIFFFF)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_glProgramLocalParameter4fARB, "glProgramLocalParameter4fARB", (void**)&glProgramLocalParameter4fARB}, + {"nglProgramLocalParameter4fvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fvARB, "glProgramLocalParameter4fvARB", (void**)&glProgramLocalParameter4fvARB}, + {"nglGetProgramEnvParameterfvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglGetProgramEnvParameterfvARB, "glGetProgramEnvParameterfvARB", (void**)&glGetProgramEnvParameterfvARB}, + {"nglGetProgramLocalParameterfvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglGetProgramLocalParameterfvARB, "glGetProgramLocalParameterfvARB", (void**)&glGetProgramLocalParameterfvARB}, + {"nglGetProgramivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglGetProgramivARB, "glGetProgramivARB", (void**)&glGetProgramivARB}, + {"nglGetProgramStringARB", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBProgram_nglGetProgramStringARB, "glGetProgramStringARB", (void**)&glGetProgramStringARB}, + {"glIsProgramARB", "(I)Z", (void*)&Java_org_lwjgl_opengl_ARBProgram_glIsProgramARB, "glIsProgramARB", (void**)&glIsProgramARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBProgram"); + extgl_InitializeClass(env, clazz, NULL, "", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBProgram.h b/src/native/common/arb/org_lwjgl_opengl_ARBProgram.h deleted file mode 100644 index f19bb752..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBProgram.h +++ /dev/null @@ -1,141 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBProgram -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBProgram -#define _Included_org_lwjgl_opengl_ARBProgram - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglProgramStringARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramStringARB - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: glBindProgramARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glBindProgramARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglDeleteProgramsARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglDeleteProgramsARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglGenProgramsARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGenProgramsARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: glProgramEnvParameter4fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramEnvParameter4fARB - (JNIEnv *, jclass, jint, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglProgramEnvParameter4fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramEnvParameter4fvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: glProgramLocalParameter4fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_glProgramLocalParameter4fARB - (JNIEnv *, jclass, jint, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglProgramLocalParameter4fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglProgramLocalParameter4fvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglGetProgramEnvParameterfvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramEnvParameterfvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglGetProgramLocalParameterfvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramLocalParameterfvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglGetProgramivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: nglGetProgramStringARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBProgram_nglGetProgramStringARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBProgram - * Method: glIsProgramARB - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBProgram_glIsProgramARB - (JNIEnv *, jclass, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBShaderObjects.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBShaderObjects.cpp index 27adfa83..34136692 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBShaderObjects.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBShaderObjects.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBShaderObjects // ---------------------------------- -#include "org_lwjgl_opengl_ARBShaderObjects.h" #include "extgl.h" #include "checkGLerror.h" @@ -127,62 +126,13 @@ static int sourceCount; static GLcharARB** sources = new GLcharARB*[initialSourcesSize]; static GLint* sourcesLengths = new GLint[initialSourcesSize]; -void extgl_InitARBShaderObjects(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_shader_objects) - return; - - glDeleteObjectARB = (glDeleteObjectARBPROC) extgl_GetProcAddress("glDeleteObjectARB");; - glGetHandleARB = (glGetHandleARBPROC) extgl_GetProcAddress("glGetHandleARB"); - glDetachObjectARB = (glDetachObjectARBPROC) extgl_GetProcAddress("glDetachObjectARB"); - glCreateShaderObjectARB = (glCreateShaderObjectARBPROC) extgl_GetProcAddress("glCreateShaderObjectARB"); - glShaderSourceARB = (glShaderSourceARBPROC) extgl_GetProcAddress("glShaderSourceARB"); - glCompileShaderARB = (glCompileShaderARBPROC) extgl_GetProcAddress("glCompileShaderARB"); - glCreateProgramObjectARB = (glCreateProgramObjectARBPROC) extgl_GetProcAddress("glCreateProgramObjectARB"); - glAttachObjectARB = (glAttachObjectARBPROC) extgl_GetProcAddress("glAttachObjectARB"); - glLinkProgramARB = (glLinkProgramARBPROC) extgl_GetProcAddress("glLinkProgramARB"); - glUseProgramObjectARB = (glUseProgramObjectARBPROC) extgl_GetProcAddress("glUseProgramObjectARB"); - glValidateProgramARB = (glValidateProgramARBPROC) extgl_GetProcAddress("glValidateProgramARB"); - glUniform1fARB = (glUniform1fARBPROC) extgl_GetProcAddress("glUniform1fARB"); - glUniform2fARB = (glUniform2fARBPROC) extgl_GetProcAddress("glUniform2fARB"); - glUniform3fARB = (glUniform3fARBPROC) extgl_GetProcAddress("glUniform3fARB"); - glUniform4fARB = (glUniform4fARBPROC) extgl_GetProcAddress("glUniform4fARB"); - glUniform1iARB = (glUniform1iARBPROC) extgl_GetProcAddress("glUniform1iARB"); - glUniform2iARB = (glUniform2iARBPROC) extgl_GetProcAddress("glUniform2iARB"); - glUniform3iARB = (glUniform3iARBPROC) extgl_GetProcAddress("glUniform3iARB"); - glUniform4iARB = (glUniform4iARBPROC) extgl_GetProcAddress("glUniform4iARB"); - glUniform1fvARB = (glUniform1fvARBPROC) extgl_GetProcAddress("glUniform1fvARB"); - glUniform2fvARB = (glUniform2fvARBPROC) extgl_GetProcAddress("glUniform2fvARB"); - glUniform3fvARB = (glUniform3fvARBPROC) extgl_GetProcAddress("glUniform3fvARB"); - glUniform4fvARB = (glUniform4fvARBPROC) extgl_GetProcAddress("glUniform4fvARB"); - glUniform1ivARB = (glUniform1ivARBPROC ) extgl_GetProcAddress("glUniform1ivARB"); - glUniform2ivARB = (glUniform2ivARBPROC) extgl_GetProcAddress("glUniform2ivARB"); - glUniform3ivARB = (glUniform3ivARBPROC) extgl_GetProcAddress("glUniform3ivARB"); - glUniform4ivARB = (glUniform4ivARBPROC) extgl_GetProcAddress("glUniform4ivARB"); - glUniformMatrix2fvARB = (glUniformMatrix2fvARBPROC) extgl_GetProcAddress("glUniformMatrix2fvARB"); - glUniformMatrix3fvARB = (glUniformMatrix3fvARBPROC) extgl_GetProcAddress("glUniformMatrix3fvARB"); - glUniformMatrix4fvARB = (glUniformMatrix4fvARBPROC) extgl_GetProcAddress("glUniformMatrix4fvARB"); - glGetObjectParameterfvARB = (glGetObjectParameterfvARBPROC) extgl_GetProcAddress("glGetObjectParameterfvARB"); - glGetObjectParameterivARB = (glGetObjectParameterivARBPROC) extgl_GetProcAddress("glGetObjectParameterivARB"); - glGetInfoLogARB = (glGetInfoLogARBPROC) extgl_GetProcAddress("glGetInfoLogARB"); - glGetAttachedObjectsARB = (glGetAttachedObjectsARBPROC) extgl_GetProcAddress("glGetAttachedObjectsARB"); - glGetUniformLocationARB = (glGetUniformLocationARBPROC) extgl_GetProcAddress("glGetUniformLocationARB"); - glGetActiveUniformARB = (glGetActiveUniformARBPROC) extgl_GetProcAddress("glGetActiveUniformARB"); - glGetUniformfvARB = (glGetUniformfvARBPROC) extgl_GetProcAddress("glGetUniformfvARB"); - glGetUniformivARB = (glGetUniformivARBPROC) extgl_GetProcAddress("glGetUniformivARB"); - glGetShaderSourceARB = (glGetShaderSourceARBPROC) extgl_GetProcAddress("glGetShaderSourceARB"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_shader_objects) -} - /* * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glDeleteObjectARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDeleteObjectARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDeleteObjectARB (JNIEnv * env, jclass clazz, jint obj) { - CHECK_EXISTS(glDeleteObjectARB) glDeleteObjectARB(obj); CHECK_GL_ERROR } @@ -191,10 +141,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDeleteObjectARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glGetHandleARB */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glGetHandleARB +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glGetHandleARB (JNIEnv * env, jclass clazz, jint pname) { - CHECK_EXISTS(glGetHandleARB) GLhandleARB result = glGetHandleARB(pname); CHECK_GL_ERROR return result; @@ -204,10 +153,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glGetHandleARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glDetachObjectARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDetachObjectARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDetachObjectARB (JNIEnv * env, jclass clazz, jint containerObj, jint attachedObj) { - CHECK_EXISTS(glDetachObjectARB) glDetachObjectARB(containerObj, attachedObj); CHECK_GL_ERROR } @@ -216,10 +164,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDetachObjectARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glCreateShaderObjectARB */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateShaderObjectARB +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateShaderObjectARB (JNIEnv * env, jclass clazz, jint shaderType) { - CHECK_EXISTS(glCreateShaderObjectARB) GLhandleARB result = glCreateShaderObjectARB(shaderType); CHECK_GL_ERROR return result; @@ -229,7 +176,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateShaderObje * Class: org.lwjgl.opengl.ARBShaderObjects * Method: initShaderSource */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_initShaderSource +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_initShaderSource (JNIEnv * env, jclass clazz, jint count) { sourceCount = count; @@ -249,7 +196,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_initShaderSource * Class: org.lwjgl.opengl.ARBShaderObjects * Method: setShaderString */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_setShaderString +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_setShaderString (JNIEnv * env, jclass clazz, jint index, jobject string, jint stringOffset, jint stringLength) { GLcharARB *string_ptr = (GLcharARB *)((GLubyte *)env->GetDirectBufferAddress(string) + stringOffset); @@ -262,10 +209,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_setShaderString * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglShaderSourceARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglShaderSourceARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglShaderSourceARB (JNIEnv * env, jclass clazz, jint shaderObj) { - CHECK_EXISTS(glShaderSourceARB) glShaderSourceARB(shaderObj, sourceCount, (const GLcharARB **)sources, (const GLint *)sourcesLengths); CHECK_GL_ERROR } @@ -274,10 +220,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglShaderSourceARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glCompileShaderARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCompileShaderARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCompileShaderARB (JNIEnv * env, jclass clazz, jint shaderObj) { - CHECK_EXISTS(glCompileShaderARB) glCompileShaderARB(shaderObj); CHECK_GL_ERROR } @@ -286,10 +231,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCompileShaderARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glCreateProgramObjectARB */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateProgramObjectARB +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateProgramObjectARB (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glCreateProgramObjectARB) GLuint result = glCreateProgramObjectARB(); CHECK_GL_ERROR return result; @@ -299,10 +243,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateProgramObj * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glAttachObjectARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glAttachObjectARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glAttachObjectARB (JNIEnv * env, jclass clazz, jint containerObj, jint obj) { - CHECK_EXISTS(glAttachObjectARB) glAttachObjectARB(containerObj, obj); CHECK_GL_ERROR } @@ -311,10 +254,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glAttachObjectARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glLinkProgramARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glLinkProgramARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glLinkProgramARB (JNIEnv * env, jclass clazz, jint programObj) { - CHECK_EXISTS(glLinkProgramARB) glLinkProgramARB(programObj); CHECK_GL_ERROR } @@ -323,10 +265,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glLinkProgramARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUseProgramObjectARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUseProgramObjectARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUseProgramObjectARB (JNIEnv * env, jclass clazz, jint programObj) { - CHECK_EXISTS(glUseProgramObjectARB) glUseProgramObjectARB(programObj); CHECK_GL_ERROR } @@ -335,10 +276,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUseProgramObject * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glValidateProgramARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glValidateProgramARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glValidateProgramARB (JNIEnv * env, jclass clazz, jint programObj) { - CHECK_EXISTS(glValidateProgramARB) glValidateProgramARB(programObj); CHECK_GL_ERROR } @@ -347,10 +287,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glValidateProgramA * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform1fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1fARB (JNIEnv * env, jclass clazz, jint location, jfloat v0) { - CHECK_EXISTS(glUniform1fARB) glUniform1fARB(location, v0); CHECK_GL_ERROR } @@ -359,10 +298,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1fARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform2fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2fARB (JNIEnv * env, jclass clazz, jint location, jfloat v0, jfloat v1) { - CHECK_EXISTS(glUniform2fARB) glUniform2fARB(location, v0, v1); CHECK_GL_ERROR } @@ -371,10 +309,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2fARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform3fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3fARB (JNIEnv * env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2) { - CHECK_EXISTS(glUniform3fARB) glUniform3fARB(location, v0, v1, v2); CHECK_GL_ERROR } @@ -383,10 +320,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3fARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform4fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4fARB (JNIEnv * env, jclass clazz, jint location, jfloat v0, jfloat v1, jfloat v2, jfloat v3) { - CHECK_EXISTS(glUniform4fARB) glUniform4fARB(location, v0, v1, v2, v3); CHECK_GL_ERROR } @@ -395,10 +331,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4fARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform1iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1iARB (JNIEnv * env, jclass clazz, jint location, jint v0) { - CHECK_EXISTS(glUniform1iARB) glUniform1iARB(location, v0); CHECK_GL_ERROR } @@ -407,10 +342,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1iARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform2iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2iARB (JNIEnv * env, jclass clazz, jint location, jint v0, jint v1) { - CHECK_EXISTS(glUniform2iARB) glUniform2iARB(location, v0, v1); CHECK_GL_ERROR } @@ -419,10 +353,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2iARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform3iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3iARB (JNIEnv * env, jclass clazz, jint location, jint v0, jint v1, jint v2) { - CHECK_EXISTS(glUniform3iARB) glUniform3iARB(location, v0, v1, v2); CHECK_GL_ERROR } @@ -431,10 +364,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3iARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: glUniform4iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4iARB (JNIEnv * env, jclass clazz, jint location, jint v0, jint v1, jint v2, jint v3) { - CHECK_EXISTS(glUniform4iARB) glUniform4iARB(location, v0, v1, v2, v3); CHECK_GL_ERROR } @@ -443,10 +375,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4iARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform1fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fvARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform1fvARB) GLfloat *values_ptr = (GLfloat *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform1fvARB(location, count, values_ptr); CHECK_GL_ERROR @@ -456,10 +387,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fvARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform2fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fvARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform2fvARB) GLfloat *values_ptr = (GLfloat *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform2fvARB(location, count, values_ptr); CHECK_GL_ERROR @@ -469,10 +399,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fvARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform3fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fvARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform3fvARB) GLfloat *values_ptr = (GLfloat *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform3fvARB(location, count, values_ptr); CHECK_GL_ERROR @@ -482,10 +411,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fvARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform4fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fvARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform4fvARB) GLfloat *values_ptr = (GLfloat *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform4fvARB(location, count, values_ptr); CHECK_GL_ERROR @@ -495,10 +423,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fvARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform1ivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1ivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1ivARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform1ivARB) GLint *values_ptr = (GLint *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform1ivARB(location, count, values_ptr); CHECK_GL_ERROR @@ -508,10 +435,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1ivARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform2ivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2ivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2ivARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform2ivARB) GLint *values_ptr = (GLint *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform2ivARB(location, count, values_ptr); CHECK_GL_ERROR @@ -521,10 +447,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2ivARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform3ivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3ivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3ivARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform3ivARB) GLint *values_ptr = (GLint *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform3ivARB(location, count, values_ptr); CHECK_GL_ERROR @@ -534,10 +459,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3ivARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniform4ivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4ivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4ivARB (JNIEnv * env, jclass clazz, jint location, jint count, jobject values, jint valuesOffset) { - CHECK_EXISTS(glUniform4ivARB) GLint *values_ptr = (GLint *)env->GetDirectBufferAddress(values) + valuesOffset; glUniform4ivARB(location, count, values_ptr); CHECK_GL_ERROR @@ -547,10 +471,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4ivARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniformMatrix2fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix2fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix2fvARB (JNIEnv * env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matricesOffset) { - CHECK_EXISTS(glUniformMatrix2fvARB) GLfloat *matrices_ptr = (GLfloat *)env->GetDirectBufferAddress(matrices) + matricesOffset; glUniformMatrix2fvARB(location, count, transpose, matrices_ptr); CHECK_GL_ERROR @@ -560,10 +483,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix2f * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniformMatrix3fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix3fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix3fvARB (JNIEnv * env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matricesOffset) { - CHECK_EXISTS(glUniformMatrix3fvARB) GLfloat *matrices_ptr = (GLfloat *)env->GetDirectBufferAddress(matrices) + matricesOffset; glUniformMatrix3fvARB(location, count, transpose, matrices_ptr); CHECK_GL_ERROR @@ -573,10 +495,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix3f * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglUniformMatrix4fvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix4fvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix4fvARB (JNIEnv * env, jclass clazz, jint location, jint count, jboolean transpose, jobject matrices, jint matricesOffset) { - CHECK_EXISTS(glUniformMatrix4fvARB) GLfloat *matrices_ptr = (GLfloat *)env->GetDirectBufferAddress(matrices) + matricesOffset; glUniformMatrix4fvARB(location, count, transpose, matrices_ptr); CHECK_GL_ERROR @@ -586,10 +507,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix4f * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetObjectParameterfvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterfvARB (JNIEnv * env, jclass clazz, jint obj, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetObjectParameterfvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetObjectParameterfvARB(obj, pname, params_ptr); CHECK_GL_ERROR @@ -599,10 +519,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParame * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetObjectParameterivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterivARB (JNIEnv * env, jclass clazz, jint obj, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetObjectParameterivARB) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetObjectParameterivARB(obj, pname, params_ptr); CHECK_GL_ERROR @@ -612,10 +531,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParame * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetInfoLogARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetInfoLogARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetInfoLogARB (JNIEnv * env, jclass clazz, jint obj, jint maxLength, jobject length, jint lengthOffset, jobject infoLog, jint infoLogOffset) { - CHECK_EXISTS(glGetInfoLogARB) GLubyte *infoLog_ptr = (GLubyte *)env->GetDirectBufferAddress(infoLog) + infoLogOffset; @@ -633,10 +551,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetInfoLogARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetAttachedObjectsARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetAttachedObjectsARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetAttachedObjectsARB (JNIEnv * env, jclass clazz, jint containerObj, jint maxCount, jobject count, jint countOffset, jobject obj, jint objOffset) { - CHECK_EXISTS(glGetAttachedObjectsARB) GLuint *obj_ptr = (GLuint *)env->GetDirectBufferAddress(obj) + objOffset; @@ -654,10 +571,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetAttachedObje * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetUniformLocationARB */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformLocationARB +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformLocationARB (JNIEnv * env, jclass clazz, jint programObj, jobject name, jint nameOffset) { - CHECK_EXISTS(glGetUniformLocationARB) GLubyte *name_ptr = (GLubyte *)env->GetDirectBufferAddress(name) + nameOffset; GLuint result = glGetUniformLocationARB(programObj, name_ptr); CHECK_GL_ERROR @@ -668,10 +584,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformLocat * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetActiveUniformARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetActiveUniformARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetActiveUniformARB (JNIEnv * env, jclass clazz, jint programObj, jint index, jint maxLength, jobject length, jint lengthOffset, jobject size, jint sizeOffset, jobject type, jint typeOffset, jobject name, jint nameOffset) { - CHECK_EXISTS(glGetActiveUniformARB) GLint *size_ptr = (GLint *)env->GetDirectBufferAddress(size) + sizeOffset; GLenum *type_ptr = (GLenum *)env->GetDirectBufferAddress(type) + typeOffset; @@ -691,10 +606,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetActiveUnifor * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetUniformfvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformfvARB (JNIEnv * env, jclass clazz, jint programObj, jint location, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetUniformfvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetUniformfvARB(programObj, location, params_ptr); CHECK_GL_ERROR @@ -704,10 +618,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformfvARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetUniformivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformivARB (JNIEnv * env, jclass clazz, jint programObj, jint location, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetUniformivARB) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetUniformivARB(programObj, location, params_ptr); CHECK_GL_ERROR @@ -717,11 +630,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformivARB * Class: org.lwjgl.opengl.ARBShaderObjects * Method: nglGetShaderSourceARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetShaderSourceARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetShaderSourceARB (JNIEnv * env, jclass clazz, jint obj, jint maxLength, jobject length, jint lengthOffset, jobject source, jint sourceOffset) { - CHECK_EXISTS(glGetShaderSourceARB) - GLubyte *source_ptr = (GLubyte *)env->GetDirectBufferAddress(source) + sourceOffset; if ( length == NULL ) { @@ -733,3 +644,55 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetShaderSource CHECK_GL_ERROR } + +void extgl_InitARBShaderObjects(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glDeleteObjectARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glDeleteObjectARB, "glDeleteObjectARB", (void**)&glDeleteObjectARB}, + {"glGetHandleARB", "(I)I", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glGetHandleARB, "glGetHandleARB", (void**)&glGetHandleARB}, + {"glDetachObjectARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glDetachObjectARB, "glDetachObjectARB", (void**)&glDetachObjectARB}, + {"glCreateShaderObjectARB", "(I)I", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glCreateShaderObjectARB, "glCreateShaderObjectARB", (void**)&glCreateShaderObjectARB}, + {"initShaderSource", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_initShaderSource, NULL, NULL}, + {"setShaderString", "(ILjava/nio/ByteBuffer;II)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_setShaderString, NULL, NULL}, + {"nglShaderSourceARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglShaderSourceARB, "glShaderSourceARB", (void**)&glShaderSourceARB}, + {"glCompileShaderARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glCompileShaderARB, "glCompileShaderARB", (void**)&glCompileShaderARB}, + {"glCreateProgramObjectARB", "()I", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glCreateProgramObjectARB, "glCreateProgramObjectARB", (void**)&glCreateProgramObjectARB}, + {"glAttachObjectARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glAttachObjectARB, "glAttachObjectARB", (void**)&glAttachObjectARB}, + {"glLinkProgramARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glLinkProgramARB, "glLinkProgramARB", (void**)&glLinkProgramARB}, + {"glUseProgramObjectARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUseProgramObjectARB, "glUseProgramObjectARB", (void**)&glUseProgramObjectARB}, + {"glValidateProgramARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glValidateProgramARB, "glValidateProgramARB", (void**)&glValidateProgramARB}, + {"glUniform1fARB", "(IF)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1fARB, "glUniform1fARB", (void**)&glUniform1fARB}, + {"glUniform2fARB", "(IFF)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2fARB, "glUniform2fARB", (void**)&glUniform2fARB}, + {"glUniform3fARB", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3fARB, "glUniform3fARB", (void**)&glUniform3fARB}, + {"glUniform4fARB", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4fARB, "glUniform4fARB", (void**)&glUniform4fARB}, + {"glUniform1iARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1iARB, "glUniform1iARB", (void**)&glUniform1iARB}, + {"glUniform2iARB", "(III)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2iARB, "glUniform2iARB", (void**)&glUniform2iARB}, + {"glUniform3iARB", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3iARB, "glUniform3iARB", (void**)&glUniform3iARB}, + {"glUniform4iARB", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4iARB, "glUniform4iARB", (void**)&glUniform4iARB}, + {"nglUniform1fvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fvARB, "glUniform1fvARB", (void**)&glUniform1fvARB}, + {"nglUniform2fvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fvARB, "glUniform2fvARB", (void**)&glUniform2fvARB}, + {"nglUniform3fvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fvARB, "glUniform3fvARB", (void**)&glUniform3fvARB}, + {"nglUniform4fvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fvARB, "glUniform4fvARB", (void**)&glUniform4fvARB}, + {"nglUniform1ivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1ivARB, "glUniform1ivARB", (void**)&glUniform1ivARB}, + {"nglUniform2ivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2ivARB, "glUniform2ivARB", (void**)&glUniform2ivARB}, + {"nglUniform3ivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3ivARB, "glUniform3ivARB", (void**)&glUniform3ivARB}, + {"nglUniform4ivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4ivARB, "glUniform4ivARB", (void**)&glUniform4ivARB}, + {"nglUniformMatrix2fvARB", "(IIZLjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix2fvARB, "glUniformMatrix2fvARB", (void**)&glUniformMatrix2fvARB}, + {"nglUniformMatrix3fvARB", "(IIZLjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix3fvARB, "glUniformMatrix3fvARB", (void**)&glUniformMatrix3fvARB}, + {"nglUniformMatrix4fvARB", "(IIZLjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix4fvARB, "glUniformMatrix4fvARB", (void**)&glUniformMatrix4fvARB}, + {"nglGetObjectParameterfvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterfvARB, "glGetObjectParameterfvARB", (void**)&glGetObjectParameterfvARB}, + {"nglGetObjectParameterivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterivARB, "glGetObjectParameterivARB", (void**)&glGetObjectParameterivARB}, + {"nglGetInfoLogARB", "(IILjava/nio/IntBuffer;ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetInfoLogARB, "glGetInfoLogARB", (void**)&glGetInfoLogARB}, + {"nglGetAttachedObjectsARB", "(IILjava/nio/IntBuffer;ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetAttachedObjectsARB, "glGetAttachedObjectsARB", (void**)&glGetAttachedObjectsARB}, + {"nglGetUniformLocationARB", "(ILjava/nio/ByteBuffer;I)I", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformLocationARB, "glGetUniformLocationARB", (void**)&glGetUniformLocationARB}, + {"nglGetActiveUniformARB", "(IIILjava/nio/IntBuffer;ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetActiveUniformARB, "glGetActiveUniformARB", (void**)&glGetActiveUniformARB}, + {"nglGetUniformfvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformfvARB, "glGetUniformfvARB", (void**)&glGetUniformfvARB}, + {"nglGetUniformivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformivARB, "glGetUniformivARB", (void**)&glGetUniformivARB}, + {"nglGetShaderSourceARB", "(IILjava/nio/IntBuffer;ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBShaderObjects_nglGetShaderSourceARB, "glGetShaderSourceARB", (void**)&glGetShaderSourceARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBShaderObjects"); + if (extgl_Extensions.GL_ARB_shader_objects) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_shader_objects", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBShaderObjects.h b/src/native/common/arb/org_lwjgl_opengl_ARBShaderObjects.h deleted file mode 100644 index 1dce3e2a..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBShaderObjects.h +++ /dev/null @@ -1,337 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBShaderObjects -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBShaderObjects -#define _Included_org_lwjgl_opengl_ARBShaderObjects - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glDeleteObjectARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDeleteObjectARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glGetHandleARB - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glGetHandleARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glDetachObjectARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glDetachObjectARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glCreateShaderObjectARB - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateShaderObjectARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: initShaderSource - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_initShaderSource - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: setShaderString - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_setShaderString - (JNIEnv *, jclass, jint, jobject, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglShaderSourceARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglShaderSourceARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glCompileShaderARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCompileShaderARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glCreateProgramObjectARB - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glCreateProgramObjectARB - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glAttachObjectARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glAttachObjectARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glLinkProgramARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glLinkProgramARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUseProgramObjectARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUseProgramObjectARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glValidateProgramARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glValidateProgramARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform1fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1fARB - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform2fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2fARB - (JNIEnv *, jclass, jint, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform3fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3fARB - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform4fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4fARB - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform1iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform1iARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform2iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform2iARB - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform3iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform3iARB - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: glUniform4iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_glUniform4iARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform1fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1fvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform2fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2fvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform3fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3fvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform4fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4fvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform1ivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform1ivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform2ivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform2ivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform3ivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform3ivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniform4ivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniform4ivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniformMatrix2fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix2fvARB - (JNIEnv *, jclass, jint, jint, jboolean, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniformMatrix3fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix3fvARB - (JNIEnv *, jclass, jint, jint, jboolean, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglUniformMatrix4fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglUniformMatrix4fvARB - (JNIEnv *, jclass, jint, jint, jboolean, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetObjectParameterfvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterfvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetObjectParameterivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetObjectParameterivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetInfoLogARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetInfoLogARB - (JNIEnv *, jclass, jint, jint, jobject, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetAttachedObjectsARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetAttachedObjectsARB - (JNIEnv *, jclass, jint, jint, jobject, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetUniformLocationARB - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformLocationARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetActiveUniformARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetActiveUniformARB - (JNIEnv *, jclass, jint, jint, jint, jobject, jint, jobject, jint, jobject, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetUniformfvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformfvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetUniformivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetUniformivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBShaderObjects - * Method: nglGetShaderSourceARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBShaderObjects_nglGetShaderSourceARB - (JNIEnv *, jclass, jint, jint, jobject, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.cpp index 1ba9a7e0..e5dce508 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBTextureCompression // ---------------------------------- -#include "org_lwjgl_opengl_ARBTextureCompression.h" #include "extgl.h" #include "checkGLerror.h" @@ -54,28 +53,13 @@ static glCompressedTexSubImage2DARBPROC glCompressedTexSubImage2DARB; static glCompressedTexSubImage1DARBPROC glCompressedTexSubImage1DARB; static glGetCompressedTexImageARBPROC glGetCompressedTexImageARB; -void extgl_InitARBTextureCompression(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_texture_compression) - return; - glCompressedTexImage3DARB = (glCompressedTexImage3DARBPROC) extgl_GetProcAddress("glCompressedTexImage3DARB"); - glCompressedTexImage2DARB = (glCompressedTexImage2DARBPROC) extgl_GetProcAddress("glCompressedTexImage2DARB"); - glCompressedTexImage1DARB = (glCompressedTexImage1DARBPROC) extgl_GetProcAddress("glCompressedTexImage1DARB"); - glCompressedTexSubImage3DARB = (glCompressedTexSubImage3DARBPROC) extgl_GetProcAddress("glCompressedTexSubImage3DARB"); - glCompressedTexSubImage2DARB = (glCompressedTexSubImage2DARBPROC) extgl_GetProcAddress("glCompressedTexSubImage2DARB"); - glCompressedTexSubImage1DARB = (glCompressedTexSubImage1DARBPROC) extgl_GetProcAddress("glCompressedTexSubImage1DARB"); - glGetCompressedTexImageARB = (glGetCompressedTexImageARBPROC) extgl_GetProcAddress("glGetCompressedTexImageARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_texture_compression) -} - /* * Class: org.lwjgl.opengl.ARBTextureCompression * Method: nglCompressedTexImage1DARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imageSize, jobject pData, jint pData_offset) { - CHECK_EXISTS(glCompressedTexImage1DARB) GLvoid *pData_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pData) + pData_offset); glCompressedTexImage1DARB(target, level, internalformat, width, border, imageSize, pData_ptr); CHECK_GL_ERROR @@ -85,10 +69,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressed * Class: org.lwjgl.opengl.ARBTextureCompression * Method: nglCompressedTexImage2DARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imageSize, jobject pData, jint pData_offset) { - CHECK_EXISTS(glCompressedTexImage2DARB) GLvoid *pData_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pData) + pData_offset); glCompressedTexImage2DARB(target, level, internalformat, width, height, border, imageSize, pData_ptr); CHECK_GL_ERROR @@ -98,10 +81,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressed * Class: org.lwjgl.opengl.ARBTextureCompression * Method: nglCompressedTexImage3DARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB (JNIEnv * env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imageSize, jobject pData, jint pData_offset) { - CHECK_EXISTS(glCompressedTexImage3DARB) GLvoid *pData_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pData) + pData_offset); glCompressedTexImage3DARB(target, level, internalformat, width, height, depth, border, imageSize, pData_ptr); CHECK_GL_ERROR @@ -111,10 +93,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressed * Class: org.lwjgl.opengl.ARBTextureCompression * Method: nglCompressedTexSubImage1DARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint border, jint imageSize, jobject pData, jint pData_offset) { - CHECK_EXISTS(glCompressedTexSubImage1DARB) GLvoid *pData_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pData) + pData_offset); glCompressedTexSubImage1DARB(target, level, xoffset, width, border, imageSize, pData_ptr); CHECK_GL_ERROR @@ -124,10 +105,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressed * Class: org.lwjgl.opengl.ARBTextureCompression * Method: nglCompressedTexSubImage2DARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint border, jint imageSize, jobject pData, jint pData_offset) { - CHECK_EXISTS(glCompressedTexSubImage2DARB) GLvoid *pData_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pData) + pData_offset); glCompressedTexSubImage2DARB(target, level, xoffset, yoffset, width, height, border, imageSize, pData_ptr); CHECK_GL_ERROR @@ -137,10 +117,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressed * Class: org.lwjgl.opengl.ARBTextureCompression * Method: nglCompressedTexSubImage3DARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB (JNIEnv * env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint border, jint imageSize, jobject pData, jint pData_offset) { - CHECK_EXISTS(glCompressedTexSubImage3DARB) GLvoid *pData_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pData) + pData_offset); glCompressedTexSubImage3DARB(target, level, xoffset, yoffset, zoffset, width, height, depth, border, imageSize, pData_ptr); CHECK_GL_ERROR @@ -150,11 +129,28 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressed * Class: org.lwjgl.opengl.ARBTextureCompression * Method: nglGetCompressedTexImageARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB (JNIEnv * env, jclass clazz, jint target, jint lod, jobject pImg, jint pImg_offset) { - CHECK_EXISTS(glGetCompressedTexImageARB) GLvoid *pImg_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pImg) + pImg_offset); glGetCompressedTexImageARB(target, lod, pImg_ptr); CHECK_GL_ERROR } + +void extgl_InitARBTextureCompression(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglCompressedTexImage1DARB", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB, "glCompressedTexImage1DARB", (void**)&glCompressedTexImage1DARB}, + {"nglCompressedTexImage2DARB", "(IIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB, "glCompressedTexImage2DARB", (void**)&glCompressedTexImage2DARB}, + {"nglCompressedTexImage3DARB", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB, "glCompressedTexImage3DARB", (void**)&glCompressedTexImage3DARB}, + {"nglCompressedTexSubImage1DARB", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB, "glCompressedTexSubImage1DARB", (void**)&glCompressedTexSubImage1DARB}, + {"nglCompressedTexSubImage2DARB", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB, "glCompressedTexSubImage2DARB", (void**)&glCompressedTexSubImage2DARB}, + {"nglCompressedTexSubImage3DARB", "(IIIIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB, "glCompressedTexSubImage3DARB", (void**)&glCompressedTexSubImage3DARB}, + {"nglGetCompressedTexImageARB", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB, "glGetCompressedTexImageARB", (void**)&glGetCompressedTexImageARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBTextureCompression"); + if (extgl_Extensions.GL_ARB_texture_compression) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_texture_compression", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.h b/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.h deleted file mode 100644 index 544a606b..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBTextureCompression.h +++ /dev/null @@ -1,99 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBTextureCompression -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBTextureCompression -#define _Included_org_lwjgl_opengl_ARBTextureCompression - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage1DARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage1DARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage2DARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage2DARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexImage3DARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexImage3DARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage1DARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage1DARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage2DARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage2DARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglCompressedTexSubImage3DARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglCompressedTexSubImage3DARB - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBTextureCompression - * Method: nglGetCompressedTexImageARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTextureCompression_nglGetCompressedTexImageARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBTransposeMatrix.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBTransposeMatrix.cpp index 8e59b133..2a4de3b9 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBTransposeMatrix.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBTransposeMatrix.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBTransposeMatrix // ---------------------------------- -#include "org_lwjgl_opengl_ARBTransposeMatrix.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glMultTransposeMatrixfARBPROC) (const GLfloat m[16] ); static glLoadTransposeMatrixfARBPROC glLoadTransposeMatrixfARB; static glMultTransposeMatrixfARBPROC glMultTransposeMatrixfARB; -void extgl_InitARBTransposeMatrix(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_transpose_matrix) - return; - glLoadTransposeMatrixfARB = (glLoadTransposeMatrixfARBPROC) extgl_GetProcAddress("glLoadTransposeMatrixfARB"); - glMultTransposeMatrixfARB = (glMultTransposeMatrixfARBPROC) extgl_GetProcAddress("glMultTransposeMatrixfARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_transpose_matrix) -} - /* * Class: org.lwjgl.opengl.ARBTransposeMatrix * Method: nglLoadTransposeMatrixfARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglLoadTransposeMatrixfARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglLoadTransposeMatrixfARB (JNIEnv * env, jclass clazz, jobject pfMtx, jint pfMtx_offset) { - CHECK_EXISTS(glLoadTransposeMatrixfARB) GLfloat *pfMtx_ptr = (GLfloat *)env->GetDirectBufferAddress(pfMtx) + pfMtx_offset; glLoadTransposeMatrixfARB(pfMtx_ptr); CHECK_GL_ERROR @@ -70,11 +59,23 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglLoadTranspose * Class: org.lwjgl.opengl.ARBTransposeMatrix * Method: nglMultTransposeMatrixfARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglMultTransposeMatrixfARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglMultTransposeMatrixfARB (JNIEnv * env, jclass clazz, jobject pfMtx, jint pfMtx_offset) { - CHECK_EXISTS(glMultTransposeMatrixfARB) GLfloat *pfMtx_ptr = (GLfloat *)env->GetDirectBufferAddress(pfMtx) + pfMtx_offset; glMultTransposeMatrixfARB(pfMtx_ptr); CHECK_GL_ERROR } + +void extgl_InitARBTransposeMatrix(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglLoadTransposeMatrixfARB", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTransposeMatrix_nglLoadTransposeMatrixfARB, "glLoadTransposeMatrixfARB", (void**)&glLoadTransposeMatrixfARB}, + {"nglMultTransposeMatrixfARB", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBTransposeMatrix_nglMultTransposeMatrixfARB, "glMultTransposeMatrixfARB", (void**)&glMultTransposeMatrixfARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBTransposeMatrix"); + if (extgl_Extensions.GL_ARB_transpose_matrix) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_transpose_matrix", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBTransposeMatrix.h b/src/native/common/arb/org_lwjgl_opengl_ARBTransposeMatrix.h deleted file mode 100644 index b3568c21..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBTransposeMatrix.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBTransposeMatrix -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBTransposeMatrix -#define _Included_org_lwjgl_opengl_ARBTransposeMatrix - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBTransposeMatrix - * Method: nglLoadTransposeMatrixfARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglLoadTransposeMatrixfARB - (JNIEnv *, jclass, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBTransposeMatrix - * Method: nglMultTransposeMatrixfARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBTransposeMatrix_nglMultTransposeMatrixfARB - (JNIEnv *, jclass, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBlend.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBVertexBlend.cpp index 89dd285a..975a0769 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBlend.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBVertexBlend.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBVertexBlend // ---------------------------------- -#include "org_lwjgl_opengl_ARBVertexBlend.h" #include "extgl.h" #include "checkGLerror.h" @@ -58,30 +57,13 @@ static glWeightuivARBPROC glWeightuivARB; static glWeightPointerARBPROC glWeightPointerARB; static glVertexBlendARBPROC glVertexBlendARB; -void extgl_InitARBVertexBlend(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_vertex_blend) - return; - glWeightbvARB = (glWeightbvARBPROC) extgl_GetProcAddress("glWeightbvARB"); - glWeightsvARB = (glWeightsvARBPROC) extgl_GetProcAddress("glWeightsvARB"); - glWeightivARB = (glWeightivARBPROC) extgl_GetProcAddress("glWeightivARB"); - glWeightfvARB = (glWeightfvARBPROC) extgl_GetProcAddress("glWeightfvARB"); - glWeightubvARB = (glWeightubvARBPROC) extgl_GetProcAddress("glWeightubvARB"); - glWeightusvARB = (glWeightusvARBPROC) extgl_GetProcAddress("glWeightusvARB"); - glWeightuivARB = (glWeightuivARBPROC) extgl_GetProcAddress("glWeightuivARB"); - glWeightPointerARB = (glWeightPointerARBPROC) extgl_GetProcAddress("glWeightPointerARB"); - glVertexBlendARB = (glVertexBlendARBPROC) extgl_GetProcAddress("glVertexBlendARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_vertex_blend) -} - /* * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightbvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightbvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightbvARB (JNIEnv * env, jclass clazz, jint size, jobject pWeights, jint pWeights_offset) { - CHECK_EXISTS(glWeightbvARB) GLbyte *pWeights_ptr = (GLbyte *)env->GetDirectBufferAddress(pWeights) + pWeights_offset; glWeightbvARB(size, pWeights_ptr); CHECK_GL_ERROR @@ -91,10 +73,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightbvARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightfvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightfvARB (JNIEnv * env, jclass clazz, jint size, jobject pfWeights, jint pfWeights_offset) { - CHECK_EXISTS(glWeightfvARB) GLfloat *pfWeights_ptr = (GLfloat *)env->GetDirectBufferAddress(pfWeights) + pfWeights_offset; glWeightfvARB(size, pfWeights_ptr); CHECK_GL_ERROR @@ -104,10 +85,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightfvARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightivARB (JNIEnv * env, jclass clazz, jint size, jobject piWeights, jint piWeights_offset) { - CHECK_EXISTS(glWeightivARB) GLint *piWeights_ptr = (GLint *)env->GetDirectBufferAddress(piWeights) + piWeights_offset; glWeightivARB(size, piWeights_ptr); CHECK_GL_ERROR @@ -117,10 +97,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightivARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightsvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightsvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightsvARB (JNIEnv * env, jclass clazz, jint size, jobject psWeights, jint psWeights_offset) { - CHECK_EXISTS(glWeightsvARB) GLshort *psWeights_ptr = (GLshort *)env->GetDirectBufferAddress(psWeights) + psWeights_offset; glWeightsvARB(size, psWeights_ptr); CHECK_GL_ERROR @@ -130,10 +109,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightsvARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightubvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightubvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightubvARB (JNIEnv * env, jclass clazz, jint size, jobject pWeights, jint pWeights_offset) { - CHECK_EXISTS(glWeightubvARB) GLubyte *pWeights_ptr = (GLubyte *)env->GetDirectBufferAddress(pWeights) + pWeights_offset; glWeightubvARB(size, pWeights_ptr); CHECK_GL_ERROR @@ -143,10 +121,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightubvARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightuivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightuivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightuivARB (JNIEnv * env, jclass clazz, jint size, jobject piWeights, jint piWeights_offset) { - CHECK_EXISTS(glWeightuivARB) GLuint *piWeights_ptr = (GLuint *)env->GetDirectBufferAddress(piWeights) + piWeights_offset; glWeightuivARB(size, piWeights_ptr); CHECK_GL_ERROR @@ -156,10 +133,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightuivARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightusvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightusvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightusvARB (JNIEnv * env, jclass clazz, jint size, jobject psWeights, jint psWeights_offset) { - CHECK_EXISTS(glWeightusvARB) GLushort *psWeights_ptr = (GLushort *)env->GetDirectBufferAddress(psWeights) + psWeights_offset; glWeightusvARB(size, psWeights_ptr); CHECK_GL_ERROR @@ -169,10 +145,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightusvARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightPointerARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARB (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_offset) { - CHECK_EXISTS(glWeightPointerARB) GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPointer) + pPointer_offset); glWeightPointerARB(size, type, stride, pPointer_ptr); CHECK_GL_ERROR @@ -182,10 +157,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARB * Class: org.lwjgl.opengl.ARBVertexBlend * Method: nglWeightPointerARBVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARBVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARBVBO (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jint buffer_offset) { - CHECK_EXISTS(glWeightPointerARB) glWeightPointerARB(size, type, stride, (GLvoid *)buffer_offset); CHECK_GL_ERROR } @@ -194,10 +168,30 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARBV * Class: org.lwjgl.opengl.ARBVertexBlend * Method: glVertexBlendARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_glVertexBlendARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_glVertexBlendARB (JNIEnv * env, jclass clazz, jint count) { - CHECK_EXISTS(glVertexBlendARB) glVertexBlendARB(count); CHECK_GL_ERROR } + +void extgl_InitARBVertexBlend(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglWeightbvARB", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightbvARB, "glWeightbvARB", (void**)&glWeightbvARB}, + {"nglWeightfvARB", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightfvARB, "glWeightfvARB", (void**)&glWeightfvARB}, + {"nglWeightivARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightivARB, "glWeightivARB", (void**)&glWeightivARB}, + {"nglWeightsvARB", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightsvARB, "glWeightsvARB", (void**)&glWeightsvARB}, + {"nglWeightubvARB", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightubvARB, "glWeightubvARB", (void**)&glWeightubvARB}, + {"nglWeightuivARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightuivARB, "glWeightuivARB", (void**)&glWeightuivARB}, + {"nglWeightusvARB", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightusvARB, "glWeightusvARB", (void**)&glWeightusvARB}, + {"nglWeightPointerARB", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARB, "glWeightPointerARB", (void**)&glWeightPointerARB}, + {"nglWeightPointerARBVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARBVBO, NULL, NULL}, + {"glVertexBlendARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBlend_glVertexBlendARB, "glVertexBlendARB", (void**)&glVertexBlendARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBVertexBlend"); + if (extgl_Extensions.GL_ARB_vertex_blend) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_vertex_blend", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBlend.h b/src/native/common/arb/org_lwjgl_opengl_ARBVertexBlend.h deleted file mode 100644 index dd057df8..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBlend.h +++ /dev/null @@ -1,120 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBVertexBlend -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBVertexBlend -#define _Included_org_lwjgl_opengl_ARBVertexBlend - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightbvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightbvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightfvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightfvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightivARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightsvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightsvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightubvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightubvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightuivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightuivARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightusvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightusvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightPointerARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARB - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: nglWeightPointerARBVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_nglWeightPointerARBVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBlend - * Method: glVertexBlendARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBlend_glVertexBlendARB - (JNIEnv *, jclass, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBufferObject.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBVertexBufferObject.cpp index 1e1400dd..fa682ea2 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBufferObject.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBVertexBufferObject.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBVertexBufferObject // ---------------------------------- -#include "org_lwjgl_opengl_ARBVertexBufferObject.h" #include "extgl.h" #include "checkGLerror.h" @@ -65,32 +64,13 @@ static glUnmapBufferARBPROC glUnmapBufferARB; static glGetBufferParameterivARBPROC glGetBufferParameterivARB; static glGetBufferPointervARBPROC glGetBufferPointervARB; -void extgl_InitARBVertexBufferObject(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_vertex_buffer_object) - return; - glBindBufferARB = (glBindBufferARBPROC) extgl_GetProcAddress("glBindBufferARB"); - glDeleteBuffersARB = (glDeleteBuffersARBPROC) extgl_GetProcAddress("glDeleteBuffersARB"); - glGenBuffersARB = (glGenBuffersARBPROC) extgl_GetProcAddress("glGenBuffersARB"); - glIsBufferARB = (glIsBufferARBPROC) extgl_GetProcAddress("glIsBufferARB"); - glBufferDataARB = (glBufferDataARBPROC) extgl_GetProcAddress("glBufferDataARB"); - glBufferSubDataARB = (glBufferSubDataARBPROC) extgl_GetProcAddress("glBufferSubDataARB"); - glGetBufferSubDataARB = (glGetBufferSubDataARBPROC) extgl_GetProcAddress("glGetBufferSubDataARB"); - glMapBufferARB = (glMapBufferARBPROC) extgl_GetProcAddress("glMapBufferARB"); - glUnmapBufferARB = (glUnmapBufferARBPROC) extgl_GetProcAddress("glUnmapBufferARB"); - glGetBufferParameterivARB = (glGetBufferParameterivARBPROC) extgl_GetProcAddress("glGetBufferParameterivARB"); - glGetBufferPointervARB = (glGetBufferPointervARBPROC) extgl_GetProcAddress("glGetBufferPointervARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_vertex_buffer_object) -} - /* * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: nglBindBufferARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBindBufferARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBindBufferARB (JNIEnv * env, jclass clazz, jint target, jint buffer) { - CHECK_EXISTS(glBindBufferARB) glBindBufferARB(target, buffer); CHECK_GL_ERROR } @@ -99,10 +79,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBindBuffer * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: nglDeleteBuffersARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglDeleteBuffersARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglDeleteBuffersARB (JNIEnv * env, jclass clazz, jint n, jobject buffers, jint buffers_offset) { - CHECK_EXISTS(glDeleteBuffersARB) GLuint *buffers_ptr = (GLuint *)env->GetDirectBufferAddress(buffers) + buffers_offset; glDeleteBuffersARB(n, buffers_ptr); CHECK_GL_ERROR @@ -112,10 +91,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglDeleteBuff * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: nglGenBuffersARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGenBuffersARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGenBuffersARB (JNIEnv * env, jclass clazz, jint n, jobject buffers, jint buffers_offset) { - CHECK_EXISTS(glGenBuffersARB) GLuint *buffers_ptr = (GLuint *)env->GetDirectBufferAddress(buffers) + buffers_offset; glGenBuffersARB(n, buffers_ptr); CHECK_GL_ERROR @@ -125,10 +103,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGenBuffers * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: glIsBufferARB */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glIsBufferARB +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glIsBufferARB (JNIEnv * env, jclass clazz, jint buffer) { - CHECK_EXISTS(glIsBufferARB) GLboolean result = glIsBufferARB(buffer); CHECK_GL_ERROR return result; @@ -138,10 +115,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glIsBuffe * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: nglBufferDataARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferDataARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferDataARB (JNIEnv * env, jclass clazz, jint target, jint size, jobject data, jint data_offset, jint usage) { - CHECK_EXISTS(glBufferDataARB) GLvoid *data_ptr = (GLvoid *)safeGetBufferAddress(env, data, data_offset); glBufferDataARB(target, size, data_ptr, usage); CHECK_GL_ERROR @@ -151,10 +127,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferData * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: nglBufferSubDataARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferSubDataARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferSubDataARB (JNIEnv * env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_offset) { - CHECK_EXISTS(glBufferSubDataARB) GLvoid *data_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(data) + data_offset); glBufferSubDataARB(target, offset, size, data_ptr); CHECK_GL_ERROR @@ -164,10 +139,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferSubD * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: nglGetBufferSubDataARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferSubDataARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferSubDataARB (JNIEnv * env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_offset) { - CHECK_EXISTS(glGetBufferSubDataARB) GLvoid *data_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(data) + data_offset); glGetBufferSubDataARB(target, offset, size, data_ptr); CHECK_GL_ERROR @@ -177,10 +151,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferS * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: glMapBufferARB */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glMapBufferARB +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glMapBufferARB (JNIEnv * env, jclass clazz, jint target, jint access, jint size, jobject oldBuffer) { - CHECK_EXISTS(glMapBufferARB) void *buffer_address = glMapBufferARB((GLenum)target, (GLenum)access); CHECK_GL_ERROR void *old_buffer_address = safeGetBufferAddress(env, oldBuffer, 0); @@ -194,10 +167,9 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glMapBuffe * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: glUnmapBufferARB */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glUnmapBufferARB +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glUnmapBufferARB (JNIEnv * env, jclass clazz, jint target) { - CHECK_EXISTS(glUnmapBufferARB) GLboolean result = glUnmapBufferARB(target); CHECK_GL_ERROR return result; @@ -207,10 +179,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glUnmapBu * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: nglGetBufferParameterivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferParameterivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferParameterivARB (JNIEnv * env, jclass clazz, jint target, jint pname, jobject params, jint params_offset) { - CHECK_EXISTS(glGetBufferParameterivARB) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + params_offset; glGetBufferParameterivARB(target, pname, params_ptr); CHECK_GL_ERROR @@ -220,12 +191,33 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferP * Class: org.lwjgl.opengl.ARBVertexBufferObject * Method: glGetBufferPointerARB */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glGetBufferPointerARB +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glGetBufferPointerARB (JNIEnv * env, jclass clazz, jint target, jint pname, jint size) { - CHECK_EXISTS(glGetBufferPointervARB) void *pointer; glGetBufferPointervARB((GLenum)target, (GLenum)pname, &pointer); CHECK_GL_ERROR return safeNewBuffer(env, pointer, size); } + +void extgl_InitARBVertexBufferObject(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglBindBufferARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBindBufferARB, "glBindBufferARB", (void**)&glBindBufferARB}, + {"nglDeleteBuffersARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_nglDeleteBuffersARB, "glDeleteBuffersARB", (void**)&glDeleteBuffersARB}, + {"nglGenBuffersARB", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGenBuffersARB, "glGenBuffersARB", (void**)&glGenBuffersARB}, + {"glIsBufferARB", "(I)Z", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_glIsBufferARB, "glIsBufferARB", (void**)&glIsBufferARB}, + {"nglBufferDataARB", "(IILjava/nio/Buffer;II)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferDataARB, "glBufferDataARB", (void**)&glBufferDataARB}, + {"nglBufferSubDataARB", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferSubDataARB, "glBufferSubDataARB", (void**)&glBufferSubDataARB}, + {"nglGetBufferSubDataARB", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferSubDataARB, "glGetBufferSubDataARB", (void**)&glGetBufferSubDataARB}, + {"glMapBufferARB", "(IIILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_glMapBufferARB, "glMapBufferARB", (void**)&glMapBufferARB}, + {"glUnmapBufferARB", "(I)Z", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_glUnmapBufferARB, "glUnmapBufferARB", (void**)&glUnmapBufferARB}, + {"nglGetBufferParameterivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferParameterivARB, "glGetBufferParameterivARB", (void**)&glGetBufferParameterivARB}, + {"glGetBufferPointerARB", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_ARBVertexBufferObject_glGetBufferPointerARB, "glGetBufferPointervARB", (void**)&glGetBufferPointervARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBVertexBufferObject"); + if (extgl_Extensions.GL_ARB_vertex_buffer_object) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_vertex_buffer_object", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBufferObject.h b/src/native/common/arb/org_lwjgl_opengl_ARBVertexBufferObject.h deleted file mode 100644 index 183ae5b9..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexBufferObject.h +++ /dev/null @@ -1,127 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBVertexBufferObject -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBVertexBufferObject -#define _Included_org_lwjgl_opengl_ARBVertexBufferObject - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: nglBindBufferARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBindBufferARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: nglDeleteBuffersARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglDeleteBuffersARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: nglGenBuffersARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGenBuffersARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: glIsBufferARB - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glIsBufferARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: nglBufferDataARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferDataARB - (JNIEnv *, jclass, jint, jint, jobject, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: nglBufferSubDataARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglBufferSubDataARB - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: nglGetBufferSubDataARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferSubDataARB - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: glMapBufferARB - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glMapBufferARB - (JNIEnv *, jclass, jint, jint, jint, jobject); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: glUnmapBufferARB - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glUnmapBufferARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: nglGetBufferParameterivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_nglGetBufferParameterivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexBufferObject - * Method: glGetBufferPointerARB - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexBufferObject_glGetBufferPointerARB - (JNIEnv *, jclass, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.cpp index 128d06ff..bb253e46 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBVertexProgram // ---------------------------------- -#include "org_lwjgl_opengl_ARBVertexProgram.h" #include "extgl.h" #include "checkGLerror.h" @@ -93,36 +92,13 @@ static glGetVertexAttribfvARBPROC glGetVertexAttribfvARB; static glGetVertexAttribivARBPROC glGetVertexAttribivARB; static glGetVertexAttribPointervARBPROC glGetVertexAttribPointervARB; -void extgl_InitARBVertexProgram(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_vertex_program) - return; - glVertexAttrib1sARB = (glVertexAttrib1sARBPROC) extgl_GetProcAddress("glVertexAttrib1sARB"); - glVertexAttrib1fARB = (glVertexAttrib1fARBPROC) extgl_GetProcAddress("glVertexAttrib1fARB"); - glVertexAttrib2sARB = (glVertexAttrib2sARBPROC) extgl_GetProcAddress("glVertexAttrib2sARB"); - glVertexAttrib2fARB = (glVertexAttrib2fARBPROC) extgl_GetProcAddress("glVertexAttrib2fARB"); - glVertexAttrib3sARB = (glVertexAttrib3sARBPROC) extgl_GetProcAddress("glVertexAttrib3sARB"); - glVertexAttrib3fARB = (glVertexAttrib3fARBPROC) extgl_GetProcAddress("glVertexAttrib3fARB"); - glVertexAttrib4sARB = (glVertexAttrib4sARBPROC) extgl_GetProcAddress("glVertexAttrib4sARB"); - glVertexAttrib4fARB = (glVertexAttrib4fARBPROC) extgl_GetProcAddress("glVertexAttrib4fARB"); - glVertexAttrib4NubARB = (glVertexAttrib4NubARBPROC) extgl_GetProcAddress("glVertexAttrib4NubARB"); - glVertexAttribPointerARB = (glVertexAttribPointerARBPROC) extgl_GetProcAddress("glVertexAttribPointerARB"); - glEnableVertexAttribArrayARB = (glEnableVertexAttribArrayARBPROC) extgl_GetProcAddress("glEnableVertexAttribArrayARB"); - glDisableVertexAttribArrayARB = (glDisableVertexAttribArrayARBPROC) extgl_GetProcAddress("glDisableVertexAttribArrayARB"); - glGetVertexAttribfvARB = (glGetVertexAttribfvARBPROC) extgl_GetProcAddress("glGetVertexAttribfvARB"); - glGetVertexAttribivARB = (glGetVertexAttribivARBPROC) extgl_GetProcAddress("glGetVertexAttribivARB"); - glGetVertexAttribPointervARB = (glGetVertexAttribPointervARBPROC) extgl_GetProcAddress("glGetVertexAttribPointervARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_vertex_program) -} - /* * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib1sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB (JNIEnv * env, jclass clazz, jint index, jshort x) { - CHECK_EXISTS(glVertexAttrib1sARB) glVertexAttrib1sARB(index, x); CHECK_GL_ERROR } @@ -131,10 +107,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib1fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB (JNIEnv * env, jclass clazz, jint index, jfloat x) { - CHECK_EXISTS(glVertexAttrib1fARB) glVertexAttrib1fARB(index, x); CHECK_GL_ERROR } @@ -143,10 +118,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib2sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y) { - CHECK_EXISTS(glVertexAttrib2sARB) glVertexAttrib2sARB(index, x, y); CHECK_GL_ERROR } @@ -155,10 +129,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib2fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y) { - CHECK_EXISTS(glVertexAttrib2fARB) glVertexAttrib2fARB(index, x, y); CHECK_GL_ERROR } @@ -167,10 +140,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib3sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z) { - CHECK_EXISTS(glVertexAttrib3sARB) glVertexAttrib3sARB(index, x, y, z); CHECK_GL_ERROR } @@ -179,10 +151,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib3fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z) { - CHECK_EXISTS(glVertexAttrib3fARB) glVertexAttrib3fARB(index, x, y, z); CHECK_GL_ERROR } @@ -191,10 +162,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib4sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w) { - CHECK_EXISTS(glVertexAttrib4sARB) glVertexAttrib4sARB(index, x, y, z, w); CHECK_GL_ERROR } @@ -203,10 +173,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib4fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glVertexAttrib4fARB) glVertexAttrib4fARB(index, x, y, z, w); CHECK_GL_ERROR } @@ -215,10 +184,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fAR * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glVertexAttrib4NubARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB (JNIEnv * env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w) { - CHECK_EXISTS(glVertexAttrib4NubARB) glVertexAttrib4NubARB(index, x, y, z, w); CHECK_GL_ERROR } @@ -227,10 +195,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4Nub * Class: org.lwjgl.opengl.ARBVertexProgram * Method: nglVertexAttribPointerARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jobject buffer, jint bufferOffset) { - CHECK_EXISTS(glVertexAttribPointerARB) GLvoid *buffer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(buffer) + bufferOffset); glVertexAttribPointerARB(index, size, type, normalized, stride, buffer_ptr); CHECK_GL_ERROR @@ -240,10 +207,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPoi * Class: org.lwjgl.opengl.ARBVertexProgram * Method: nglVertexAttribPointerARBVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBVBO (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint bufferOffset) { - CHECK_EXISTS(glVertexAttribPointerARB) glVertexAttribPointerARB(index, size, type, normalized, stride, (GLvoid *)bufferOffset); CHECK_GL_ERROR } @@ -252,10 +218,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPoi * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glEnableVertexAttribArrayARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB (JNIEnv * env, jclass clazz, jint index) { - CHECK_EXISTS(glEnableVertexAttribArrayARB) glEnableVertexAttribArrayARB(index); CHECK_GL_ERROR } @@ -264,10 +229,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttr * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glDisableVertexAttribArrayARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB (JNIEnv * env, jclass clazz, jint index) { - CHECK_EXISTS(glDisableVertexAttribArrayARB) glDisableVertexAttribArrayARB(index); CHECK_GL_ERROR } @@ -276,10 +240,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAtt * Class: org.lwjgl.opengl.ARBVertexProgram * Method: nglGetVertexAttribfvARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetVertexAttribfvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetVertexAttribfvARB(index, pname, params_ptr); CHECK_GL_ERROR @@ -289,10 +252,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttrib * Class: org.lwjgl.opengl.ARBVertexProgram * Method: nglGetVertexAttribivARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetVertexAttribivARB) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetVertexAttribivARB(index, pname, params_ptr); CHECK_GL_ERROR @@ -302,12 +264,38 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttrib * Class: org.lwjgl.opengl.ARBVertexProgram * Method: glGetVertexAttribPointerARB */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glGetVertexAttribPointerARB +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glGetVertexAttribPointerARB (JNIEnv * env, jclass clazz, jint index, jint pname, jint size) { - CHECK_EXISTS(glGetVertexAttribPointervARB) void *address; glGetVertexAttribPointervARB((GLuint)index, (GLuint)pname, &address); CHECK_GL_ERROR return safeNewBuffer(env, address, size); } + +void extgl_InitARBVertexProgram(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glVertexAttrib1sARB", "(IS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB, "glVertexAttrib1sARB", (void**)&glVertexAttrib1sARB}, + {"glVertexAttrib1fARB", "(IF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB, "glVertexAttrib1fARB", (void**)&glVertexAttrib1fARB}, + {"glVertexAttrib2sARB", "(ISS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB, "glVertexAttrib2sARB", (void**)&glVertexAttrib2sARB}, + {"glVertexAttrib2fARB", "(IFF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB, "glVertexAttrib2fARB", (void**)&glVertexAttrib2fARB}, + {"glVertexAttrib3sARB", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB, "glVertexAttrib3sARB", (void**)&glVertexAttrib3sARB}, + {"glVertexAttrib3fARB", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB, "glVertexAttrib3fARB", (void**)&glVertexAttrib3fARB}, + {"glVertexAttrib4sARB", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB, "glVertexAttrib4sARB", (void**)&glVertexAttrib4sARB}, + {"glVertexAttrib4fARB", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB, "glVertexAttrib4fARB", (void**)&glVertexAttrib4fARB}, + {"glVertexAttrib4NubARB", "(IBBBB)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB, "glVertexAttrib4NubARB", (void**)&glVertexAttrib4NubARB}, + {"nglVertexAttribPointerARB", "(IIIZILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB, "glVertexAttribPointerARB", (void**)&glVertexAttribPointerARB}, + {"nglVertexAttribPointerARBVBO", "(IIIZII)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBVBO, NULL, NULL}, + {"glEnableVertexAttribArrayARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB, "glEnableVertexAttribArrayARB", (void**)&glEnableVertexAttribArrayARB}, + {"glDisableVertexAttribArrayARB", "(I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB, "glDisableVertexAttribArrayARB", (void**)&glDisableVertexAttribArrayARB}, + {"nglGetVertexAttribfvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB, "glGetVertexAttribfvARB", (void**)&glGetVertexAttribfvARB}, + {"nglGetVertexAttribivARB", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB, "glGetVertexAttribivARB", (void**)&glGetVertexAttribivARB}, + {"glGetVertexAttribPointerARB", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_ARBVertexProgram_glGetVertexAttribPointerARB, "glGetVertexAttribPointervARB", (void**)&glGetVertexAttribPointervARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBVertexProgram"); + if (extgl_Extensions.GL_ARB_vertex_program) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_vertex_program", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.h b/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.h deleted file mode 100644 index ab8e1c74..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexProgram.h +++ /dev/null @@ -1,295 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBVertexProgram -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBVertexProgram -#define _Included_org_lwjgl_opengl_ARBVertexProgram - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib1sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1sARB - (JNIEnv *, jclass, jint, jshort); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib1fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib1fARB - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib2sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2sARB - (JNIEnv *, jclass, jint, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib2fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib2fARB - (JNIEnv *, jclass, jint, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib3sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3sARB - (JNIEnv *, jclass, jint, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib3fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib3fARB - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib4sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4sARB - (JNIEnv *, jclass, jint, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib4fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4fARB - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glVertexAttrib4NubARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glVertexAttrib4NubARB - (JNIEnv *, jclass, jint, jbyte, jbyte, jbyte, jbyte); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib1svARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib1svARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib1fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib1fvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib2svARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib2svARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib2fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib2fvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib3svARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib3svARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib3fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib3fvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4bvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4bvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4svARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4svARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4ivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4ivARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4ubvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4ubvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4usvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4usvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4uivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4uivARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4fvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4fvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4NbvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NbvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4NsvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NsvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4NivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NivARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4NubvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NubvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4NusvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NusvARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttrib4NuivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttrib4NuivARB - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttribPointerARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARB - (JNIEnv *, jclass, jint, jint, jint, jboolean, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglVertexAttribPointerARBVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglVertexAttribPointerARBVBO - (JNIEnv *, jclass, jint, jint, jint, jboolean, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glEnableVertexAttribArrayARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glEnableVertexAttribArrayARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glDisableVertexAttribArrayARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glDisableVertexAttribArrayARB - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglGetVertexAttribfvARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribfvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: nglGetVertexAttribivARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_nglGetVertexAttribivARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexProgram - * Method: glGetVertexAttribPointerARB - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ARBVertexProgram_glGetVertexAttribPointerARB - (JNIEnv *, jclass, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexShader.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBVertexShader.cpp index 8601c34e..69383965 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexShader.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBVertexShader.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBVertexShader // ---------------------------------- -#include "org_lwjgl_opengl_ARBVertexShader.h" #include "extgl.h" #include "checkGLerror.h" @@ -49,26 +48,13 @@ static glBindAttribLocationARBPROC glBindAttribLocationARB; static glGetActiveAttribARBPROC glGetActiveAttribARB; static glGetAttribLocationARBPROC glGetAttribLocationARB; -void extgl_InitARBVertexShader(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_vertex_shader) - return; - - glBindAttribLocationARB = (glBindAttribLocationARBPROC) extgl_GetProcAddress("glBindAttribLocationARB"); - glGetActiveAttribARB = (glGetActiveAttribARBPROC) extgl_GetProcAddress("glGetActiveAttribARB"); - glGetAttribLocationARB = (glGetAttribLocationARBPROC) extgl_GetProcAddress("glGetAttribLocationARB"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_vertex_shader) -} - /* * Class: org.lwjgl.opengl.ARBVertexShader * Method: nglBindAttribLocationARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglBindAttribLocationARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglBindAttribLocationARB (JNIEnv * env, jclass clazz, jint programObj, jint index, jobject name, jint nameOffset) { - CHECK_EXISTS(glBindAttribLocationARB) GLubyte *name_ptr = (GLubyte *)env->GetDirectBufferAddress(name) + nameOffset; glBindAttribLocationARB(programObj, index, name_ptr); CHECK_GL_ERROR @@ -78,10 +64,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglBindAttribLocati * Class: org.lwjgl.opengl.ARBVertexShader * Method: nglGetActiveAttribARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetActiveAttribARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetActiveAttribARB (JNIEnv * env, jclass clazz, jint programObj, jint index, jint maxLength, jobject length, jint lengthOffset, jobject size, jint sizeOffset, jobject type, jint typeOffset, jobject name, jint nameOffset) { - CHECK_EXISTS(glGetActiveAttribARB) GLint *size_ptr = (GLint *)env->GetDirectBufferAddress(size) + sizeOffset; GLenum *type_ptr = (GLenum *)env->GetDirectBufferAddress(type) + typeOffset; @@ -101,12 +86,25 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetActiveAttribA * Class: org.lwjgl.opengl.ARBVertexShader * Method: nglGetAttribLocationARB */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetAttribLocationARB +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetAttribLocationARB (JNIEnv * env, jclass clazz, jint programObj, jobject name, jint nameOffset) { - CHECK_EXISTS(glGetAttribLocationARB) GLubyte *name_ptr = (GLubyte *)env->GetDirectBufferAddress(name) + nameOffset; GLuint result = glGetAttribLocationARB(programObj, name_ptr); CHECK_GL_ERROR return result; } + +void extgl_InitARBVertexShader(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglBindAttribLocationARB", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexShader_nglBindAttribLocationARB, "glBindAttribLocationARB", (void**)&glBindAttribLocationARB}, + {"nglGetActiveAttribARB", "(IIILjava/nio/IntBuffer;ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ARBVertexShader_nglGetActiveAttribARB, "glGetActiveAttribARB", (void**)&glGetActiveAttribARB}, + {"nglGetAttribLocationARB", "(ILjava/nio/ByteBuffer;I)I", (void*)&Java_org_lwjgl_opengl_ARBVertexShader_nglGetAttribLocationARB, "glGetAttribLocationARB", (void**)&glGetAttribLocationARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBVertexShader"); + if (extgl_Extensions.GL_ARB_vertex_shader) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_vertex_shader", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBVertexShader.h b/src/native/common/arb/org_lwjgl_opengl_ARBVertexShader.h deleted file mode 100644 index 13f7e824..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBVertexShader.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBVertexShader -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBVertexShader -#define _Included_org_lwjgl_opengl_ARBVertexShader - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBVertexShader - * Method: nglBindAttribLocationARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglBindAttribLocationARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexShader - * Method: nglGetActiveAttribARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetActiveAttribARB - (JNIEnv *, jclass, jint, jint, jint, jobject, jint, jobject, jint, jobject, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ARBVertexShader - * Method: nglGetAttribLocationARB - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ARBVertexShader_nglGetAttribLocationARB - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBWindowPos.cpp b/src/native/common/arb/org_lwjgl_opengl_ARBWindowPos.cpp index 1f37e8f1..15cb703d 100644 --- a/src/native/common/arb/org_lwjgl_opengl_ARBWindowPos.cpp +++ b/src/native/common/arb/org_lwjgl_opengl_ARBWindowPos.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ARBWindowPos // ---------------------------------- -#include "org_lwjgl_opengl_ARBWindowPos.h" #include "extgl.h" #include "checkGLerror.h" @@ -52,27 +51,13 @@ static glWindowPos3fARBPROC glWindowPos3fARB; static glWindowPos3iARBPROC glWindowPos3iARB; static glWindowPos3sARBPROC glWindowPos3sARB; -void extgl_InitARBWindowPos(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ARB_window_pos) - return; - glWindowPos2fARB = (glWindowPos2fARBPROC) extgl_GetProcAddress("glWindowPos2fARB"); - glWindowPos2iARB = (glWindowPos2iARBPROC) extgl_GetProcAddress("glWindowPos2iARB"); - glWindowPos2sARB = (glWindowPos2sARBPROC) extgl_GetProcAddress("glWindowPos2sARB"); - glWindowPos3fARB = (glWindowPos3fARBPROC) extgl_GetProcAddress("glWindowPos3fARB"); - glWindowPos3iARB = (glWindowPos3iARBPROC) extgl_GetProcAddress("glWindowPos3iARB"); - glWindowPos3sARB = (glWindowPos3sARBPROC) extgl_GetProcAddress("glWindowPos3sARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ARB_window_pos) -} - /* * Class: org.lwjgl.opengl.ARBWindowPos * Method: glWindowPos2fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2fARB (JNIEnv * env, jclass clazz, jfloat x, jfloat y) { - CHECK_EXISTS(glWindowPos2fARB) glWindowPos2fARB(x, y); CHECK_GL_ERROR } @@ -81,10 +66,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2fARB * Class: org.lwjgl.opengl.ARBWindowPos * Method: glWindowPos2iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2iARB (JNIEnv * env, jclass clazz, jint x, jint y) { - CHECK_EXISTS(glWindowPos2iARB) glWindowPos2iARB(x, y); CHECK_GL_ERROR } @@ -93,10 +77,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2iARB * Class: org.lwjgl.opengl.ARBWindowPos * Method: glWindowPos2sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2sARB (JNIEnv * env, jclass clazz, jshort x, jshort y) { - CHECK_EXISTS(glWindowPos2sARB) glWindowPos2sARB(x, y); CHECK_GL_ERROR } @@ -105,10 +88,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2sARB * Class: org.lwjgl.opengl.ARBWindowPos * Method: glWindowPos3fARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3fARB (JNIEnv * env, jclass clazz, jfloat x, jfloat y, jfloat z) { - CHECK_EXISTS(glWindowPos3fARB) glWindowPos3fARB(x, y, z); CHECK_GL_ERROR } @@ -117,10 +99,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3fARB * Class: org.lwjgl.opengl.ARBWindowPos * Method: glWindowPos3iARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3iARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3iARB (JNIEnv * env, jclass clazz, jint x, jint y, jint z) { - CHECK_EXISTS(glWindowPos3iARB) glWindowPos3iARB(x, y, z); CHECK_GL_ERROR } @@ -129,10 +110,26 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3iARB * Class: org.lwjgl.opengl.ARBWindowPos * Method: glWindowPos3sARB */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3sARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3sARB (JNIEnv * env, jclass clazz, jshort x, jshort y, jshort z) { - CHECK_EXISTS(glWindowPos3sARB) glWindowPos3sARB(x, y, z); CHECK_GL_ERROR } + +void extgl_InitARBWindowPos(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glWindowPos2fARB", "(FF)V", (void*)&Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2fARB, "glWindowPos2fARB", (void**)&glWindowPos2fARB}, + {"glWindowPos2iARB", "(II)V", (void*)&Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2iARB, "glWindowPos2iARB", (void**)&glWindowPos2iARB}, + {"glWindowPos2sARB", "(SS)V", (void*)&Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2sARB, "glWindowPos2sARB", (void**)&glWindowPos2sARB}, + {"glWindowPos3fARB", "(FFF)V", (void*)&Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3fARB, "glWindowPos3fARB", (void**)&glWindowPos3fARB}, + {"glWindowPos3iARB", "(III)V", (void*)&Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3iARB, "glWindowPos3iARB", (void**)&glWindowPos3iARB}, + {"glWindowPos3sARB", "(SSS)V", (void*)&Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3sARB, "glWindowPos3sARB", (void**)&glWindowPos3sARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ARBWindowPos"); + if (extgl_Extensions.GL_ARB_window_pos) + extgl_InitializeClass(env, clazz, ext_set, "GL_ARB_window_pos", num_functions, functions); +} + diff --git a/src/native/common/arb/org_lwjgl_opengl_ARBWindowPos.h b/src/native/common/arb/org_lwjgl_opengl_ARBWindowPos.h deleted file mode 100644 index c0af6cc6..00000000 --- a/src/native/common/arb/org_lwjgl_opengl_ARBWindowPos.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ARBWindowPos -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ARBWindowPos -#define _Included_org_lwjgl_opengl_ARBWindowPos - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ARBWindowPos - * Method: glWindowPos2fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2fARB - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBWindowPos - * Method: glWindowPos2iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2iARB - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBWindowPos - * Method: glWindowPos2sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos2sARB - (JNIEnv *, jclass, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ARBWindowPos - * Method: glWindowPos3fARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3fARB - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ARBWindowPos - * Method: glWindowPos3iARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3iARB - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ARBWindowPos - * Method: glWindowPos3sARB - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ARBWindowPos_glWindowPos3sARB - (JNIEnv *, jclass, jshort, jshort, jshort); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.cpp index 312b30f1..9c1f0302 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIDrawBuffers // ---------------------------------- -#include "org_lwjgl_opengl_ATIDrawBuffers.h" #include "extgl.h" #include "checkGLerror.h" @@ -42,25 +41,25 @@ typedef void (APIENTRY * glDrawBuffersATIPROC) (GLsizei n, const GLenum *bufs); static glDrawBuffersATIPROC glDrawBuffersATI; -void extgl_InitATIDrawBuffers(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_draw_buffers) - return; - - glDrawBuffersATI = (glDrawBuffersATIPROC) extgl_GetProcAddress("glDrawBuffersATI"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_draw_buffers) -} - /* * Class: org.lwjgl.opengl.ATIDrawBuffers * Method: nglDrawBuffersATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI (JNIEnv * env, jclass clazz, jint size, jobject buffers, jint buffersOffset) { - CHECK_EXISTS(glDrawBuffersATI) GLuint *buffers_ptr = (GLuint *)env->GetDirectBufferAddress(buffers) + buffersOffset; glDrawBuffersATI(size, buffers_ptr); CHECK_GL_ERROR } + +void extgl_InitATIDrawBuffers(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglDrawBuffersATI", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI, "glDrawBuffersATI", (void**)&glDrawBuffersATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIDrawBuffers"); + if (extgl_Extensions.GL_ATI_draw_buffers) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_draw_buffers", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.h b/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.h deleted file mode 100644 index 43578fe8..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIDrawBuffers.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIDrawBuffers -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIDrawBuffers -#define _Included_org_lwjgl_opengl_ATIDrawBuffers - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIDrawBuffers - * Method: nglDrawBuffersATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIDrawBuffers_nglDrawBuffersATI - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.cpp index 351c12eb..41d8b979 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIElementArray // ---------------------------------- -#include "org_lwjgl_opengl_ATIElementArray.h" #include "extgl.h" #include "checkGLerror.h" @@ -46,24 +45,13 @@ static glElementPointerATIPROC glElementPointerATI; static glDrawElementArrayATIPROC glDrawElementArrayATI; static glDrawRangeElementArrayATIPROC glDrawRangeElementArrayATI; -void extgl_InitATIElementArray(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_element_array) - return; - glElementPointerATI = (glElementPointerATIPROC) extgl_GetProcAddress("glElementPointerATI"); - glDrawElementArrayATI = (glDrawElementArrayATIPROC) extgl_GetProcAddress("glDrawElementArrayATI"); - glDrawRangeElementArrayATI = (glDrawRangeElementArrayATIPROC) extgl_GetProcAddress("glDrawRangeElementArrayATI"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_element_array) -} - /* * Class: org.lwjgl.opengl.ATIElementArray * Method: nglElementPointerATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI (JNIEnv * env, jclass clazz, jint type, jobject pPointer, jint pPointer_offset) { - CHECK_EXISTS(glElementPointerATI) GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPointer) + pPointer_offset); glElementPointerATI(type, pPointer_ptr); CHECK_GL_ERROR @@ -73,10 +61,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerAT * Class: org.lwjgl.opengl.ATIElementArray * Method: nglElementPointerATIVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIVBO (JNIEnv * env, jclass clazz, jint type, jint buffer_offset) { - CHECK_EXISTS(glElementPointerATI) glElementPointerATI(type, (GLvoid *)buffer_offset); CHECK_GL_ERROR } @@ -85,10 +72,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerAT * Class: org.lwjgl.opengl.ATIElementArray * Method: glDrawElementArrayATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI (JNIEnv * env, jclass clazz, jint mode, jint count) { - CHECK_EXISTS(glDrawElementArrayATI) glDrawElementArrayATI(mode, count); CHECK_GL_ERROR } @@ -97,10 +83,23 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayA * Class: org.lwjgl.opengl.ATIElementArray * Method: glDrawRangeElementArrayATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI (JNIEnv * env, jclass clazz, jint mode, jint start, jint end, jint count) { - CHECK_EXISTS(glDrawRangeElementArrayATI) glDrawRangeElementArrayATI(mode, start, end, count); CHECK_GL_ERROR } + +void extgl_InitATIElementArray(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglElementPointerATI", "(ILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI, "glElementPointerATI", (void**)&glElementPointerATI}, + {"nglElementPointerATIVBO", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIVBO, NULL, NULL}, + {"glDrawElementArrayATI", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI, "glDrawElementArrayATI", (void**)&glDrawElementArrayATI}, + {"glDrawRangeElementArrayATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI, "glDrawRangeElementArrayATI", (void**)&glDrawRangeElementArrayATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIElementArray"); + if (extgl_Extensions.GL_ATI_element_array) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_element_array", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.h b/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.h deleted file mode 100644 index fb23c8aa..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIElementArray.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIElementArray -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIElementArray -#define _Included_org_lwjgl_opengl_ATIElementArray - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: nglElementPointerATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATI - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: nglElementPointerATIVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_nglElementPointerATIVBO - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: glDrawElementArrayATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawElementArrayATI - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIElementArray - * Method: glDrawRangeElementArrayATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIElementArray_glDrawRangeElementArrayATI - (JNIEnv *, jclass, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.cpp index 3052e325..38f47083 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIEnvmapBumpmap // ---------------------------------- -#include "org_lwjgl_opengl_ATIEnvmapBumpmap.h" #include "extgl.h" #include "checkGLerror.h" @@ -48,25 +47,13 @@ static glTexBumpParameterfvATIPROC glTexBumpParameterfvATI; static glGetTexBumpParameterivATIPROC glGetTexBumpParameterivATI; static glGetTexBumpParameterfvATIPROC glGetTexBumpParameterfvATI; -void extgl_InitATIEnvmapBumpmap(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_envmap_bumpmap) - return; - glTexBumpParameterivATI = (glTexBumpParameterivATIPROC) extgl_GetProcAddress("glTexBumpParameterivATI"); - glTexBumpParameterfvATI = (glTexBumpParameterfvATIPROC) extgl_GetProcAddress("glTexBumpParameterfvATI"); - glGetTexBumpParameterivATI = (glGetTexBumpParameterivATIPROC) extgl_GetProcAddress("glGetTexBumpParameterivATI"); - glGetTexBumpParameterfvATI = (glGetTexBumpParameterfvATIPROC) extgl_GetProcAddress("glGetTexBumpParameterfvATI"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_envmap_bumpmap) -} - /* * Class: org.lwjgl.opengl.ATIEnvmapBumpmap * Method: nglTexBumpParameterfvATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI (JNIEnv * env, jclass clazz, jint pname, jobject pfParam, jint pfParam_offset) { - CHECK_EXISTS(glTexBumpParameterfvATI) GLfloat *pfParam_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParam) + pfParam_offset; glTexBumpParameterfvATI(pname, pfParam_ptr); CHECK_GL_ERROR @@ -76,10 +63,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParamete * Class: org.lwjgl.opengl.ATIEnvmapBumpmap * Method: nglTexBumpParameterivATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI (JNIEnv * env, jclass clazz, jint pname, jobject piParam, jint piParam_offset) { - CHECK_EXISTS(glTexBumpParameterivATI) GLint *piParam_ptr = (GLint *)env->GetDirectBufferAddress(piParam) + piParam_offset; glTexBumpParameterivATI(pname, piParam_ptr); CHECK_GL_ERROR @@ -89,10 +75,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParamete * Class: org.lwjgl.opengl.ATIEnvmapBumpmap * Method: nglGetTexBumpParameterfvATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI (JNIEnv * env, jclass clazz, jint pname, jobject pfParam, jint pfParam_offset) { - CHECK_EXISTS(glGetTexBumpParameterfvATI) GLfloat *pfParam_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParam) + pfParam_offset; glGetTexBumpParameterfvATI(pname, pfParam_ptr); CHECK_GL_ERROR @@ -102,11 +87,24 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParam * Class: org.lwjgl.opengl.ATIEnvmapBumpmap * Method: nglGetTexBumpParameterivATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI (JNIEnv * env, jclass clazz, jint pname, jobject piParam, jint piParam_offset) { - CHECK_EXISTS(glGetTexBumpParameterivATI) GLint *piParam_ptr = (GLint *)env->GetDirectBufferAddress(piParam) + piParam_offset; glGetTexBumpParameterivATI(pname, piParam_ptr); CHECK_GL_ERROR } + +void extgl_InitATIEnvmapBumpmap(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglTexBumpParameterfvATI", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI, "glTexBumpParameterfvATI", (void**)&glTexBumpParameterfvATI}, + {"nglTexBumpParameterivATI", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI, "glTexBumpParameterivATI", (void**)&glTexBumpParameterivATI}, + {"nglGetTexBumpParameterfvATI", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI, "glGetTexBumpParameterfvATI", (void**)&glGetTexBumpParameterfvATI}, + {"nglGetTexBumpParameterivATI", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI, "glGetTexBumpParameterivATI", (void**)&glGetTexBumpParameterivATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIEnvmapBumpmap"); + if (extgl_Extensions.GL_ATI_envmap_bumpmap) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_envmap_bumpmap", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.h b/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.h deleted file mode 100644 index d88b85ac..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIEnvmapBumpmap.h +++ /dev/null @@ -1,78 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIEnvmapBumpmap -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIEnvmapBumpmap -#define _Included_org_lwjgl_opengl_ATIEnvmapBumpmap - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglTexBumpParameterfvATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterfvATI - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglTexBumpParameterivATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglTexBumpParameterivATI - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglGetTexBumpParameterfvATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterfvATI - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIEnvmapBumpmap - * Method: nglGetTexBumpParameterivATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIEnvmapBumpmap_nglGetTexBumpParameterivATI - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIFragmentShader.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIFragmentShader.cpp index abed0ec7..74949648 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIFragmentShader.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIFragmentShader.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIFragmentShader // ---------------------------------- -#include "org_lwjgl_opengl_ATIFragmentShader.h" #include "extgl.h" #include "checkGLerror.h" @@ -68,35 +67,13 @@ static glAlphaFragmentOp2ATIPROC glAlphaFragmentOp2ATI; static glAlphaFragmentOp3ATIPROC glAlphaFragmentOp3ATI; static glSetFragmentShaderConstantATIPROC glSetFragmentShaderConstantATI; -void extgl_InitATIFragmentShader(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_fragment_shader) - return; - glGenFragmentShadersATI = (glGenFragmentShadersATIPROC) extgl_GetProcAddress("glGenFragmentShadersATI"); - glBindFragmentShaderATI = (glBindFragmentShaderATIPROC) extgl_GetProcAddress("glBindFragmentShaderATI"); - glDeleteFragmentShaderATI = (glDeleteFragmentShaderATIPROC) extgl_GetProcAddress("glDeleteFragmentShaderATI"); - glBeginFragmentShaderATI = (glBeginFragmentShaderATIPROC) extgl_GetProcAddress("glBeginFragmentShaderATI"); - glEndFragmentShaderATI = (glEndFragmentShaderATIPROC) extgl_GetProcAddress("glEndFragmentShaderATI"); - glPassTexCoordATI = (glPassTexCoordATIPROC) extgl_GetProcAddress("glPassTexCoordATI"); - glSampleMapATI = (glSampleMapATIPROC) extgl_GetProcAddress("glSampleMapATI"); - glColorFragmentOp1ATI = (glColorFragmentOp1ATIPROC) extgl_GetProcAddress("glColorFragmentOp1ATI"); - glColorFragmentOp2ATI = (glColorFragmentOp2ATIPROC) extgl_GetProcAddress("glColorFragmentOp2ATI"); - glColorFragmentOp3ATI = (glColorFragmentOp3ATIPROC) extgl_GetProcAddress("glColorFragmentOp3ATI"); - glAlphaFragmentOp1ATI = (glAlphaFragmentOp1ATIPROC) extgl_GetProcAddress("glAlphaFragmentOp1ATI"); - glAlphaFragmentOp2ATI = (glAlphaFragmentOp2ATIPROC) extgl_GetProcAddress("glAlphaFragmentOp2ATI"); - glAlphaFragmentOp3ATI = (glAlphaFragmentOp3ATIPROC) extgl_GetProcAddress("glAlphaFragmentOp3ATI"); - glSetFragmentShaderConstantATI = (glSetFragmentShaderConstantATIPROC) extgl_GetProcAddress("glSetFragmentShaderConstantATI"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_fragment_shader) -} - /* * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glGenFragmentShadersATI */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glGenFragmentShadersATI +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glGenFragmentShadersATI (JNIEnv * env, jclass clazz, jint range) { - CHECK_EXISTS(glGenFragmentShadersATI) GLuint result = glGenFragmentShadersATI(range); CHECK_GL_ERROR return result; @@ -106,10 +83,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glGenFragmentShad * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glBindFragmentShaderATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBindFragmentShaderATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBindFragmentShaderATI (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glBindFragmentShaderATI) glBindFragmentShaderATI(id); CHECK_GL_ERROR } @@ -118,10 +94,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBindFragmentSha * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glDeleteFragmentShaderATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glDeleteFragmentShaderATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glDeleteFragmentShaderATI (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glDeleteFragmentShaderATI) glDeleteFragmentShaderATI(id); CHECK_GL_ERROR } @@ -130,10 +105,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glDeleteFragmentS * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glBeginFragmentShaderATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBeginFragmentShaderATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBeginFragmentShaderATI (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glBeginFragmentShaderATI) glBeginFragmentShaderATI(); CHECK_GL_ERROR } @@ -142,10 +116,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBeginFragmentSh * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glEndFragmentShaderATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glEndFragmentShaderATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glEndFragmentShaderATI (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glEndFragmentShaderATI) glEndFragmentShaderATI(); CHECK_GL_ERROR } @@ -154,10 +127,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glEndFragmentShad * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glPassTexCoordATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glPassTexCoordATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glPassTexCoordATI (JNIEnv * env, jclass clazz, jint dst, jint coord, jint swizzle) { - CHECK_EXISTS(glPassTexCoordATI) glPassTexCoordATI(dst, coord, swizzle); CHECK_GL_ERROR } @@ -166,10 +138,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glPassTexCoordATI * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glSampleMapATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glSampleMapATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glSampleMapATI (JNIEnv * env, jclass clazz, jint dst, jint interp, jint swizzle) { - CHECK_EXISTS(glSampleMapATI) glSampleMapATI(dst, interp, swizzle); CHECK_GL_ERROR } @@ -178,10 +149,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glSampleMapATI * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glColorFragmentOp1ATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp1ATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp1ATI (JNIEnv * env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod) { - CHECK_EXISTS(glColorFragmentOp1ATI) glColorFragmentOp1ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod); CHECK_GL_ERROR } @@ -190,10 +160,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glColorFragmentOp2ATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp2ATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp2ATI (JNIEnv * env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod) { - CHECK_EXISTS(glColorFragmentOp2ATI) glColorFragmentOp2ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); CHECK_GL_ERROR } @@ -202,10 +171,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glColorFragmentOp3ATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp3ATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp3ATI (JNIEnv * env, jclass clazz, jint op, jint dst, jint dstMask, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jint arg3, jint arg3Rep, jint arg3Mod) { - CHECK_EXISTS(glColorFragmentOp3ATI) glColorFragmentOp3ATI(op, dst, dstMask, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); CHECK_GL_ERROR } @@ -214,10 +182,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glAlphaFragmentOp1ATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp1ATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp1ATI (JNIEnv * env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod) { - CHECK_EXISTS(glAlphaFragmentOp1ATI) glAlphaFragmentOp1ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod); CHECK_GL_ERROR } @@ -226,10 +193,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glAlphaFragmentOp2ATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp2ATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp2ATI (JNIEnv * env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod) { - CHECK_EXISTS(glAlphaFragmentOp2ATI) glAlphaFragmentOp2ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod); CHECK_GL_ERROR } @@ -238,10 +204,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp * Class: org.lwjgl.opengl.ATIFragmentShader * Method: glAlphaFragmentOp3ATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp3ATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp3ATI (JNIEnv * env, jclass clazz, jint op, jint dst, jint dstMod, jint arg1, jint arg1Rep, jint arg1Mod, jint arg2, jint arg2Rep, jint arg2Mod, jint arg3, jint arg3Rep, jint arg3Mod) { - CHECK_EXISTS(glAlphaFragmentOp3ATI) glAlphaFragmentOp3ATI(op, dst, dstMod, arg1, arg1Rep, arg1Mod, arg2, arg2Rep, arg2Mod, arg3, arg3Rep, arg3Mod); CHECK_GL_ERROR } @@ -250,11 +215,34 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp * Class: org.lwjgl.opengl.ATIFragmentShader * Method: nglSetFragmentShaderConstantATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglSetFragmentShaderConstantATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglSetFragmentShaderConstantATI (JNIEnv * env, jclass clazz, jint dst, jobject pfValue, jint pfValue_offset) { - CHECK_EXISTS(glSetFragmentShaderConstantATI) GLfloat *pfValue_ptr = (GLfloat *)env->GetDirectBufferAddress(pfValue) + pfValue_offset; glSetFragmentShaderConstantATI(dst, pfValue_ptr); CHECK_GL_ERROR } + +void extgl_InitATIFragmentShader(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glGenFragmentShadersATI", "(I)I", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glGenFragmentShadersATI, "glGenFragmentShadersATI", (void**)&glGenFragmentShadersATI}, + {"glBindFragmentShaderATI", "(I)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glBindFragmentShaderATI, "glBindFragmentShaderATI", (void**)&glBindFragmentShaderATI}, + {"glDeleteFragmentShaderATI", "(I)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glDeleteFragmentShaderATI, "glDeleteFragmentShaderATI", (void**)&glDeleteFragmentShaderATI}, + {"glBeginFragmentShaderATI", "()V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glBeginFragmentShaderATI, "glBeginFragmentShaderATI", (void**)&glBeginFragmentShaderATI}, + {"glEndFragmentShaderATI", "()V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glEndFragmentShaderATI, "glEndFragmentShaderATI", (void**)&glEndFragmentShaderATI}, + {"glPassTexCoordATI", "(III)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glPassTexCoordATI, "glPassTexCoordATI", (void**)&glPassTexCoordATI}, + {"glSampleMapATI", "(III)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glSampleMapATI, "glSampleMapATI", (void**)&glSampleMapATI}, + {"glColorFragmentOp1ATI", "(IIIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp1ATI, "glColorFragmentOp1ATI", (void**)&glColorFragmentOp1ATI}, + {"glColorFragmentOp2ATI", "(IIIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp2ATI, "glColorFragmentOp2ATI", (void**)&glColorFragmentOp2ATI}, + {"glColorFragmentOp3ATI", "(IIIIIIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp3ATI, "glColorFragmentOp3ATI", (void**)&glColorFragmentOp3ATI}, + {"glAlphaFragmentOp1ATI", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp1ATI, "glAlphaFragmentOp1ATI", (void**)&glAlphaFragmentOp1ATI}, + {"glAlphaFragmentOp2ATI", "(IIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp2ATI, "glAlphaFragmentOp2ATI", (void**)&glAlphaFragmentOp2ATI}, + {"glAlphaFragmentOp3ATI", "(IIIIIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp3ATI, "glAlphaFragmentOp3ATI", (void**)&glAlphaFragmentOp3ATI}, + {"nglSetFragmentShaderConstantATI", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIFragmentShader_nglSetFragmentShaderConstantATI, "glSetFragmentShaderConstantATI", (void**)&glSetFragmentShaderConstantATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIFragmentShader"); + if (extgl_Extensions.GL_ATI_fragment_shader) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_fragment_shader", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIFragmentShader.h b/src/native/common/ati/org_lwjgl_opengl_ATIFragmentShader.h deleted file mode 100644 index e55d1d4e..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIFragmentShader.h +++ /dev/null @@ -1,148 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIFragmentShader -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIFragmentShader -#define _Included_org_lwjgl_opengl_ATIFragmentShader - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glGenFragmentShadersATI - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glGenFragmentShadersATI - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glBindFragmentShaderATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBindFragmentShaderATI - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glDeleteFragmentShaderATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glDeleteFragmentShaderATI - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glBeginFragmentShaderATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glBeginFragmentShaderATI - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glEndFragmentShaderATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glEndFragmentShaderATI - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glPassTexCoordATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glPassTexCoordATI - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glSampleMapATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glSampleMapATI - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glColorFragmentOp1ATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp1ATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glColorFragmentOp2ATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp2ATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glColorFragmentOp3ATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glColorFragmentOp3ATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glAlphaFragmentOp1ATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp1ATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glAlphaFragmentOp2ATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp2ATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: glAlphaFragmentOp3ATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_glAlphaFragmentOp3ATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIFragmentShader - * Method: nglSetFragmentShaderConstantATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIFragmentShader_nglSetFragmentShaderConstantATI - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.cpp index 495a789c..f4cb986b 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIMapObjectBuffer // ---------------------------------- -#include "org_lwjgl_opengl_ATIMapObjectBuffer.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,25 +43,13 @@ typedef void (APIENTRY * glUnmapObjectBufferATIPROC) (GLuint buffer); static glMapObjectBufferATIPROC glMapObjectBufferATI; static glUnmapObjectBufferATIPROC glUnmapObjectBufferATI; -void extgl_InitATIMapObjectBuffer(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_map_object_buffer) - return; - - glMapObjectBufferATI = (glMapObjectBufferATIPROC) extgl_GetProcAddress("glMapObjectBufferATI"); - glUnmapObjectBufferATI = (glUnmapObjectBufferATIPROC) extgl_GetProcAddress("glUnmapObjectBufferATI"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_map_object_buffer) -} - /* * Class: org.lwjgl.opengl.ATIMapObjectBuffer * Method: glMapObjectBufferATI */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glMapObjectBufferATI +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glMapObjectBufferATI (JNIEnv * env, jclass clazz, jint buffer, jint size, jobject oldBuffer) { - CHECK_EXISTS(glMapObjectBufferATI) void *buffer_address = glMapObjectBufferATI((GLenum)buffer); CHECK_GL_ERROR if (oldBuffer != NULL) { @@ -78,10 +65,21 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glMapObjectBu * Class: org.lwjgl.opengl.ATIMapObjectBuffer * Method: glUnmapObjectBufferATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI (JNIEnv * env, jclass clazz, jint buffer) { - CHECK_EXISTS(glUnmapObjectBufferATI) glUnmapObjectBufferATI(buffer); CHECK_GL_ERROR } + +void extgl_InitATIMapObjectBuffer(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glMapObjectBufferATI", "(IILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_ATIMapObjectBuffer_glMapObjectBufferATI, "glMapObjectBufferATI", (void**)&glMapObjectBufferATI}, + {"glUnmapObjectBufferATI", "(I)V", (void*)&Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI, "glUnmapObjectBufferATI", (void**)&glUnmapObjectBufferATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIMapObjectBuffer"); + if (extgl_Extensions.GL_ATI_map_object_buffer) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_map_object_buffer", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.h b/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.h deleted file mode 100644 index 4a8c07f4..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIMapObjectBuffer.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIMapObjectBuffer -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIMapObjectBuffer -#define _Included_org_lwjgl_opengl_ATIMapObjectBuffer - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIMapObjectBuffer - * Method: glMapObjectBufferATI - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glMapObjectBufferATI - (JNIEnv *, jclass, jint, jint, jobject); - -/* - * Class: org.lwjgl.opengl.ATIMapObjectBuffer - * Method: glUnmapObjectBufferATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIMapObjectBuffer_glUnmapObjectBufferATI - (JNIEnv *, jclass, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.cpp index 0f1b88c5..d6f6dc19 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIPnTriangles // ---------------------------------- -#include "org_lwjgl_opengl_ATIPnTriangles.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glPNTrianglesfATIPROC) (GLenum pname, GLfloat param); static glPNTrianglesiATIPROC glPNTrianglesiATI; static glPNTrianglesfATIPROC glPNTrianglesfATI; -void extgl_InitATIPNTriangles(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_pn_triangles) - return; - glPNTrianglesiATI = (glPNTrianglesiATIPROC) extgl_GetProcAddress("glPNTrianglesiATI"); - glPNTrianglesfATI = (glPNTrianglesfATIPROC) extgl_GetProcAddress("glPNTrianglesfATI"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_pn_triangles) -} - /* * Class: org.lwjgl.opengl.ATIPnTriangles * Method: glPNTrianglesfATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI (JNIEnv * env, jclass clazz, jint pname, jfloat param) { - CHECK_EXISTS(glPNTrianglesfATI) glPNTrianglesfATI(pname, param); CHECK_GL_ERROR } @@ -69,10 +58,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI * Class: org.lwjgl.opengl.ATIPnTriangles * Method: glPNTrianglesiATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI (JNIEnv * env, jclass clazz, jint pname, jint param) { - CHECK_EXISTS(glPNTrianglesiATI) glPNTrianglesiATI(pname, param); CHECK_GL_ERROR } + +void extgl_InitATIPNTriangles(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glPNTrianglesfATI", "(IF)V", (void*)&Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI, "glPNTrianglesfATI", (void**)&glPNTrianglesfATI}, + {"glPNTrianglesiATI", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI, "glPNTrianglesiATI", (void**)&glPNTrianglesiATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIPnTriangles"); + if (extgl_Extensions.GL_ATI_pn_triangles) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_pn_triangles", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.h b/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.h deleted file mode 100644 index 72f9d19d..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIPnTriangles.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIPnTriangles -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIPnTriangles -#define _Included_org_lwjgl_opengl_ATIPnTriangles - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIPnTriangles - * Method: glPNTrianglesfATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesfATI - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.ATIPnTriangles - * Method: glPNTrianglesiATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIPnTriangles_glPNTrianglesiATI - (JNIEnv *, jclass, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.cpp b/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.cpp index 5cb070f9..5430bef1 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATISeparateStencil // ---------------------------------- -#include "org_lwjgl_opengl_ATISeparateStencil.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glStencilFuncSeparateATIPROC) (GLenum frontfunc, GLenum static glStencilOpSeparateATIPROC glStencilOpSeparateATI; static glStencilFuncSeparateATIPROC glStencilFuncSeparateATI; -void extgl_InitATISeparateStencil(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_separate_stencil) - return; - glStencilOpSeparateATI = (glStencilOpSeparateATIPROC)extgl_GetProcAddress("glStencilOpSeparateATI"); - glStencilFuncSeparateATI = (glStencilFuncSeparateATIPROC)extgl_GetProcAddress("glStencilFuncSeparateATI"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_separate_stencil) -} - /* * Class: org.lwjgl.opengl.ATISeparateStencil * Method: glStencilOpSeparateATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI (JNIEnv * env, jclass clazz, jint face, jint sfail, jint dpfail, jint dppass) { - CHECK_EXISTS(glStencilOpSeparateATI) glStencilOpSeparateATI(face, sfail, dpfail, dppass); CHECK_GL_ERROR } @@ -69,10 +58,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSepar * Class: org.lwjgl.opengl.ATISeparateStencil * Method: glStencilFuncSeparateATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI (JNIEnv * env, jclass clazz, jint frontfunc, jint backfunc, jint ref, jint mask) { - CHECK_EXISTS(glStencilFuncSeparateATI) glStencilFuncSeparateATI(frontfunc, backfunc, ref, mask); CHECK_GL_ERROR } + +void extgl_InitATISeparateStencil(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glStencilOpSeparateATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI, "glStencilOpSeparateATI", (void**)&glStencilOpSeparateATI}, + {"glStencilFuncSeparateATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI, "glStencilFuncSeparateATI", (void**)&glStencilFuncSeparateATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATISeparateStencil"); + if (extgl_Extensions.GL_ATI_separate_stencil) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_separate_stencil", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.h b/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.h deleted file mode 100644 index 3e5e320d..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATISeparateStencil.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATISeparateStencil -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATISeparateStencil -#define _Included_org_lwjgl_opengl_ATISeparateStencil - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATISeparateStencil - * Method: glStencilOpSeparateATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilOpSeparateATI - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATISeparateStencil - * Method: glStencilFuncSeparateATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATISeparateStencil_glStencilFuncSeparateATI - (JNIEnv *, jclass, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.cpp index 1858f734..cb9c8252 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIVertexArrayObject // ---------------------------------- -#include "org_lwjgl_opengl_ATIVertexArrayObject.h" #include "extgl.h" #include "checkGLerror.h" @@ -64,33 +63,13 @@ static glVariantArrayObjectATIPROC glVariantArrayObjectATI; static glGetVariantArrayObjectfvATIPROC glGetVariantArrayObjectfvATI; static glGetVariantArrayObjectivATIPROC glGetVariantArrayObjectivATI; -void extgl_InitATIVertexArrayObject(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_vertex_array_object) - return; - glNewObjectBufferATI = (glNewObjectBufferATIPROC) extgl_GetProcAddress("glNewObjectBufferATI"); - glIsObjectBufferATI = (glIsObjectBufferATIPROC) extgl_GetProcAddress("glIsObjectBufferATI"); - glUpdateObjectBufferATI = (glUpdateObjectBufferATIPROC) extgl_GetProcAddress("glUpdateObjectBufferATI"); - glGetObjectBufferfvATI = (glGetObjectBufferfvATIPROC) extgl_GetProcAddress("glGetObjectBufferfvATI"); - glGetObjectBufferivATI = (glGetObjectBufferivATIPROC) extgl_GetProcAddress("glGetObjectBufferivATI"); - glFreeObjectBufferATI = (glFreeObjectBufferATIPROC) extgl_GetProcAddress("glFreeObjectBufferATI"); - glArrayObjectATI = (glArrayObjectATIPROC) extgl_GetProcAddress("glArrayObjectATI"); - glGetArrayObjectfvATI = (glGetArrayObjectfvATIPROC) extgl_GetProcAddress("glGetArrayObjectfvATI"); - glGetArrayObjectivATI = (glGetArrayObjectivATIPROC) extgl_GetProcAddress("glGetArrayObjectivATI"); - glVariantArrayObjectATI = (glVariantArrayObjectATIPROC) extgl_GetProcAddress("glVariantArrayObjectATI"); - glGetVariantArrayObjectfvATI = (glGetVariantArrayObjectfvATIPROC) extgl_GetProcAddress("glGetVariantArrayObjectfvATI"); - glGetVariantArrayObjectivATI = (glGetVariantArrayObjectivATIPROC) extgl_GetProcAddress("glGetVariantArrayObjectivATI"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_vertex_array_object) -} - /* * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglNewObjectBufferATI */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI (JNIEnv * env, jclass clazz, jint size, jobject pPointer, jint pPointer_offset, jint usage) { - CHECK_EXISTS(glNewObjectBufferATI) GLvoid *pPointer_ptr = safeGetBufferAddress(env, pPointer, pPointer_offset); GLuint result = glNewObjectBufferATI(size, pPointer_ptr, usage); CHECK_GL_ERROR @@ -101,10 +80,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBu * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: glIsObjectBufferATI */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObjectBufferATI +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObjectBufferATI (JNIEnv * env, jclass clazz, jint buffer) { - CHECK_EXISTS(glIsObjectBufferATI) GLboolean result = glIsObjectBufferATI(buffer); CHECK_GL_ERROR return result; @@ -114,10 +92,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObject * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglUpdateObjectBufferATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI (JNIEnv * env, jclass clazz, jint buffer, jint offset, jint size, jobject pPointer, jint pPointer_offset, jint preserve) { - CHECK_EXISTS(glUpdateObjectBufferATI) GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPointer) + pPointer_offset); glUpdateObjectBufferATI(buffer, offset, size, pPointer_ptr, preserve); CHECK_GL_ERROR @@ -127,10 +104,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjec * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglGetObjectBufferfvATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI (JNIEnv * env, jclass clazz, jint buffer, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetObjectBufferfvATI) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetObjectBufferfvATI(buffer, pname, pfParams_ptr); CHECK_GL_ERROR @@ -140,10 +116,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBu * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglGetObjectBufferivATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI (JNIEnv * env, jclass clazz, jint buffer, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetObjectBufferivATI) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetObjectBufferivATI(buffer, pname, piParams_ptr); CHECK_GL_ERROR @@ -153,10 +128,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBu * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: glFreeObjectBufferATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBufferATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBufferATI (JNIEnv * env, jclass clazz, jint buffer) { - CHECK_EXISTS(glFreeObjectBufferATI) glFreeObjectBufferATI(buffer); CHECK_GL_ERROR } @@ -165,10 +139,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBu * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: glArrayObjectATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectATI (JNIEnv * env, jclass clazz, jint array, jint size, jint type, jint stride, jint buffer, jint offset) { - CHECK_EXISTS(glArrayObjectATI) glArrayObjectATI(array, size, type, stride, buffer, offset); CHECK_GL_ERROR } @@ -177,10 +150,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectA * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglGetArrayObjectfvATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI (JNIEnv * env, jclass clazz, jint array, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetArrayObjectfvATI) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetArrayObjectfvATI(array, pname, pfParams_ptr); CHECK_GL_ERROR @@ -190,10 +162,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObj * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglGetArrayObjectivATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI (JNIEnv * env, jclass clazz, jint array, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetArrayObjectivATI) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetArrayObjectivATI(array, pname, piParams_ptr); CHECK_GL_ERROR @@ -203,10 +174,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObj * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: glVariantArrayObjectATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jint buffer, jint offset) { - CHECK_EXISTS(glVariantArrayObjectATI) glVariantArrayObjectATI(id, type, stride, buffer, offset); CHECK_GL_ERROR } @@ -215,10 +185,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArray * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglGetVariantArrayObjectfvATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI (JNIEnv * env, jclass clazz, jint id, jint pname, jobject pfParams, jint pfParams_offset_offset) { - CHECK_EXISTS(glGetVariantArrayObjectfvATI) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset_offset; glGetVariantArrayObjectfvATI(id, pname, pfParams_ptr); CHECK_GL_ERROR @@ -228,11 +197,32 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantA * Class: org.lwjgl.opengl.ATIVertexArrayObject * Method: nglGetVariantArrayObjectivATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI (JNIEnv * env, jclass clazz, jint id, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetVariantArrayObjectivATI) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetVariantArrayObjectivATI(id, pname, piParams_ptr); CHECK_GL_ERROR } + +void extgl_InitATIVertexArrayObject(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglNewObjectBufferATI", "(ILjava/nio/Buffer;II)I", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI, "glNewObjectBufferATI", (void**)&glNewObjectBufferATI}, + {"glIsObjectBufferATI", "(I)Z", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObjectBufferATI, "glIsObjectBufferATI", (void**)&glIsObjectBufferATI}, + {"nglUpdateObjectBufferATI", "(IIILjava/nio/Buffer;II)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI, "glUpdateObjectBufferATI", (void**)&glUpdateObjectBufferATI}, + {"nglGetObjectBufferfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI, "glGetObjectBufferfvATI", (void**)&glGetObjectBufferfvATI}, + {"nglGetObjectBufferivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI, "glGetObjectBufferivATI", (void**)&glGetObjectBufferivATI}, + {"glFreeObjectBufferATI", "(I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBufferATI, "glFreeObjectBufferATI", (void**)&glFreeObjectBufferATI}, + {"glArrayObjectATI", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectATI, "glArrayObjectATI", (void**)&glArrayObjectATI}, + {"nglGetArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI, "glGetArrayObjectfvATI", (void**)&glGetArrayObjectfvATI}, + {"nglGetArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI, "glGetArrayObjectivATI", (void**)&glGetArrayObjectivATI}, + {"glVariantArrayObjectATI", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI, "glVariantArrayObjectATI", (void**)&glVariantArrayObjectATI}, + {"nglGetVariantArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI, "glGetVariantArrayObjectfvATI", (void**)&glGetVariantArrayObjectfvATI}, + {"nglGetVariantArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI, "glGetVariantArrayObjectivATI", (void**)&glGetVariantArrayObjectivATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIVertexArrayObject"); + if (extgl_Extensions.GL_ATI_vertex_array_object) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_vertex_array_object", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.h b/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.h deleted file mode 100644 index 7facfb73..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIVertexArrayObject.h +++ /dev/null @@ -1,134 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIVertexArrayObject -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIVertexArrayObject -#define _Included_org_lwjgl_opengl_ATIVertexArrayObject - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglNewObjectBufferATI - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglNewObjectBufferATI - (JNIEnv *, jclass, jint, jobject, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glIsObjectBufferATI - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glIsObjectBufferATI - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglUpdateObjectBufferATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglUpdateObjectBufferATI - (JNIEnv *, jclass, jint, jint, jint, jobject, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetObjectBufferfvATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferfvATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetObjectBufferivATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetObjectBufferivATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glFreeObjectBufferATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glFreeObjectBufferATI - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glArrayObjectATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glArrayObjectATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetArrayObjectfvATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectfvATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetArrayObjectivATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetArrayObjectivATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: glVariantArrayObjectATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_glVariantArrayObjectATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetVariantArrayObjectfvATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectfvATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexArrayObject - * Method: nglGetVariantArrayObjectivATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexArrayObject_nglGetVariantArrayObjectivATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.cpp index a048fe4b..1204f446 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIVertexAttribArrayObject // ---------------------------------- -#include "org_lwjgl_opengl_ATIVertexAttribArrayObject.h" #include "extgl.h" #include "checkGLerror.h" @@ -46,26 +45,13 @@ static glVertexAttribArrayObjectATIPROC glVertexAttribArrayObjectATI; static glGetVertexAttribArrayObjectfvATIPROC glGetVertexAttribArrayObjectfvATI; static glGetVertexAttribArrayObjectivATIPROC glGetVertexAttribArrayObjectivATI; -void extgl_InitATIVertexAttribArrayObject(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_vertex_attrib_array_object) - return; - - glVertexAttribArrayObjectATI = (glVertexAttribArrayObjectATIPROC) extgl_GetProcAddress("glVertexAttribArrayObjectATI"); - glGetVertexAttribArrayObjectfvATI = (glGetVertexAttribArrayObjectfvATIPROC) extgl_GetProcAddress("glGetVertexAttribArrayObjectfvATI"); - glGetVertexAttribArrayObjectivATI = (glGetVertexAttribArrayObjectivATIPROC) extgl_GetProcAddress("glGetVertexAttribArrayObjectivATI"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_vertex_attrib_array_object) -} - /* * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject * Method: glVertexAttribArrayObjectATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jboolean normalized, jint stride, jint buffer, jint offset) { - CHECK_EXISTS(glVertexAttribArrayObjectATI) glVertexAttribArrayObjectATI(index, size, type, normalized, stride, buffer, offset); CHECK_GL_ERROR } @@ -74,10 +60,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertex * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject * Method: nglGetVertexAttribArrayObjectfvATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetVertexAttribArrayObjectfvATI) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetVertexAttribArrayObjectfvATI(index, pname, params_ptr); CHECK_GL_ERROR @@ -87,11 +72,23 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVe * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject * Method: nglGetVertexAttribArrayObjectivATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI (JNIEnv * env, jclass clazz, jint index, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetVertexAttribArrayObjectivATI) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetVertexAttribArrayObjectivATI(index, pname, params_ptr); CHECK_GL_ERROR } + +void extgl_InitATIVertexAttribArrayObject(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glVertexAttribArrayObjectATI", "(IIIZIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI, "glVertexAttribArrayObjectATI", (void**)&glVertexAttribArrayObjectATI}, + {"nglGetVertexAttribArrayObjectfvATI", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI, "glGetVertexAttribArrayObjectfvATI", (void**)&glGetVertexAttribArrayObjectfvATI}, + {"nglGetVertexAttribArrayObjectivATI", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI, "glGetVertexAttribArrayObjectivATI", (void**)&glGetVertexAttribArrayObjectivATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIVertexAttribArrayObject"); + if (extgl_Extensions.GL_ATI_vertex_attrib_array_object) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_vertex_attrib_array_object", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.h b/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.h deleted file mode 100644 index 7d920ed8..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIVertexAttribArrayObject.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIVertexAttribArrayObject -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIVertexAttribArrayObject -#define _Included_org_lwjgl_opengl_ATIVertexAttribArrayObject - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject - * Method: glVertexAttribArrayObjectATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_glVertexAttribArrayObjectATI - (JNIEnv *, jclass, jint, jint, jint, jboolean, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject - * Method: nglGetVertexAttribArrayObjectfvATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectfvATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexAttribArrayObject - * Method: nglGetVertexAttribArrayObjectivATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexAttribArrayObject_nglGetVertexAttribArrayObjectivATI - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIVertexStreams.cpp b/src/native/common/ati/org_lwjgl_opengl_ATIVertexStreams.cpp index 402c1757..39764cc1 100644 --- a/src/native/common/ati/org_lwjgl_opengl_ATIVertexStreams.cpp +++ b/src/native/common/ati/org_lwjgl_opengl_ATIVertexStreams.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.ATIVertexStreams // ---------------------------------- -#include "org_lwjgl_opengl_ATIVertexStreams.h" #include "extgl.h" #include "checkGLerror.h" @@ -78,40 +77,13 @@ static glNormalStream3sATIPROC glNormalStream3sATI; static glNormalStream3iATIPROC glNormalStream3iATI; static glNormalStream3fATIPROC glNormalStream3fATI; -void extgl_InitATIVertexStreams(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_ATI_vertex_streams) - return; - glClientActiveVertexStreamATI = (glClientActiveVertexStreamATIPROC) extgl_GetProcAddress("glClientActiveVertexStreamATI"); - glVertexBlendEnviATI = (glVertexBlendEnviATIPROC) extgl_GetProcAddress("glVertexBlendEnviATI"); - glVertexBlendEnvfATI = (glVertexBlendEnvfATIPROC) extgl_GetProcAddress("glVertexBlendEnvfATI"); - glVertexStream1sATI = (glVertexStream1sATIPROC) extgl_GetProcAddress("glVertexStream1sATI"); - glVertexStream1iATI = (glVertexStream1iATIPROC) extgl_GetProcAddress("glVertexStream1iATI"); - glVertexStream1fATI = (glVertexStream1fATIPROC) extgl_GetProcAddress("glVertexStream1fATI"); - glVertexStream2sATI = (glVertexStream2sATIPROC) extgl_GetProcAddress("glVertexStream2sATI"); - glVertexStream2iATI = (glVertexStream2iATIPROC) extgl_GetProcAddress("glVertexStream2iATI"); - glVertexStream2fATI = (glVertexStream2fATIPROC) extgl_GetProcAddress("glVertexStream2fATI"); - glVertexStream3sATI = (glVertexStream3sATIPROC) extgl_GetProcAddress("glVertexStream3sATI"); - glVertexStream3iATI = (glVertexStream3iATIPROC) extgl_GetProcAddress("glVertexStream3iATI"); - glVertexStream3fATI = (glVertexStream3fATIPROC) extgl_GetProcAddress("glVertexStream3fATI"); - glVertexStream4sATI = (glVertexStream4sATIPROC) extgl_GetProcAddress("glVertexStream4sATI"); - glVertexStream4iATI = (glVertexStream4iATIPROC) extgl_GetProcAddress("glVertexStream4iATI"); - glVertexStream4fATI = (glVertexStream4fATIPROC) extgl_GetProcAddress("glVertexStream4fATI"); - glNormalStream3bATI = (glNormalStream3bATIPROC) extgl_GetProcAddress("glNormalStream3bATI"); - glNormalStream3sATI = (glNormalStream3sATIPROC) extgl_GetProcAddress("glNormalStream3sATI"); - glNormalStream3iATI = (glNormalStream3iATIPROC) extgl_GetProcAddress("glNormalStream3iATI"); - glNormalStream3fATI = (glNormalStream3fATIPROC) extgl_GetProcAddress("glNormalStream3fATI"); - EXTGL_SANITY_CHECK(env, ext_set, GL_ATI_vertex_streams) -} - /* * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream1fATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1fATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1fATI (JNIEnv * env, jclass clazz, jint stream, jfloat x) { - CHECK_EXISTS(glVertexStream1fATI) glVertexStream1fATI(stream, x); CHECK_GL_ERROR } @@ -120,10 +92,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1fAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream1iATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1iATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1iATI (JNIEnv * env, jclass clazz, jint stream, jint x) { - CHECK_EXISTS(glVertexStream1iATI) glVertexStream1iATI(stream, x); CHECK_GL_ERROR } @@ -132,10 +103,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1iAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream1sATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1sATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1sATI (JNIEnv * env, jclass clazz, jint stream, jshort x) { - CHECK_EXISTS(glVertexStream1sATI) glVertexStream1sATI(stream, x); CHECK_GL_ERROR } @@ -144,10 +114,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1sAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream2fATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2fATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2fATI (JNIEnv * env, jclass clazz, jint stream, jfloat x, jfloat y) { - CHECK_EXISTS(glVertexStream2fATI) glVertexStream2fATI(stream, x, y); CHECK_GL_ERROR } @@ -156,10 +125,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2fAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream2iATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2iATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2iATI (JNIEnv * env, jclass clazz, jint stream, jint x, jint y) { - CHECK_EXISTS(glVertexStream2iATI) glVertexStream2iATI(stream, x, y); CHECK_GL_ERROR } @@ -168,10 +136,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2iAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream2sATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2sATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2sATI (JNIEnv * env, jclass clazz, jint stream, jshort x, jshort y) { - CHECK_EXISTS(glVertexStream2sATI) glVertexStream2sATI(stream, x, y); CHECK_GL_ERROR } @@ -180,10 +147,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2sAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream3fATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3fATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3fATI (JNIEnv * env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z) { - CHECK_EXISTS(glVertexStream3fATI) glVertexStream3fATI(stream, x, y, z); CHECK_GL_ERROR } @@ -192,10 +158,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3fAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream3iATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3iATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3iATI (JNIEnv * env, jclass clazz, jint stream, jint x, jint y, jint z) { - CHECK_EXISTS(glVertexStream3iATI) glVertexStream3iATI(stream, x, y, z); CHECK_GL_ERROR } @@ -204,10 +169,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3iAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream3sATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3sATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3sATI (JNIEnv * env, jclass clazz, jint stream, jshort x, jshort y, jshort z) { - CHECK_EXISTS(glVertexStream3sATI) glVertexStream3sATI(stream, x, y, z); CHECK_GL_ERROR } @@ -216,10 +180,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3sAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream4fATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4fATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4fATI (JNIEnv * env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glVertexStream4fATI) glVertexStream4fATI(stream, x, y, z, w); CHECK_GL_ERROR } @@ -228,10 +191,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4fAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream4iATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4iATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4iATI (JNIEnv * env, jclass clazz, jint stream, jint x, jint y, jint z, jint w) { - CHECK_EXISTS(glVertexStream4iATI) glVertexStream4iATI(stream, x, y, z, w); CHECK_GL_ERROR } @@ -240,10 +202,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4iAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexStream4sATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4sATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4sATI (JNIEnv * env, jclass clazz, jint stream, jshort x, jshort y, jshort z, jshort w) { - CHECK_EXISTS(glVertexStream4sATI) glVertexStream4sATI(stream, x, y, z, w); CHECK_GL_ERROR } @@ -252,10 +213,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4sAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glNormalStream3bATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3bATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3bATI (JNIEnv * env, jclass clazz, jint stream, jbyte x, jbyte y, jbyte z) { - CHECK_EXISTS(glNormalStream3bATI) glNormalStream3bATI(stream, x, y, z); CHECK_GL_ERROR } @@ -264,10 +224,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3bAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glNormalStream3fATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3fATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3fATI (JNIEnv * env, jclass clazz, jint stream, jfloat x, jfloat y, jfloat z) { - CHECK_EXISTS(glNormalStream3fATI) glNormalStream3fATI(stream, x, y, z); CHECK_GL_ERROR } @@ -276,10 +235,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3fAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glNormalStream3iATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3iATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3iATI (JNIEnv * env, jclass clazz, jint stream, jint x, jint y, jint z) { - CHECK_EXISTS(glNormalStream3iATI) glNormalStream3iATI(stream, x, y, z); CHECK_GL_ERROR } @@ -288,10 +246,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3iAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glNormalStream3sATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3sATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3sATI (JNIEnv * env, jclass clazz, jint stream, jshort x, jshort y, jshort z) { - CHECK_EXISTS(glNormalStream3sATI) glNormalStream3sATI(stream, x, y, z); CHECK_GL_ERROR } @@ -300,10 +257,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3sAT * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glClientActiveVertexStreamATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glClientActiveVertexStreamATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glClientActiveVertexStreamATI (JNIEnv * env, jclass clazz, jint stream) { - CHECK_EXISTS(glClientActiveVertexStreamATI) glClientActiveVertexStreamATI(stream); CHECK_GL_ERROR } @@ -312,10 +268,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glClientActiveVert * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexBlendEnvfATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnvfATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnvfATI (JNIEnv * env, jclass clazz, jint pname, jfloat param) { - CHECK_EXISTS(glVertexBlendEnvfATI) glVertexBlendEnvfATI(pname, param); CHECK_GL_ERROR } @@ -324,10 +279,38 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnvfA * Class: org.lwjgl.opengl.ATIVertexStreams * Method: glVertexBlendEnviATI */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnviATI +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnviATI (JNIEnv * env, jclass clazz, jint pname, jint param) { - CHECK_EXISTS(glVertexBlendEnviATI) glVertexBlendEnviATI(pname, param); CHECK_GL_ERROR } + +void extgl_InitATIVertexStreams(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glVertexStream1fATI", "(IF)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1fATI, "glVertexStream1fATI", (void**)&glVertexStream1fATI}, + {"glVertexStream1iATI", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1iATI, "glVertexStream1iATI", (void**)&glVertexStream1iATI}, + {"glVertexStream1sATI", "(IS)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1sATI, "glVertexStream1sATI", (void**)&glVertexStream1sATI}, + {"glVertexStream2fATI", "(IFF)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2fATI, "glVertexStream2fATI", (void**)&glVertexStream2fATI}, + {"glVertexStream2iATI", "(III)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2iATI, "glVertexStream2iATI", (void**)&glVertexStream2iATI}, + {"glVertexStream2sATI", "(ISS)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2sATI, "glVertexStream2sATI", (void**)&glVertexStream2sATI}, + {"glVertexStream3fATI", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3fATI, "glVertexStream3fATI", (void**)&glVertexStream3fATI}, + {"glVertexStream3iATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3iATI, "glVertexStream3iATI", (void**)&glVertexStream3iATI}, + {"glVertexStream3sATI", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3sATI, "glVertexStream3sATI", (void**)&glVertexStream3sATI}, + {"glVertexStream4fATI", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4fATI, "glVertexStream4fATI", (void**)&glVertexStream4fATI}, + {"glVertexStream4iATI", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4iATI, "glVertexStream4iATI", (void**)&glVertexStream4iATI}, + {"glVertexStream4sATI", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4sATI, "glVertexStream4sATI", (void**)&glVertexStream4sATI}, + {"glNormalStream3bATI", "(IBBB)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3bATI, "glNormalStream3bATI", (void**)&glNormalStream3bATI}, + {"glNormalStream3fATI", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3fATI, "glNormalStream3fATI", (void**)&glNormalStream3fATI}, + {"glNormalStream3iATI", "(IIII)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3iATI, "glNormalStream3iATI", (void**)&glNormalStream3iATI}, + {"glNormalStream3sATI", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3sATI, "glNormalStream3sATI", (void**)&glNormalStream3sATI}, + {"glClientActiveVertexStreamATI", "(I)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glClientActiveVertexStreamATI, "glClientActiveVertexStreamATI", (void**)&glClientActiveVertexStreamATI}, + {"glVertexBlendEnvfATI", "(IF)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnvfATI, "glVertexBlendEnvfATI", (void**)&glVertexBlendEnvfATI}, + {"glVertexBlendEnviATI", "(II)V", (void*)&Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnviATI, "glVertexBlendEnviATI", (void**)&glVertexBlendEnviATI} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/ATIVertexStreams"); + if (extgl_Extensions.GL_ATI_vertex_streams) + extgl_InitializeClass(env, clazz, ext_set, "GL_ATI_vertex_streams", num_functions, functions); +} diff --git a/src/native/common/ati/org_lwjgl_opengl_ATIVertexStreams.h b/src/native/common/ati/org_lwjgl_opengl_ATIVertexStreams.h deleted file mode 100644 index c107fccc..00000000 --- a/src/native/common/ati/org_lwjgl_opengl_ATIVertexStreams.h +++ /dev/null @@ -1,183 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.ATIVertexStreams -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_ATIVertexStreams -#define _Included_org_lwjgl_opengl_ATIVertexStreams - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream1fATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1fATI - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream1iATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1iATI - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream1sATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream1sATI - (JNIEnv *, jclass, jint, jshort); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream2fATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2fATI - (JNIEnv *, jclass, jint, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream2iATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2iATI - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream2sATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream2sATI - (JNIEnv *, jclass, jint, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream3fATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3fATI - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream3iATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3iATI - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream3sATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream3sATI - (JNIEnv *, jclass, jint, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream4fATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4fATI - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream4iATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4iATI - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexStream4sATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexStream4sATI - (JNIEnv *, jclass, jint, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glNormalStream3bATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3bATI - (JNIEnv *, jclass, jint, jbyte, jbyte, jbyte); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glNormalStream3fATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3fATI - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glNormalStream3iATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3iATI - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glNormalStream3sATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glNormalStream3sATI - (JNIEnv *, jclass, jint, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glClientActiveVertexStreamATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glClientActiveVertexStreamATI - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexBlendEnvfATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnvfATI - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.ATIVertexStreams - * Method: glVertexBlendEnviATI - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_ATIVertexStreams_glVertexBlendEnviATI - (JNIEnv *, jclass, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/checkGLerror.h b/src/native/common/checkGLerror.h index cd54823d..167cda76 100644 --- a/src/native/common/checkGLerror.h +++ b/src/native/common/checkGLerror.h @@ -28,13 +28,4 @@ } \ } -#define CHECK_EXISTS(f) \ - { \ - if (!f) { \ - jclass cls = env->FindClass("org/lwjgl/opengl/OpenGLException"); \ - env->ThrowNew(cls, "This function is not available in this driver."); \ - env->DeleteLocalRef(cls); \ - } \ - } \ - #endif /* _CHECKGLERROR_H_INCLUDED_ */ diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTBlendFuncSeparate.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTBlendFuncSeparate.cpp index fcb26c11..20d62baf 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTBlendFuncSeparate.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTBlendFuncSeparate.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTBlendFuncSeparate // ---------------------------------- -#include "org_lwjgl_opengl_EXTBlendFuncSeparate.h" #include "extgl.h" #include "checkGLerror.h" @@ -42,22 +41,25 @@ typedef void (APIENTRY * glBlendFuncSeparateEXTPROC) (GLenum sfactorRGB, GLenum static glBlendFuncSeparateEXTPROC glBlendFuncSeparateEXT; -void extgl_InitEXTBlendFuncSeparate(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_blend_func_separate) - return; - glBlendFuncSeparateEXT = (glBlendFuncSeparateEXTPROC) extgl_GetProcAddress("glBlendFuncSeparateEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_blend_func_separate) -} - /* * Class: org.lwjgl.opengl.EXTBlendFuncSeparate * Method: glBlendFuncSeparateEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendFuncSeparate_glBlendFuncSeparateEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendFuncSeparate_glBlendFuncSeparateEXT (JNIEnv * env, jclass clazz, jint sfactorRGB, jint dfactorRGB, jint sfactorAlpha, jint dfactorAlpha) { - CHECK_EXISTS(glBlendFuncSeparateEXT) glBlendFuncSeparateEXT(sfactorRGB, dfactorRGB, sfactorAlpha, dfactorAlpha); CHECK_GL_ERROR } + +void extgl_InitEXTBlendFuncSeparate(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glBlendFuncSeparateEXT", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTBlendFuncSeparate_glBlendFuncSeparateEXT, "glBlendFuncSeparateEXT", (void**)&glBlendFuncSeparateEXT} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTBlendFuncSeparate"); + if (extgl_Extensions.GL_EXT_blend_func_separate) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_blend_func_separate", num_functions, functions); +} + diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTBlendFuncSeparate.h b/src/native/common/ext/org_lwjgl_opengl_EXTBlendFuncSeparate.h deleted file mode 100644 index 05179ddc..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTBlendFuncSeparate.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTBlendFuncSeparate -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTBlendFuncSeparate -#define _Included_org_lwjgl_opengl_EXTBlendFuncSeparate - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTBlendFuncSeparate - * Method: glBlendFuncSeparateEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTBlendFuncSeparate_glBlendFuncSeparateEXT - (JNIEnv *, jclass, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTCompiledVertexArray.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTCompiledVertexArray.cpp index 40efd792..00e082e2 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTCompiledVertexArray.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTCompiledVertexArray.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTCompiledVertexArray // ---------------------------------- -#include "org_lwjgl_opengl_EXTCompiledVertexArray.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glUnlockArraysEXTPROC) (); static glLockArraysEXTPROC glLockArraysEXT; static glUnlockArraysEXTPROC glUnlockArraysEXT; -void extgl_InitEXTCompiledVertexArray(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_compiled_vertex_array) - return; - glLockArraysEXT = (glLockArraysEXTPROC) extgl_GetProcAddress("glLockArraysEXT"); - glUnlockArraysEXT = (glUnlockArraysEXTPROC) extgl_GetProcAddress("glUnlockArraysEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_compiled_vertex_array) -} - /* * Class: org.lwjgl.opengl.EXTCompiledVertexArray * Method: glLockArraysEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glLockArraysEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glLockArraysEXT (JNIEnv * env, jclass clazz, jint first, jint count) { - CHECK_EXISTS(glLockArraysEXT) glLockArraysEXT(first, count); CHECK_GL_ERROR } @@ -69,10 +58,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glLockArrays * Class: org.lwjgl.opengl.EXTCompiledVertexArray * Method: glUnlockArraysEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glUnlockArraysEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glUnlockArraysEXT (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glUnlockArraysEXT) glUnlockArraysEXT(); CHECK_GL_ERROR } + +void extgl_InitEXTCompiledVertexArray(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glLockArraysEXT", "(II)V", (void*)&Java_org_lwjgl_opengl_EXTCompiledVertexArray_glLockArraysEXT, "glLockArraysEXT", (void**)&glLockArraysEXT}, + {"glUnlockArraysEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTCompiledVertexArray_glUnlockArraysEXT, "glUnlockArraysEXT", (void**)&glUnlockArraysEXT} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTCompiledVertexArray"); + if (extgl_Extensions.GL_EXT_compiled_vertex_array) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_compiled_vertex_array", num_functions, functions); +} + diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTCompiledVertexArray.h b/src/native/common/ext/org_lwjgl_opengl_EXTCompiledVertexArray.h deleted file mode 100644 index 32cade04..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTCompiledVertexArray.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTCompiledVertexArray -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTCompiledVertexArray -#define _Included_org_lwjgl_opengl_EXTCompiledVertexArray - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTCompiledVertexArray - * Method: glLockArraysEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glLockArraysEXT - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTCompiledVertexArray - * Method: glUnlockArraysEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTCompiledVertexArray_glUnlockArraysEXT - (JNIEnv *, jclass); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.cpp index c2b1057c..e83980f2 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTDrawRangeElements // ---------------------------------- -#include "org_lwjgl_opengl_EXTDrawRangeElements.h" #include "extgl.h" #include "checkGLerror.h" @@ -42,22 +41,13 @@ typedef void (APIENTRY * glDrawRangeElementsEXTPROC) ( GLenum mode, GLuint start static glDrawRangeElementsEXTPROC glDrawRangeElementsEXT; -void extgl_InitEXTDrawRangeElements(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_draw_range_elements) - return; - glDrawRangeElementsEXT = (glDrawRangeElementsEXTPROC) extgl_GetProcAddress("glDrawRangeElementsEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_draw_range_elements) -} - /* * Class: org.lwjgl.opengl.EXTDrawRangeElements * Method: nglDrawRangeElementsEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXT (JNIEnv * env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jobject pIndices, jint pIndices_offset) { - CHECK_EXISTS(glDrawRangeElementsEXT) GLvoid *pIndices_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pIndices) + pIndices_offset); glDrawRangeElementsEXT(mode, start, end, count, type, pIndices_ptr); CHECK_GL_ERROR @@ -67,10 +57,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeEl * Class: org.lwjgl.opengl.EXTDrawRangeElements * Method: nglDrawRangeElementsEXTVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXTVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXTVBO (JNIEnv * env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jint buffer_offset) { - CHECK_EXISTS(glDrawRangeElementsEXT) glDrawRangeElementsEXT(mode, start, end, count, type, (GLvoid *)buffer_offset); CHECK_GL_ERROR } + +void extgl_InitEXTDrawRangeElements(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglDrawRangeElementsEXT", "(IIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXT, "glDrawRangeElementsEXT", (void**)&glDrawRangeElementsEXT}, + {"nglDrawRangeElementsEXTVBO", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXTVBO, NULL, NULL} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTDrawRangeElements"); + if (extgl_Extensions.GL_EXT_draw_range_elements) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_draw_range_elements", num_functions, functions); +} + diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.h b/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.h deleted file mode 100644 index 0ab06265..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTDrawRangeElements.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTDrawRangeElements -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTDrawRangeElements -#define _Included_org_lwjgl_opengl_EXTDrawRangeElements - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTDrawRangeElements - * Method: nglDrawRangeElementsEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXT - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTDrawRangeElements - * Method: nglDrawRangeElementsEXTVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTDrawRangeElements_nglDrawRangeElementsEXTVBO - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTFogCoord.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTFogCoord.cpp index 00d9f7a8..e0f4c66f 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTFogCoord.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTFogCoord.cpp @@ -34,36 +34,22 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTFogCoord // ---------------------------------- -#include "org_lwjgl_opengl_EXTFogCoord.h" #include "extgl.h" #include "checkGLerror.h" typedef void (APIENTRY * glFogCoordfEXTPROC) (GLfloat coord); -typedef void (APIENTRY * glFogCoordfvEXTPROC) (const GLfloat *coord); typedef void (APIENTRY * glFogCoordPointerEXTPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); static glFogCoordfEXTPROC glFogCoordfEXT; -static glFogCoordfvEXTPROC glFogCoordfvEXT; static glFogCoordPointerEXTPROC glFogCoordPointerEXT; -void extgl_InitEXTFogCoord(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_fog_coord) - return; - glFogCoordfEXT = (glFogCoordfEXTPROC) extgl_GetProcAddress("glFogCoordfEXT"); - glFogCoordfvEXT = (glFogCoordfvEXTPROC) extgl_GetProcAddress("glFogCoordfvEXT"); - glFogCoordPointerEXT = (glFogCoordPointerEXTPROC) extgl_GetProcAddress("glFogCoordPointerEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_fog_coord) -} - /* * Class: org.lwjgl.opengl.EXTFogCoord * Method: glFogCoordfEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_glFogCoordfEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_glFogCoordfEXT (JNIEnv * env, jclass clazz, jfloat coord) { - CHECK_EXISTS(glFogCoordfEXT) glFogCoordfEXT(coord); CHECK_GL_ERROR } @@ -72,10 +58,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_glFogCoordfEXT * Class: org.lwjgl.opengl.EXTFogCoord * Method: nglFogCoordPointerEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT (JNIEnv * env, jclass clazz, jint type, jint stride, jobject data, jint data_offset) { - CHECK_EXISTS(glFogCoordPointerEXT) GLvoid *data_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(data) + data_offset); glFogCoordPointerEXT(type, stride, data_ptr); CHECK_GL_ERROR @@ -85,10 +70,23 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT * Class: org.lwjgl.opengl.EXTFogCoord * Method: nglFogCoordPointerEXTVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXTVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXTVBO (JNIEnv * env, jclass clazz, jint type, jint stride, jint buffer_offset) { - CHECK_EXISTS(glFogCoordPointerEXT) glFogCoordPointerEXT(type, stride, (GLvoid *)buffer_offset); CHECK_GL_ERROR } + +void extgl_InitEXTFogCoord(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glFogCoordfEXT", "(F)V", (void*)&Java_org_lwjgl_opengl_EXTFogCoord_glFogCoordfEXT, "glFogCoordfEXT", (void**)&glFogCoordfEXT}, + {"nglFogCoordPointerEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT, "glFogCoordPointerEXT", (void**)&glFogCoordPointerEXT}, + {"nglFogCoordPointerEXTVBO", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXTVBO, NULL, NULL} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTFogCoord"); + if (extgl_Extensions.GL_EXT_fog_coord) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_fog_coord", num_functions, functions); +} + diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTFogCoord.h b/src/native/common/ext/org_lwjgl_opengl_EXTFogCoord.h deleted file mode 100644 index 93868ea3..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTFogCoord.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTFogCoord -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTFogCoord -#define _Included_org_lwjgl_opengl_EXTFogCoord - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTFogCoord - * Method: glFogCoordfEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_glFogCoordfEXT - (JNIEnv *, jclass, jfloat); - -/* - * Class: org.lwjgl.opengl.EXTFogCoord - * Method: nglFogCoordPointerEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTFogCoord - * Method: nglFogCoordPointerEXTVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTFogCoord_nglFogCoordPointerEXTVBO - (JNIEnv *, jclass, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTMultiDrawArrays.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTMultiDrawArrays.cpp index 803ab7dc..0a89f96a 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTMultiDrawArrays.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTMultiDrawArrays.cpp @@ -34,35 +34,34 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTMultiDrawArrays // ---------------------------------- -#include "org_lwjgl_opengl_EXTMultiDrawArrays.h" #include "extgl.h" #include "checkGLerror.h" typedef void (APIENTRY * glMultiDrawArraysEXTPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); -typedef void (APIENTRY * glMultiDrawElementsEXTPROC) (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount); static glMultiDrawArraysEXTPROC glMultiDrawArraysEXT; -static glMultiDrawElementsEXTPROC glMultiDrawElementsEXT; - -void extgl_InitEXTMultiDrawArrays(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_multi_draw_arrays) - return; - glMultiDrawArraysEXT = (glMultiDrawArraysEXTPROC) extgl_GetProcAddress("glMultiDrawArraysEXT"); - glMultiDrawElementsEXT = (glMultiDrawElementsEXTPROC) extgl_GetProcAddress("glMultiDrawElementsEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_multi_draw_arrays) -} /* * Class: org.lwjgl.opengl.EXTMultiDrawArrays * Method: nglMultiDrawArraysEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTMultiDrawArrays_nglMultiDrawArraysEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTMultiDrawArrays_nglMultiDrawArraysEXT (JNIEnv * env, jclass clazz, jint mode, jobject piFirst, jint piFirst_offset, jobject piCount, jint piCount_offset, jint primcount) { - CHECK_EXISTS(glMultiDrawArraysEXT) GLint *piFirst_ptr = (GLint *)env->GetDirectBufferAddress(piFirst) + piFirst_offset; GLint *piCount_ptr = (GLint *)env->GetDirectBufferAddress(piCount) + piCount_offset; glMultiDrawArraysEXT(mode, piFirst_ptr, piCount_ptr, primcount); CHECK_GL_ERROR } + +void extgl_InitEXTMultiDrawArrays(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglMultiDrawArraysEXT", "(ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;II)V", (void*)&Java_org_lwjgl_opengl_EXTMultiDrawArrays_nglMultiDrawArraysEXT, "glMultiDrawArraysEXT", (void**)&glMultiDrawArraysEXT} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTMultiDrawArrays"); + if (extgl_Extensions.GL_EXT_multi_draw_arrays) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_multi_draw_arrays", num_functions, functions); +} + diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTMultiDrawArrays.h b/src/native/common/ext/org_lwjgl_opengl_EXTMultiDrawArrays.h deleted file mode 100644 index d458aefc..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTMultiDrawArrays.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTMultiDrawArrays -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTMultiDrawArrays -#define _Included_org_lwjgl_opengl_EXTMultiDrawArrays - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTMultiDrawArrays - * Method: nglMultiDrawArraysEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTMultiDrawArrays_nglMultiDrawArraysEXT - (JNIEnv *, jclass, jint, jobject, jint, jobject, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTPointParameters.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTPointParameters.cpp index ef5d2c25..c275fed5 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTPointParameters.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTPointParameters.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTPointParameters // ---------------------------------- -#include "org_lwjgl_opengl_EXTPointParameters.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glPointParameterfvEXTPROC) (GLenum pname, const GLfloat static glPointParameterfEXTPROC glPointParameterfEXT; static glPointParameterfvEXTPROC glPointParameterfvEXT; -void extgl_InitEXTPointParameters(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_point_parameters) - return; - glPointParameterfEXT = (glPointParameterfEXTPROC) extgl_GetProcAddress("glPointParameterfEXT"); - glPointParameterfvEXT = (glPointParameterfvEXTPROC) extgl_GetProcAddress("glPointParameterfvEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_point_parameters) -} - /* * Class: org.lwjgl.opengl.EXTPointParameters * Method: glPointParameterfEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_glPointParameterfEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_glPointParameterfEXT (JNIEnv * env, jclass clazz, jint pname, jfloat param) { - CHECK_EXISTS(glPointParameterfEXT) glPointParameterfEXT(pname, param); CHECK_GL_ERROR } @@ -69,11 +58,23 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_glPointParameter * Class: org.lwjgl.opengl.EXTPointParameters * Method: nglPointParameterfvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_nglPointParameterfvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_nglPointParameterfvEXT (JNIEnv * env, jclass clazz, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glPointParameterfvEXT) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glPointParameterfvEXT(pname, pfParams_ptr); CHECK_GL_ERROR } + +void extgl_InitEXTPointParameters(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glPointParameterfEXT", "(IF)V", (void*)&Java_org_lwjgl_opengl_EXTPointParameters_glPointParameterfEXT, "glPointParameterfEXT", (void**)&glPointParameterfEXT}, + {"nglPointParameterfvEXT", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTPointParameters_nglPointParameterfvEXT, "glPointParameterfvEXT", (void**)&glPointParameterfvEXT} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTPointParameters"); + if (extgl_Extensions.GL_EXT_point_parameters) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_point_parameters", num_functions, functions); +} + diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTPointParameters.h b/src/native/common/ext/org_lwjgl_opengl_EXTPointParameters.h deleted file mode 100644 index 1288d6fc..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTPointParameters.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTPointParameters -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTPointParameters -#define _Included_org_lwjgl_opengl_EXTPointParameters - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTPointParameters - * Method: glPointParameterfEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_glPointParameterfEXT - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.EXTPointParameters - * Method: nglPointParameterfvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTPointParameters_nglPointParameterfvEXT - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTSecondaryColor.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTSecondaryColor.cpp index 63127b9e..c5fcd6e7 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTSecondaryColor.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTSecondaryColor.cpp @@ -34,51 +34,26 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTSecondaryColor // ---------------------------------- -#include "org_lwjgl_opengl_EXTSecondaryColor.h" #include "extgl.h" #include "checkGLerror.h" typedef void (APIENTRY * glSecondaryColor3bEXTPROC) (GLbyte red, GLbyte green, GLbyte blue); typedef void (APIENTRY * glSecondaryColor3fEXTPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRY * glSecondaryColor3iEXTPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRY * glSecondaryColor3sEXTPROC) (GLshort red, GLshort green, GLshort blue); typedef void (APIENTRY * glSecondaryColor3ubEXTPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRY * glSecondaryColor3uiEXTPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRY * glSecondaryColor3usEXTPROC) (GLushort red, GLushort green, GLushort blue); typedef void (APIENTRY * glSecondaryColorPointerEXTPROC) (GLint size, GLenum type, GLsizei stride, GLvoid *pointer); static glSecondaryColor3bEXTPROC glSecondaryColor3bEXT; static glSecondaryColor3fEXTPROC glSecondaryColor3fEXT; -static glSecondaryColor3iEXTPROC glSecondaryColor3iEXT; -static glSecondaryColor3sEXTPROC glSecondaryColor3sEXT; static glSecondaryColor3ubEXTPROC glSecondaryColor3ubEXT; -static glSecondaryColor3uiEXTPROC glSecondaryColor3uiEXT; -static glSecondaryColor3usEXTPROC glSecondaryColor3usEXT; static glSecondaryColorPointerEXTPROC glSecondaryColorPointerEXT; -void extgl_InitEXTSecondaryColor(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_secondary_color) - return; - glSecondaryColor3bEXT = (glSecondaryColor3bEXTPROC) extgl_GetProcAddress("glSecondaryColor3bEXT"); - glSecondaryColor3fEXT = (glSecondaryColor3fEXTPROC) extgl_GetProcAddress("glSecondaryColor3fEXT"); - glSecondaryColor3iEXT = (glSecondaryColor3iEXTPROC) extgl_GetProcAddress("glSecondaryColor3iEXT"); - glSecondaryColor3sEXT = (glSecondaryColor3sEXTPROC) extgl_GetProcAddress("glSecondaryColor3sEXT"); - glSecondaryColor3ubEXT = (glSecondaryColor3ubEXTPROC) extgl_GetProcAddress("glSecondaryColor3ubEXT"); - glSecondaryColor3uiEXT = (glSecondaryColor3uiEXTPROC) extgl_GetProcAddress("glSecondaryColor3uiEXT"); - glSecondaryColor3usEXT = (glSecondaryColor3usEXTPROC) extgl_GetProcAddress("glSecondaryColor3usEXT"); - glSecondaryColorPointerEXT = (glSecondaryColorPointerEXTPROC) extgl_GetProcAddress("glSecondaryColorPointerEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_secondary_color) -} - /* * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: glSecondaryColor3bEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3bEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3bEXT (JNIEnv * env, jclass clazz, jbyte red, jbyte green, jbyte blue) { - CHECK_EXISTS(glSecondaryColor3bEXT) glSecondaryColor3bEXT(red, green, blue); CHECK_GL_ERROR } @@ -87,10 +62,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3 * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: glSecondaryColor3fEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3fEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3fEXT (JNIEnv * env, jclass clazz, jfloat red, jfloat green, jfloat blue) { - CHECK_EXISTS(glSecondaryColor3fEXT) glSecondaryColor3fEXT(red, green, blue); CHECK_GL_ERROR } @@ -99,10 +73,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3 * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: glSecondaryColor3ubEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3ubEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3ubEXT (JNIEnv * env, jclass clazz, jbyte red, jbyte green, jbyte blue) { - CHECK_EXISTS(glSecondaryColor3ubEXT) glSecondaryColor3ubEXT(red, green, blue); CHECK_GL_ERROR } @@ -111,10 +84,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3 * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: nglSecondaryColorPointerEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXT (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_offset) { - CHECK_EXISTS(glSecondaryColorPointerEXT) GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPointer) + pPointer_offset); glSecondaryColorPointerEXT(size, type, stride, pPointer_ptr); CHECK_GL_ERROR @@ -124,10 +96,24 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColor * Class: org.lwjgl.opengl.EXTSecondaryColor * Method: nglSecondaryColorPointerEXTVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXTVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXTVBO (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jint buffer_offset) { - CHECK_EXISTS(glSecondaryColorPointerEXT) glSecondaryColorPointerEXT(size, type, stride, (GLvoid *)buffer_offset); CHECK_GL_ERROR } + +void extgl_InitEXTSecondaryColor(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glSecondaryColor3bEXT", "(BBB)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3bEXT, "glSecondaryColor3bEXT", (void**)&glSecondaryColor3bEXT}, + {"glSecondaryColor3fEXT", "(FFF)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3fEXT, "glSecondaryColor3fEXT", (void**)&glSecondaryColor3fEXT}, + {"glSecondaryColor3ubEXT", "(BBB)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3ubEXT, "glSecondaryColor3ubEXT", (void**)&glSecondaryColor3ubEXT}, + {"nglSecondaryColorPointerEXT", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXT, "glSecondaryColorPointerEXT", (void**)&glSecondaryColorPointerEXT}, + {"nglSecondaryColorPointerEXTVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXTVBO, NULL, NULL} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTSecondaryColor"); + if (extgl_Extensions.GL_EXT_secondary_color) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_secondary_color", num_functions, functions); +} diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTSecondaryColor.h b/src/native/common/ext/org_lwjgl_opengl_EXTSecondaryColor.h deleted file mode 100644 index eec4efcc..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTSecondaryColor.h +++ /dev/null @@ -1,85 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTSecondaryColor -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTSecondaryColor -#define _Included_org_lwjgl_opengl_EXTSecondaryColor - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTSecondaryColor - * Method: glSecondaryColor3bEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3bEXT - (JNIEnv *, jclass, jbyte, jbyte, jbyte); - -/* - * Class: org.lwjgl.opengl.EXTSecondaryColor - * Method: glSecondaryColor3fEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3fEXT - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.EXTSecondaryColor - * Method: glSecondaryColor3ubEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_glSecondaryColor3ubEXT - (JNIEnv *, jclass, jbyte, jbyte, jbyte); - -/* - * Class: org.lwjgl.opengl.EXTSecondaryColor - * Method: nglSecondaryColorPointerEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXT - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTSecondaryColor - * Method: nglSecondaryColorPointerEXTVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTSecondaryColor_nglSecondaryColorPointerEXTVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTStencilTwoSide.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTStencilTwoSide.cpp index fb60ea57..68ace923 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTStencilTwoSide.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTStencilTwoSide.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTStencilTwoSide // ---------------------------------- -#include "org_lwjgl_opengl_EXTStencilTwoSide.h" #include "extgl.h" #include "checkGLerror.h" @@ -42,22 +41,24 @@ typedef void (APIENTRY * glActiveStencilFaceEXTPROC) (GLenum face); static glActiveStencilFaceEXTPROC glActiveStencilFaceEXT; -void extgl_InitEXTStencilTwoSide(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_stencil_two_side) - return; - glActiveStencilFaceEXT = (glActiveStencilFaceEXTPROC) extgl_GetProcAddress("glActiveStencilFaceEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_stencil_two_side) -} - /* * Class: org.lwjgl.opengl.EXTStencilTwoSide * Method: glActiveStencilFaceEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTStencilTwoSide_glActiveStencilFaceEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTStencilTwoSide_glActiveStencilFaceEXT (JNIEnv * env, jclass clazz, jint face) { - CHECK_EXISTS(glActiveStencilFaceEXT) glActiveStencilFaceEXT(face); CHECK_GL_ERROR } + +void extgl_InitEXTStencilTwoSide(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glActiveStencilFaceEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTStencilTwoSide_glActiveStencilFaceEXT, "glActiveStencilFaceEXT", (void**)&glActiveStencilFaceEXT} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTStencilTwoSide"); + if (extgl_Extensions.GL_EXT_stencil_two_side) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_stencil_two_side", num_functions, functions); +} diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTStencilTwoSide.h b/src/native/common/ext/org_lwjgl_opengl_EXTStencilTwoSide.h deleted file mode 100644 index 1dc39ba4..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTStencilTwoSide.h +++ /dev/null @@ -1,57 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTStencilTwoSide -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTStencilTwoSide -#define _Included_org_lwjgl_opengl_EXTStencilTwoSide - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTStencilTwoSide - * Method: glActiveStencilFaceEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTStencilTwoSide_glActiveStencilFaceEXT - (JNIEnv *, jclass, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.cpp index ca7d40f0..d422a511 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTVertexShader // ---------------------------------- -#include "org_lwjgl_opengl_EXTVertexShader.h" #include "extgl.h" #include "checkGLerror.h" @@ -57,7 +56,6 @@ typedef void (APIENTRY * glVariantbvEXTPROC) (GLuint id, GLbyte *addr); typedef void (APIENTRY * glVariantsvEXTPROC) (GLuint id, GLshort *addr); typedef void (APIENTRY * glVariantivEXTPROC) (GLuint id, GLint *addr); typedef void (APIENTRY * glVariantfvEXTPROC) (GLuint id, GLfloat *addr); -typedef void (APIENTRY * glVariantdvEXTPROC) (GLuint id, GLdouble *addr); typedef void (APIENTRY * glVariantubvEXTPROC) (GLuint id, GLubyte *addr); typedef void (APIENTRY * glVariantusvEXTPROC) (GLuint id, GLushort *addr); typedef void (APIENTRY * glVariantuivEXTPROC) (GLuint id, GLuint *addr); @@ -100,7 +98,6 @@ static glVariantbvEXTPROC glVariantbvEXT; static glVariantsvEXTPROC glVariantsvEXT; static glVariantivEXTPROC glVariantivEXT; static glVariantfvEXTPROC glVariantfvEXT; -static glVariantdvEXTPROC glVariantdvEXT; static glVariantubvEXTPROC glVariantubvEXT; static glVariantusvEXTPROC glVariantusvEXT; static glVariantuivEXTPROC glVariantuivEXT; @@ -124,63 +121,13 @@ static glGetLocalConstantBooleanvEXTPROC glGetLocalConstantBooleanvEXT; static glGetLocalConstantIntegervEXTPROC glGetLocalConstantIntegervEXT; static glGetLocalConstantFloatvEXTPROC glGetLocalConstantFloatvEXT; -void extgl_InitEXTVertexShader(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_vertex_shader) - return; - glBeginVertexShaderEXT = (glBeginVertexShaderEXTPROC) extgl_GetProcAddress("glBeginVertexShaderEXT"); - glEndVertexShaderEXT = (glEndVertexShaderEXTPROC) extgl_GetProcAddress("glEndVertexShaderEXT"); - glBindVertexShaderEXT = (glBindVertexShaderEXTPROC) extgl_GetProcAddress("glBindVertexShaderEXT"); - glGenVertexShadersEXT = (glGenVertexShadersEXTPROC) extgl_GetProcAddress("glGenVertexShadersEXT"); - glDeleteVertexShaderEXT = (glDeleteVertexShaderEXTPROC) extgl_GetProcAddress("glDeleteVertexShaderEXT"); - glShaderOp1EXT = (glShaderOp1EXTPROC) extgl_GetProcAddress("glShaderOp1EXT"); - glShaderOp2EXT = (glShaderOp2EXTPROC) extgl_GetProcAddress("glShaderOp2EXT"); - glShaderOp3EXT = (glShaderOp3EXTPROC) extgl_GetProcAddress("glShaderOp3EXT"); - glSwizzleEXT = (glSwizzleEXTPROC) extgl_GetProcAddress("glSwizzleEXT"); - glWriteMaskEXT = (glWriteMaskEXTPROC) extgl_GetProcAddress("glWriteMaskEXT"); - glInsertComponentEXT = (glInsertComponentEXTPROC) extgl_GetProcAddress("glInsertComponentEXT"); - glExtractComponentEXT = (glExtractComponentEXTPROC) extgl_GetProcAddress("glExtractComponentEXT"); - glGenSymbolsEXT = (glGenSymbolsEXTPROC) extgl_GetProcAddress("glGenSymbolsEXT"); - glSetInvariantEXT = (glSetInvariantEXTPROC) extgl_GetProcAddress("glSetInvarianceEXT"); - glSetLocalConstantEXT = (glSetLocalConstantEXTPROC) extgl_GetProcAddress("glSetLocalConstantEXT"); - glVariantbvEXT = (glVariantbvEXTPROC) extgl_GetProcAddress("glVariantbvEXT"); - glVariantsvEXT = (glVariantsvEXTPROC) extgl_GetProcAddress("glVariantsvEXT"); - glVariantivEXT = (glVariantivEXTPROC) extgl_GetProcAddress("glVariantivEXT"); - glVariantfvEXT = (glVariantfvEXTPROC) extgl_GetProcAddress("glVariantfvEXT"); - glVariantdvEXT = (glVariantdvEXTPROC) extgl_GetProcAddress("glVariantdvEXT"); - glVariantubvEXT = (glVariantubvEXTPROC) extgl_GetProcAddress("glVariantubvEXT"); - glVariantusvEXT = (glVariantusvEXTPROC) extgl_GetProcAddress("glVariantusvEXT"); - glVariantuivEXT = (glVariantuivEXTPROC) extgl_GetProcAddress("glVariantuivEXT"); - glVariantPointerEXT = (glVariantPointerEXTPROC) extgl_GetProcAddress("glVariantPointerEXT"); - glEnableVariantClientStateEXT = (glEnableVariantClientStateEXTPROC) extgl_GetProcAddress("glEnableVariantClientStateEXT"); - glDisableVariantClientStateEXT = (glDisableVariantClientStateEXTPROC) extgl_GetProcAddress("glDisableVariantClientStateEXT"); - glBindLightParameterEXT = (glBindLightParameterEXTPROC) extgl_GetProcAddress("glBindLightParameterEXT"); - glBindMaterialParameterEXT = (glBindMaterialParameterEXTPROC) extgl_GetProcAddress("glBindMaterialParameterEXT"); - glBindTexGenParameterEXT = (glBindTexGenParameterEXTPROC) extgl_GetProcAddress("glBindTexGenParameterEXT"); - glBindTextureUnitParameterEXT = (glBindTextureUnitParameterEXTPROC) extgl_GetProcAddress("glBindTextureUnitParameterEXT"); - glBindParameterEXT = (glBindParameterEXTPROC) extgl_GetProcAddress("glBindParameterEXT"); - glIsVariantEnabledEXT = (glIsVariantEnabledEXTPROC) extgl_GetProcAddress("glIsVariantEnabledEXT"); - glGetVariantBooleanvEXT = (glGetVariantBooleanvEXTPROC) extgl_GetProcAddress("glGetVariantBooleanvEXT"); - glGetVariantIntegervEXT = (glGetVariantIntegervEXTPROC) extgl_GetProcAddress("glGetVariantIntegervEXT"); - glGetVariantFloatvEXT = (glGetVariantFloatvEXTPROC) extgl_GetProcAddress("glGetVariantFloatvEXT"); - glGetVariantPointervEXT = (glGetVariantPointervEXTPROC) extgl_GetProcAddress("glGetVariantPointervEXT"); - glGetInvariantBooleanvEXT = (glGetInvariantBooleanvEXTPROC) extgl_GetProcAddress("glGetInvariantBooleanvEXT"); - glGetInvariantIntegervEXT = (glGetInvariantIntegervEXTPROC) extgl_GetProcAddress("glGetInvariantIntegervEXT"); - glGetInvariantFloatvEXT = (glGetInvariantFloatvEXTPROC) extgl_GetProcAddress("glGetInvariantFloatvEXT"); - glGetLocalConstantBooleanvEXT = (glGetLocalConstantBooleanvEXTPROC) extgl_GetProcAddress("glGetLocalConstantBooleanvEXT"); - glGetLocalConstantIntegervEXT = (glGetLocalConstantIntegervEXTPROC) extgl_GetProcAddress("glGetLocalConstantIntegervEXT"); - glGetLocalConstantFloatvEXT = (glGetLocalConstantFloatvEXTPROC) extgl_GetProcAddress("glGetLocalConstantFloatvEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_vertex_shader) -} - /* * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBeginVertexShaderEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glBeginVertexShaderEXT) glBeginVertexShaderEXT(); CHECK_GL_ERROR } @@ -189,10 +136,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShader * Class: org.lwjgl.opengl.EXTVertexShader * Method: glEndVertexShaderEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glEndVertexShaderEXT) glEndVertexShaderEXT(); CHECK_GL_ERROR } @@ -201,10 +147,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEX * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindVertexShaderEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glBindVertexShaderEXT) glBindVertexShaderEXT(id); CHECK_GL_ERROR } @@ -213,10 +158,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderE * Class: org.lwjgl.opengl.EXTVertexShader * Method: glGenVertexShadersEXT */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT (JNIEnv * env, jclass clazz, jint range) { - CHECK_EXISTS(glGenVertexShadersEXT) GLuint result = glGenVertexShadersEXT(range); CHECK_GL_ERROR return result; @@ -226,10 +170,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersE * Class: org.lwjgl.opengl.EXTVertexShader * Method: glDeleteVertexShaderEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glDeleteVertexShaderEXT) glDeleteVertexShaderEXT(id); CHECK_GL_ERROR } @@ -238,10 +181,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShade * Class: org.lwjgl.opengl.EXTVertexShader * Method: glShaderOp1EXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1) { - CHECK_EXISTS(glShaderOp1EXT) glShaderOp1EXT(op, res, arg1); CHECK_GL_ERROR } @@ -250,10 +192,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: glShaderOp2EXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1, jint arg2) { - CHECK_EXISTS(glShaderOp2EXT) glShaderOp2EXT(op, res, arg1, arg2); CHECK_GL_ERROR } @@ -262,10 +203,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: glShaderOp3EXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT (JNIEnv * env, jclass clazz, jint op, jint res, jint arg1, jint arg2, jint arg3) { - CHECK_EXISTS(glShaderOp3EXT) glShaderOp3EXT(op, res, arg1, arg2, arg3); CHECK_GL_ERROR } @@ -274,10 +214,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: glSwizzleEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT (JNIEnv * env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) { - CHECK_EXISTS(glSwizzleEXT) glSwizzleEXT(res, in, outX, outY, outZ, outW); CHECK_GL_ERROR } @@ -286,10 +225,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: glWriteMaskEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT (JNIEnv * env, jclass clazz, jint res, jint in, jint outX, jint outY, jint outZ, jint outW) { - CHECK_EXISTS(glWriteMaskEXT) glWriteMaskEXT(res, in, outX, outY, outZ, outW); CHECK_GL_ERROR } @@ -298,10 +236,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: glInsertComponentEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT (JNIEnv * env, jclass clazz, jint res, jint src, jint num) { - CHECK_EXISTS(glInsertComponentEXT) glInsertComponentEXT(res, src, num); CHECK_GL_ERROR } @@ -310,10 +247,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEX * Class: org.lwjgl.opengl.EXTVertexShader * Method: glExtractComponentEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT (JNIEnv * env, jclass clazz, jint res, jint src, jint num) { - CHECK_EXISTS(glExtractComponentEXT) glExtractComponentEXT(res, src, num); CHECK_GL_ERROR } @@ -322,10 +258,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentE * Class: org.lwjgl.opengl.EXTVertexShader * Method: glGenSymbolsEXT */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT (JNIEnv * env, jclass clazz, jint dataType, jint storageType, jint range, jint components) { - CHECK_EXISTS(glGenSymbolsEXT) GLuint result = glGenSymbolsEXT(dataType, storageType, range, components); CHECK_GL_ERROR return result; @@ -335,10 +270,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglSetInvariantEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT (JNIEnv * env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_offset) { - CHECK_EXISTS(glSetInvariantEXT) GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pAddr) + pAddr_offset); glSetInvariantEXT(id, type, pAddr_ptr); CHECK_GL_ERROR @@ -348,10 +282,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglSetLocalConstantEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT (JNIEnv * env, jclass clazz, jint id, jint type, jobject pAddr, jint pAddr_offset) { - CHECK_EXISTS(glSetLocalConstantEXT) GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pAddr) + pAddr_offset); glSetLocalConstantEXT(id, type, pAddr_ptr); CHECK_GL_ERROR @@ -361,10 +294,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstant * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantbvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT (JNIEnv * env, jclass clazz, jint id, jobject pAddr, jint pAddr_offset) { - CHECK_EXISTS(glVariantbvEXT) GLbyte *pAddr_ptr = (GLbyte *)env->GetDirectBufferAddress(pAddr) + pAddr_offset; glVariantbvEXT(id, pAddr_ptr); CHECK_GL_ERROR @@ -374,10 +306,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantsvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT (JNIEnv * env, jclass clazz, jint id, jobject psAddr, jint psAddr_offset) { - CHECK_EXISTS(glVariantsvEXT) GLshort *psAddr_ptr = (GLshort *)env->GetDirectBufferAddress(psAddr) + psAddr_offset; glVariantsvEXT(id, psAddr_ptr); CHECK_GL_ERROR @@ -387,10 +318,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantfvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT (JNIEnv * env, jclass clazz, jint id, jobject pfAddr, jint pfAddr_offset) { - CHECK_EXISTS(glVariantfvEXT) GLfloat *pfAddr_ptr = (GLfloat *)env->GetDirectBufferAddress(pfAddr) + pfAddr_offset; glVariantfvEXT(id, pfAddr_ptr); CHECK_GL_ERROR @@ -400,10 +330,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantivEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT (JNIEnv * env, jclass clazz, jint id, jobject piAddr, jint piAddr_offset) { - CHECK_EXISTS(glVariantivEXT) GLint *piAddr_ptr = (GLint *)env->GetDirectBufferAddress(piAddr) + piAddr_offset; glVariantivEXT(id, piAddr_ptr); CHECK_GL_ERROR @@ -413,10 +342,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantubvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT (JNIEnv * env, jclass clazz, jint id, jobject pAddr, jint pAddr_offset) { - CHECK_EXISTS(glVariantubvEXT) GLubyte *pAddr_ptr = (GLubyte *)env->GetDirectBufferAddress(pAddr) + pAddr_offset; glVariantubvEXT(id, pAddr_ptr); CHECK_GL_ERROR @@ -426,10 +354,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantusvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT (JNIEnv * env, jclass clazz, jint id, jobject psAddr, jint psAddr_offset) { - CHECK_EXISTS(glVariantusvEXT) GLushort *psAddr_ptr = (GLushort *)env->GetDirectBufferAddress(psAddr) + psAddr_offset; glVariantusvEXT(id, psAddr_ptr); CHECK_GL_ERROR @@ -439,10 +366,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantuivEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT (JNIEnv * env, jclass clazz, jint id, jobject piAddr, jint piAddr_offset) { - CHECK_EXISTS(glVariantuivEXT) GLuint *piAddr_ptr = (GLuint *)env->GetDirectBufferAddress(piAddr) + piAddr_offset; glVariantuivEXT(id, piAddr_ptr); CHECK_GL_ERROR @@ -452,10 +378,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantPointerEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jobject pAddr, jint pAddr_offset) { - CHECK_EXISTS(glVariantPointerEXT) GLvoid *pAddr_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pAddr) + pAddr_offset); glVariantPointerEXT(id, type, stride, pAddr_ptr); CHECK_GL_ERROR @@ -465,10 +390,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEX * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglVariantPointerEXTVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO (JNIEnv * env, jclass clazz, jint id, jint type, jint stride, jint buffer_offset) { - CHECK_EXISTS(glVariantPointerEXT) glVariantPointerEXT(id, type, stride, (GLvoid *)buffer_offset); CHECK_GL_ERROR } @@ -477,10 +401,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEX * Class: org.lwjgl.opengl.EXTVertexShader * Method: glEnableVariantClientStateEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glEnableVariantClientStateEXT) glEnableVariantClientStateEXT(id); CHECK_GL_ERROR } @@ -489,10 +412,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClie * Class: org.lwjgl.opengl.EXTVertexShader * Method: glDisableVariantClientStateEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glDisableVariantClientStateEXT) glDisableVariantClientStateEXT(id); CHECK_GL_ERROR } @@ -501,10 +423,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantCli * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindLightParameterEXT */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT (JNIEnv * env, jclass clazz, jint light, jint value) { - CHECK_EXISTS(glBindLightParameterEXT) GLuint result = glBindLightParameterEXT(light, value); CHECK_GL_ERROR return result; @@ -514,10 +435,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParamete * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindMaterialParameterEXT */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT (JNIEnv * env, jclass clazz, jint face, jint value) { - CHECK_EXISTS(glBindMaterialParameterEXT) GLuint result = glBindMaterialParameterEXT(face, value); CHECK_GL_ERROR return result; @@ -527,10 +447,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParam * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindTexGenParameterEXT */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT (JNIEnv * env, jclass clazz, jint unit, jint coord, jint value) { - CHECK_EXISTS(glBindTexGenParameterEXT) GLuint result = glBindTexGenParameterEXT(unit, coord, value); CHECK_GL_ERROR return result; @@ -540,10 +459,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParamet * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindTextureUnitParameterEXT */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT (JNIEnv * env, jclass clazz, jint unit, jint value) { - CHECK_EXISTS(glBindTextureUnitParameterEXT) GLuint result = glBindTextureUnitParameterEXT(unit, value); CHECK_GL_ERROR return result; @@ -553,10 +471,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitPa * Class: org.lwjgl.opengl.EXTVertexShader * Method: glBindParameterEXT */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT (JNIEnv * env, jclass clazz, jint value) { - CHECK_EXISTS(glBindParameterEXT) GLuint result = glBindParameterEXT(value); CHECK_GL_ERROR return result; @@ -566,10 +483,9 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT * Class: org.lwjgl.opengl.EXTVertexShader * Method: glIsVariantEnabledEXT */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT (JNIEnv * env, jclass clazz, jint id, jint cap) { - CHECK_EXISTS(glIsVariantEnabledEXT) GLboolean result = glIsVariantEnabledEXT(id, cap); CHECK_GL_ERROR return result; @@ -579,10 +495,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnab * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetVariantBooleanvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) { - CHECK_EXISTS(glGetVariantBooleanvEXT) GLubyte *pbData_ptr = (GLubyte *)env->GetDirectBufferAddress(pbData) + pbData_offset; glGetVariantBooleanvEXT(id, value, pbData_ptr); CHECK_GL_ERROR @@ -592,10 +507,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBoolea * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetVariantIntegervEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) { - CHECK_EXISTS(glGetVariantIntegervEXT) GLint *piData_ptr = (GLint *)env->GetDirectBufferAddress(piData) + piData_offset; glGetVariantIntegervEXT(id, value, piData_ptr); CHECK_GL_ERROR @@ -605,10 +519,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntege * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetVariantFloatvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) { - CHECK_EXISTS(glGetVariantFloatvEXT) GLfloat *pfData_ptr = (GLfloat *)env->GetDirectBufferAddress(pfData) + pfData_offset; glGetVariantFloatvEXT(id, value, pfData_ptr); CHECK_GL_ERROR @@ -618,10 +531,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatv * Class: org.lwjgl.opengl.EXTVertexShader * Method: glGetVariantPointerEXT */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT (JNIEnv * env, jclass clazz, jint id, jint value, jint size) { - CHECK_EXISTS(glGetVariantPointervEXT) void *address; glGetVariantPointervEXT((GLuint)id, (GLuint)value, &address); CHECK_GL_ERROR @@ -632,10 +544,9 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPoin * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetInvariantBooleanvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) { - CHECK_EXISTS(glGetInvariantBooleanvEXT) GLubyte *pbData_ptr = (GLubyte *)env->GetDirectBufferAddress(pbData) + pbData_offset; glGetInvariantBooleanvEXT(id, value, pbData_ptr); CHECK_GL_ERROR @@ -645,10 +556,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBool * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetInvariantIntegervEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) { - CHECK_EXISTS(glGetInvariantIntegervEXT) GLint *piData_ptr = (GLint *)env->GetDirectBufferAddress(piData) + piData_offset; glGetInvariantIntegervEXT(id, value, piData_ptr); CHECK_GL_ERROR @@ -658,10 +568,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantInte * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetInvariantFloatvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) { - CHECK_EXISTS(glGetInvariantFloatvEXT) GLfloat *pfData_ptr = (GLfloat *)env->GetDirectBufferAddress(pfData) + pfData_offset; glGetInvariantFloatvEXT(id, value, pfData_ptr); CHECK_GL_ERROR @@ -671,10 +580,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloa * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetLocalConstantBooleanvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pbData, jint pbData_offset) { - CHECK_EXISTS(glGetLocalConstantBooleanvEXT) GLubyte *pbData_ptr = (GLubyte *)env->GetDirectBufferAddress(pbData) + pbData_offset; glGetLocalConstantBooleanvEXT(id, value, pbData_ptr); CHECK_GL_ERROR @@ -684,10 +592,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstant * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetLocalConstantIntegervEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject piData, jint piData_offset) { - CHECK_EXISTS(glGetLocalConstantIntegervEXT) GLint *piData_ptr = (GLint *)env->GetDirectBufferAddress(piData) + piData_offset; glGetLocalConstantIntegervEXT(id, value, piData_ptr); CHECK_GL_ERROR @@ -697,11 +604,62 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstant * Class: org.lwjgl.opengl.EXTVertexShader * Method: nglGetLocalConstantFloatvEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT (JNIEnv * env, jclass clazz, jint id, jint value, jobject pfData, jint pfData_offset) { - CHECK_EXISTS(glGetLocalConstantFloatvEXT) GLfloat *pfData_ptr = (GLfloat *)env->GetDirectBufferAddress(pfData) + pfData_offset; glGetLocalConstantFloatvEXT(id, value, pfData_ptr); CHECK_GL_ERROR } + +void extgl_InitEXTVertexShader(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glBeginVertexShaderEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT, "glBeginVertexShaderEXT", (void**)&glBeginVertexShaderEXT}, + {"glEndVertexShaderEXT", "()V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT, "glEndVertexShaderEXT", (void**)&glEndVertexShaderEXT}, + {"glBindVertexShaderEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT, "glBindVertexShaderEXT", (void**)&glBindVertexShaderEXT}, + {"glGenVertexShadersEXT", "(I)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT, "glGenVertexShadersEXT", (void**)&glGenVertexShadersEXT}, + {"glDeleteVertexShaderEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT, "glDeleteVertexShaderEXT", (void**)&glDeleteVertexShaderEXT}, + {"glShaderOp1EXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT, "glShaderOp1EXT", (void**)&glShaderOp1EXT}, + {"glShaderOp2EXT", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT, "glShaderOp2EXT", (void**)&glShaderOp2EXT}, + {"glShaderOp3EXT", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT, "glShaderOp3EXT", (void**)&glShaderOp3EXT}, + {"glSwizzleEXT", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT, "glSwizzleEXT", (void**)&glSwizzleEXT}, + {"glWriteMaskEXT", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT, "glWriteMaskEXT", (void**)&glWriteMaskEXT}, + {"glInsertComponentEXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT, "glInsertComponentEXT", (void**)&glInsertComponentEXT}, + {"glExtractComponentEXT", "(III)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT, "glExtractComponentEXT", (void**)&glExtractComponentEXT}, + {"glGenSymbolsEXT", "(IIII)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT, "glGenSymbolsEXT", (void**)&glGenSymbolsEXT}, + {"nglSetInvariantEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT, "glSetInvariantEXT", (void**)&glSetInvariantEXT}, + {"nglSetLocalConstantEXT", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT, "glSetLocalConstantEXT", (void**)&glSetLocalConstantEXT}, + {"nglVariantbvEXT", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT, "glVariantbvEXT", (void**)&glVariantbvEXT}, + {"nglVariantsvEXT", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT, "glVariantsvEXT", (void**)&glVariantsvEXT}, + {"nglVariantfvEXT", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT, "glVariantfvEXT", (void**)&glVariantfvEXT}, + {"nglVariantivEXT", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT, "glVariantivEXT", (void**)&glVariantivEXT}, + {"nglVariantubvEXT", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT, "glVariantubvEXT", (void**)&glVariantubvEXT}, + {"nglVariantusvEXT", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT, "glVariantusvEXT", (void**)&glVariantusvEXT}, + {"nglVariantuivEXT", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT, "glVariantuivEXT", (void**)&glVariantuivEXT}, + {"nglVariantPointerEXT", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT, "glVariantPointerEXT", (void**)&glVariantPointerEXT}, + {"nglVariantPointerEXTVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO, NULL, NULL}, + {"glEnableVariantClientStateEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT, "glEnableVariantClientStateEXT", (void**)&glEnableVariantClientStateEXT}, + {"glDisableVariantClientStateEXT", "(I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT, "glDisableVariantClientStateEXT", (void**)&glDisableVariantClientStateEXT}, + {"glBindLightParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT, "glBindLightParameterEXT", (void**)&glBindLightParameterEXT}, + {"glBindMaterialParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT, "glBindMaterialParameterEXT", (void**)&glBindMaterialParameterEXT}, + {"glBindTexGenParameterEXT", "(III)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT, "glBindTexGenParameterEXT", (void**)&glBindTexGenParameterEXT}, + {"glBindTextureUnitParameterEXT", "(II)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT, "glBindTextureUnitParameterEXT", (void**)&glBindTextureUnitParameterEXT}, + {"glBindParameterEXT", "(I)I", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT, "glBindParameterEXT", (void**)&glBindParameterEXT}, + {"glIsVariantEnabledEXT", "(II)Z", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT, "glIsVariantEnabledEXT", (void**)&glIsVariantEnabledEXT}, + {"nglGetVariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT, "glGetVariantBooleanvEXT", (void**)&glGetVariantBooleanvEXT}, + {"nglGetVariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT, "glGetVariantIntegervEXT", (void**)&glGetVariantIntegervEXT}, + {"nglGetVariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT, "glGetVariantFloatvEXT", (void**)&glGetVariantFloatvEXT}, + {"glGetVariantPointerEXT", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT, "glGetVariantPointervEXT", (void**)&glGetVariantPointervEXT}, + {"nglGetInvariantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT, "glGetInvariantBooleanvEXT", (void**)&glGetInvariantBooleanvEXT}, + {"nglGetInvariantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT, "glGetInvariantIntegervEXT", (void**)&glGetInvariantIntegervEXT}, + {"nglGetInvariantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT, "glGetInvariantFloatvEXT", (void**)&glGetInvariantFloatvEXT}, + {"nglGetLocalConstantBooleanvEXT", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT, "glGetLocalConstantBooleanvEXT", (void**)&glGetLocalConstantBooleanvEXT}, + {"nglGetLocalConstantIntegervEXT", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT, "glGetLocalConstantIntegervEXT", (void**)&glGetLocalConstantIntegervEXT}, + {"nglGetLocalConstantFloatvEXT", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT, "glGetLocalConstantFloatvEXT", (void**)&glGetLocalConstantFloatvEXT} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTVertexShader"); + if (extgl_Extensions.GL_EXT_vertex_shader) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_vertex_shader", num_functions, functions); +} diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.h b/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.h deleted file mode 100644 index 5f83a15a..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTVertexShader.h +++ /dev/null @@ -1,344 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTVertexShader -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTVertexShader -#define _Included_org_lwjgl_opengl_EXTVertexShader - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBeginVertexShaderEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBeginVertexShaderEXT - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glEndVertexShaderEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEndVertexShaderEXT - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindVertexShaderEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindVertexShaderEXT - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glGenVertexShadersEXT - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenVertexShadersEXT - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glDeleteVertexShaderEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDeleteVertexShaderEXT - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glShaderOp1EXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp1EXT - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glShaderOp2EXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp2EXT - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glShaderOp3EXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glShaderOp3EXT - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glSwizzleEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glSwizzleEXT - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glWriteMaskEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glWriteMaskEXT - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glInsertComponentEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glInsertComponentEXT - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glExtractComponentEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glExtractComponentEXT - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glGenSymbolsEXT - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGenSymbolsEXT - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglSetInvariantEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetInvariantEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglSetLocalConstantEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglSetLocalConstantEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantbvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantbvEXT - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantsvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantsvEXT - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantfvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantfvEXT - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantivEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantivEXT - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantubvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantubvEXT - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantusvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantusvEXT - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantuivEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantuivEXT - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantPointerEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXT - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglVariantPointerEXTVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglVariantPointerEXTVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glEnableVariantClientStateEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glEnableVariantClientStateEXT - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glDisableVariantClientStateEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glDisableVariantClientStateEXT - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindLightParameterEXT - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindLightParameterEXT - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindMaterialParameterEXT - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindMaterialParameterEXT - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindTexGenParameterEXT - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTexGenParameterEXT - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindTextureUnitParameterEXT - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindTextureUnitParameterEXT - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glBindParameterEXT - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glBindParameterEXT - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glIsVariantEnabledEXT - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glIsVariantEnabledEXT - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetVariantBooleanvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantBooleanvEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetVariantIntegervEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantIntegervEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetVariantFloatvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetVariantFloatvEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: glGetVariantPointerEXT - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_EXTVertexShader_glGetVariantPointerEXT - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetInvariantBooleanvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantBooleanvEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetInvariantIntegervEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantIntegervEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetInvariantFloatvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetInvariantFloatvEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetLocalConstantBooleanvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantBooleanvEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetLocalConstantIntegervEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantIntegervEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexShader - * Method: nglGetLocalConstantFloatvEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexShader_nglGetLocalConstantFloatvEXT - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTVertexWeighting.cpp b/src/native/common/ext/org_lwjgl_opengl_EXTVertexWeighting.cpp index d2293d0c..674c35c7 100644 --- a/src/native/common/ext/org_lwjgl_opengl_EXTVertexWeighting.cpp +++ b/src/native/common/ext/org_lwjgl_opengl_EXTVertexWeighting.cpp @@ -34,36 +34,22 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.EXTVertexWeighting // ---------------------------------- -#include "org_lwjgl_opengl_EXTVertexWeighting.h" #include "extgl.h" #include "checkGLerror.h" typedef void (APIENTRY * glVertexWeightfEXTPROC) (GLfloat weight); -typedef void (APIENTRY * glVertexWeightfvEXTPROC) (const GLfloat *weight); typedef void (APIENTRY * glVertexWeightPointerEXTPROC) (GLsizei size, GLenum type, GLsizei stride, const GLvoid *pointer); static glVertexWeightfEXTPROC glVertexWeightfEXT; -static glVertexWeightfvEXTPROC glVertexWeightfvEXT; static glVertexWeightPointerEXTPROC glVertexWeightPointerEXT; -void extgl_InitEXTVertexWeighting(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_vertex_weighting) - return; - glVertexWeightfEXT = (glVertexWeightfEXTPROC) extgl_GetProcAddress("glVertexWeightfEXT"); - glVertexWeightfvEXT = (glVertexWeightfvEXTPROC) extgl_GetProcAddress("glVertexWeightfvEXT"); - glVertexWeightPointerEXT = (glVertexWeightPointerEXTPROC) extgl_GetProcAddress("glVertexWeightPointerEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_vertex_weighting) -} - /* * Class: org.lwjgl.opengl.EXTVertexWeighting * Method: glVertexWeightfEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_glVertexWeightfEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_glVertexWeightfEXT (JNIEnv * env, jclass clazz, jfloat weight) { - CHECK_EXISTS(glVertexWeightfEXT) glVertexWeightfEXT(weight); CHECK_GL_ERROR } @@ -72,10 +58,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_glVertexWeightfE * Class: org.lwjgl.opengl.EXTVertexWeighting * Method: nglVertexWeightPointerEXT */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXT +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXT (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jobject pPointer, jint pPointer_offset) { - CHECK_EXISTS(glVertexWeightPointerEXT) GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPointer) + pPointer_offset); glVertexWeightPointerEXT(size, type, stride, pPointer_ptr); CHECK_GL_ERROR @@ -85,10 +70,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightP * Class: org.lwjgl.opengl.EXTVertexWeighting * Method: nglVertexWeightPointerEXTVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXTVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXTVBO (JNIEnv * env, jclass clazz, jint size, jint type, jint stride, jint buffer_offset) { - CHECK_EXISTS(glVertexWeightPointerEXT) glVertexWeightPointerEXT(size, type, stride, (GLvoid *)buffer_offset); CHECK_GL_ERROR } + +void extgl_InitEXTVertexWeighting(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glVertexWeightfEXT", "(F)V", (void*)&Java_org_lwjgl_opengl_EXTVertexWeighting_glVertexWeightfEXT, "glVertexWeightfEXT", (void**)&glVertexWeightfEXT}, + {"nglVertexWeightPointerEXT", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXT, "glVertexWeightPointerEXT", (void**)&glVertexWeightPointerEXT}, + {"nglVertexWeightPointerEXTVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXTVBO, NULL, NULL} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/EXTVertexWeighting"); + if (extgl_Extensions.GL_EXT_vertex_weighting) + extgl_InitializeClass(env, clazz, ext_set, "GL_EXT_vertex_weighting", num_functions, functions); +} diff --git a/src/native/common/ext/org_lwjgl_opengl_EXTVertexWeighting.h b/src/native/common/ext/org_lwjgl_opengl_EXTVertexWeighting.h deleted file mode 100644 index aab90314..00000000 --- a/src/native/common/ext/org_lwjgl_opengl_EXTVertexWeighting.h +++ /dev/null @@ -1,71 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.EXTVertexWeighting -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_EXTVertexWeighting -#define _Included_org_lwjgl_opengl_EXTVertexWeighting - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.EXTVertexWeighting - * Method: glVertexWeightfEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_glVertexWeightfEXT - (JNIEnv *, jclass, jfloat); - -/* - * Class: org.lwjgl.opengl.EXTVertexWeighting - * Method: nglVertexWeightPointerEXT - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXT - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.EXTVertexWeighting - * Method: nglVertexWeightPointerEXTVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_EXTVertexWeighting_nglVertexWeightPointerEXTVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/extgl.cpp b/src/native/common/extgl.cpp index d7754dca..9d56d942 100755 --- a/src/native/common/extgl.cpp +++ b/src/native/common/extgl.cpp @@ -594,6 +594,39 @@ CFBundleRef opengl_bundle_ref = NULL; CFBundleRef agl_bundle_ref = NULL; #endif +jclass extgl_ResetClass(JNIEnv *env, const char *class_name) { + jclass clazz = env->FindClass(class_name); + jint result = env->UnregisterNatives(clazz); + if (result != 0) + printfDebug("Could not unregister natives for class %s\n", class_name); + return clazz; +} + +void extgl_InitializeClass(JNIEnv *env, jclass clazz, jobject ext_set, const char *ext_name, int num_functions, JavaMethodAndGLFunction *functions) { + JNINativeMethod methods[num_functions]; + for (int i = 0; i < num_functions; i++) { + JavaMethodAndGLFunction *function = functions + i; + if (function->gl_function_name != NULL) { + void *gl_func_pointer = extgl_GetProcAddress(function->gl_function_name); + if (gl_func_pointer == NULL) { + printf("NOTICE: %s disabled because of missing driver symbols\n", ext_name); + if (ext_set != NULL) + extgl_removeExtension(env, ext_set, ext_name); + return; + } + void **gl_function_pointer_pointer = function->gl_function_pointer; + *gl_function_pointer_pointer = gl_func_pointer; + } + JNINativeMethod *method = methods + i; + method->name = function->method_name; + method->signature = function->signature; + method->fnPtr = function->method_pointer; + } + jint result = env->RegisterNatives(clazz, methods, num_functions); + if (result != 0) + printfDebug("Could not register natives for extension %s\n", ext_name); +} + static void doExtension(JNIEnv *env, jobject ext_set, const char *method_name, const char *ext) { jclass clazz = env->GetObjectClass(ext_set); jmethodID id = env->GetMethodID(clazz, method_name, "(Ljava/lang/Object;)Z"); @@ -802,7 +835,7 @@ static void extgl_InitWGLARBBufferRegion(JNIEnv *env) wglSaveBufferRegionARB = (wglSaveBufferRegionARBPROC) extgl_GetProcAddress("wglSaveBufferRegionARB"); wglRestoreBufferRegionARB = (wglRestoreBufferRegionARBPROC) extgl_GetProcAddress("wglRestoreBufferRegionARB"); - EXTGL_SANITY_CHECK(env, NULL, WGL_ARB_buffer_region); + EXTGL_SANITY_CHECK(env, WGL_ARB_buffer_region); } static void extgl_InitWGLARBPbuffer(JNIEnv *env) @@ -814,7 +847,7 @@ static void extgl_InitWGLARBPbuffer(JNIEnv *env) wglReleasePbufferDCARB = (wglReleasePbufferDCARBPROC) extgl_GetProcAddress("wglReleasePbufferDCARB"); wglDestroyPbufferARB = (wglDestroyPbufferARBPROC) extgl_GetProcAddress("wglDestroyPbufferARB"); wglQueryPbufferARB = (wglQueryPbufferARBPROC) extgl_GetProcAddress("wglQueryPbufferARB"); - EXTGL_SANITY_CHECK(env, NULL, WGL_ARB_pbuffer); + EXTGL_SANITY_CHECK(env, WGL_ARB_pbuffer); } @@ -825,7 +858,7 @@ static void extgl_InitWGLARBPixelFormat(JNIEnv *env) wglGetPixelFormatAttribivARB = (wglGetPixelFormatAttribivARBPROC) extgl_GetProcAddress("wglGetPixelFormatAttribivARB"); wglGetPixelFormatAttribfvARB = (wglGetPixelFormatAttribfvARBPROC) extgl_GetProcAddress("wglGetPixelFormatAttribfvARB"); wglChoosePixelFormatARB = (wglChoosePixelFormatARBPROC) extgl_GetProcAddress("wglChoosePixelFormatARB"); - EXTGL_SANITY_CHECK(env, NULL, WGL_ARB_pixel_format); + EXTGL_SANITY_CHECK(env, WGL_ARB_pixel_format); } @@ -836,7 +869,7 @@ static void extgl_InitWGLARBRenderTexture(JNIEnv *env) wglBindTexImageARB = (wglBindTexImageARBPROC) extgl_GetProcAddress("wglBindTexImageARB"); wglReleaseTexImageARB = (wglReleaseTexImageARBPROC) extgl_GetProcAddress("wglReleaseTexImageARB"); wglSetPbufferAttribARB = (wglSetPbufferAttribARBPROC) extgl_GetProcAddress("wglSetPbufferAttribARB"); - EXTGL_SANITY_CHECK(env, NULL, WGL_ARB_render_texture); + EXTGL_SANITY_CHECK(env, WGL_ARB_render_texture); } @@ -846,7 +879,7 @@ static void extgl_InitWGLEXTSwapControl(JNIEnv *env) return; wglSwapIntervalEXT = (wglSwapIntervalEXTPROC) extgl_GetProcAddress("wglSwapIntervalEXT"); wglGetSwapIntervalEXT = (wglGetSwapIntervalEXTPROC) extgl_GetProcAddress("wglGetSwapIntervalEXT"); - EXTGL_SANITY_CHECK(env, NULL, WGL_EXT_swap_control); + EXTGL_SANITY_CHECK(env, WGL_EXT_swap_control); } @@ -856,7 +889,7 @@ static void extgl_InitWGLARBMakeCurrentRead(JNIEnv *env) return; wglMakeContextCurrentARB = (wglMakeContextCurrentARBPROC) extgl_GetProcAddress("wglMakeContextCurrentARB"); wglGetCurrentReadDCARB = (wglGetCurrentReadDCARBPROC) extgl_GetProcAddress("wglGetCurrentReadDCARB"); - EXTGL_SANITY_CHECK(env, NULL, WGL_ARB_make_current_read); + EXTGL_SANITY_CHECK(env, WGL_ARB_make_current_read); } @@ -960,37 +993,6 @@ static bool GLQueryExtension(JNIEnv *env, jobject ext_set, const char *name) return QueryExtension(env, ext_set, glGetString(GL_EXTENSIONS), name); } -/*static void extgl_InitNVPrimitiveRestart(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_primitive_restart) - return; - glPrimitiveRestartNV = (glPrimitiveRestartNVPROC) extgl_GetProcAddress("glPrimitiveRestartNV"); - glPrimitiveRestartIndexNV = (glPrimitiveRestartIndexNVPROC) extgl_GetProcAddress("glPrimitiveRestartIndexNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_primitive_restart) -} - -static void extgl_InitNVElementArray(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_element_array) - return; - glElementPointerNV = (glElementPointerNVPROC) extgl_GetProcAddress("glElementPointerNV"); - glDrawElementArrayNV = (glDrawElementArrayNVPROC) extgl_GetProcAddress("glDrawElementArrayNV"); - glDrawRangeElementArrayNV = (glDrawRangeElementArrayNVPROC) extgl_GetProcAddress("glDrawRangeElementArrayNV"); - glMultiDrawElementArrayNV = (glMultiDrawElementArrayNVPROC) extgl_GetProcAddress("glMultiDrawElementArrayNV"); - glMultiDrawRangeElementArrayNV = (glMultiDrawRangeElementArrayNVPROC) extgl_GetProcAddress("glMultiDrawRangeElementArrayNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_element_array) -} - - -static void extgl_InitEXTCullVertex(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_EXT_cull_vertex) - return; - glCullParameterfvEXT = (glCullParameterfvEXTPROC) extgl_GetProcAddress("glCullParameterfvEXT"); - glCullParameterdvEXT = (glCullParameterdvEXTPROC) extgl_GetProcAddress("glCullParameterdvEXT"); - EXTGL_SANITY_CHECK(env, ext_set, GL_EXT_cull_vertex) -} -*/ #ifdef _X11 static void extgl_InitGLX13(JNIEnv *env) @@ -1015,7 +1017,7 @@ static void extgl_InitGLX13(JNIEnv *env) glXQueryContext = (glXQueryContextPROC) extgl_GetProcAddress("glXQueryContext"); glXSelectEvent = (glXSelectEventPROC) extgl_GetProcAddress("glXSelectEvent"); glXGetSelectedEvent = (glXGetSelectedEventPROC) extgl_GetProcAddress("glXGetSelectedEvent"); - EXTGL_SANITY_CHECK(env, (jobject)NULL, GLX13); + EXTGL_SANITY_CHECK(env, GLX13); } static bool extgl_InitGLX12(void) @@ -1056,7 +1058,7 @@ static void extgl_InitGLXSGISwapControl(JNIEnv *env) if (extgl_Extensions.GLX_SGI_swap_control != 1) return; glXSwapIntervalSGI = (glXSwapIntervalSGIPROC)extgl_GetProcAddress("glXSwapIntervalSGI"); - EXTGL_SANITY_CHECK(env, (jobject)NULL, GLX_SGI_swap_control); + EXTGL_SANITY_CHECK(env, GLX_SGI_swap_control); } bool extgl_InitGLX(JNIEnv *env, Display *disp, int screen) @@ -1208,7 +1210,7 @@ static void extgl_InitSupportedExtensions(JNIEnv *env, jobject ext_set) extgl_Extensions.GL_SGIX_shadow = GLQueryExtension(env, ext_set, "GL_SGIX_shadow"); } -extern void extgl_InitOpenGL1_1(); +extern void extgl_InitOpenGL1_1(JNIEnv *env); //extern void extgl_InitARBFragmentProgram(JNIEnv *env, jobject ext_set); extern void extgl_InitARBImaging(JNIEnv *env, jobject ext_set); extern void extgl_InitARBMatrixPalette(JNIEnv *env, jobject ext_set); @@ -1271,7 +1273,7 @@ extern void extgl_InitOpenGL1_5(JNIEnv *env, jobject ext_set); bool extgl_Initialize(JNIEnv *env, jobject ext_set) { extgl_error = false; - extgl_InitOpenGL1_1(); + extgl_InitOpenGL1_1(env); if (extgl_error) return false; @@ -1323,7 +1325,6 @@ bool extgl_Initialize(JNIEnv *env, jobject ext_set) extgl_InitNVRegisterCombiners2(env, ext_set); extgl_InitNVVertexArrayRange(env, ext_set); extgl_InitNVVertexProgram(env, ext_set); - extgl_InitATIDrawBuffers(env, ext_set); extgl_InitATIElementArray(env, ext_set); extgl_InitATIEnvmapBumpmap(env, ext_set); diff --git a/src/native/common/extgl.h b/src/native/common/extgl.h index a8fe8123..62e23bb4 100644 --- a/src/native/common/extgl.h +++ b/src/native/common/extgl.h @@ -3213,19 +3213,19 @@ struct ExtensionTypes bool GL_EXT_texture_lod_bias; bool GL_EXT_vertex_shader; bool GL_EXT_vertex_weighting; - bool GL_EXT_draw_range_elements; - bool GL_ATI_draw_buffers; + bool GL_EXT_draw_range_elements; + bool GL_ATI_draw_buffers; bool GL_ATI_element_array; bool GL_ATI_envmap_bumpmap; bool GL_ATI_fragment_shader; - bool GL_ATI_map_object_buffer; + bool GL_ATI_map_object_buffer; bool GL_ATI_pn_triangles; bool GL_ATI_point_cull_mode; bool GL_ATI_separate_stencil; bool GL_ATI_text_fragment_shader; bool GL_ATI_texture_mirror_once; bool GL_ATI_vertex_array_object; - bool GL_ATI_vertex_attrib_array_object; + bool GL_ATI_vertex_attrib_array_object; bool GL_ATI_vertex_streams; bool GL_ATIX_point_sprites; bool GL_ATIX_texture_env_route; @@ -3239,11 +3239,11 @@ struct ExtensionTypes bool GL_NV_float_buffer; bool GL_NV_fog_distance; bool GL_NV_fragment_program; - bool GL_NV_half_float; + bool GL_NV_half_float; bool GL_NV_light_max_exponent; bool GL_NV_occlusion_query; bool GL_NV_packed_depth_stencil; - bool GL_NV_pixel_data_range; + bool GL_NV_pixel_data_range; bool GL_NV_point_sprite; bool GL_NV_primitive_restart; bool GL_NV_register_combiners; @@ -3290,14 +3290,25 @@ void *extgl_GetProcAddress(const char *name); void extgl_Close(void); void extgl_removeExtension(JNIEnv *env, jobject ext_set, const char *ext); -#define EXTGL_SANITY_CHECK(e,h,x) if (extgl_error) { \ +typedef struct { + char *method_name; + char *signature; + void *method_pointer; + + char *gl_function_name; + void **gl_function_pointer; +} JavaMethodAndGLFunction; + +#define NUMFUNCTIONS(x) (sizeof(x)/sizeof(JavaMethodAndGLFunction)); + +jclass extgl_ResetClass(JNIEnv *env, const char *class_name); +void extgl_InitializeClass(JNIEnv *env, jclass clazz, jobject ext_set, const char *ext_name, int num_functions, JavaMethodAndGLFunction *functions); +#define EXTGL_SANITY_CHECK(e,x) if (extgl_error) { \ extgl_Extensions.x = false; \ printf("NOTICE: %s disabled because of missing driver symbols\n", #x); \ extgl_error = false; \ - if (h != NULL) { \ - extgl_removeExtension(e, h, #x); \ - } \ } + #ifdef __cplusplus } #endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.cpp b/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.cpp index 7eb31caa..67713d58 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVEvaluators // ---------------------------------- -#include "org_lwjgl_opengl_NVEvaluators.h" #include "extgl.h" #include "checkGLerror.h" @@ -58,30 +57,13 @@ static glGetMapAttribParameterivNVPROC glGetMapAttribParameterivNV; static glGetMapAttribParameterfvNVPROC glGetMapAttribParameterfvNV; static glEvalMapsNVPROC glEvalMapsNV; -void extgl_InitNVEvaluators(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_evaluators) - return; - glMapControlPointsNV = (glMapControlPointsNVPROC) extgl_GetProcAddress("glMapControlPointsNV"); - glMapParameterivNV = (glMapParameterivNVPROC) extgl_GetProcAddress("glMapParameterivNV"); - glMapParameterfvNV = (glMapParameterfvNVPROC) extgl_GetProcAddress("glMapParameterfvNV"); - glGetMapControlPointsNV = (glGetMapControlPointsNVPROC) extgl_GetProcAddress("glGetMapControlPointsNV"); - glGetMapParameterivNV = (glGetMapParameterivNVPROC) extgl_GetProcAddress("glGetMapParameterivNV"); - glGetMapParameterfvNV = (glGetMapParameterfvNVPROC) extgl_GetProcAddress("glGetMapParameterfvNV"); - glGetMapAttribParameterivNV = (glGetMapAttribParameterivNVPROC) extgl_GetProcAddress("glGetMapAttribParameterivNV"); - glGetMapAttribParameterfvNV = (glGetMapAttribParameterfvNVPROC) extgl_GetProcAddress("glGetMapAttribParameterfvNV"); - glEvalMapsNV = (glEvalMapsNVPROC) extgl_GetProcAddress("glEvalMapsNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_evaluators) -} - /* * Class: org.lwjgl.opengl.NVEvaluators * Method: nglGetMapControlPointsNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV (JNIEnv * env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jboolean packed, jobject pPoints, jint pPoints_offset) { - CHECK_EXISTS(glGetMapControlPointsNV) GLvoid *pPoints_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPoints) + pPoints_offset); glGetMapControlPointsNV(target, index, type, ustride, vstride, packed, pPoints_ptr); CHECK_GL_ERROR @@ -91,10 +73,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPoints * Class: org.lwjgl.opengl.NVEvaluators * Method: nglMapControlPointsNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV (JNIEnv * env, jclass clazz, jint target, jint index, jint type, jint ustride, jint vstride, jint uorder, jint vorder, jboolean packed, jobject pPoints, jint pPoints_offset) { - CHECK_EXISTS(glMapControlPointsNV) GLvoid *pPoints_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPoints) + pPoints_offset); glMapControlPointsNV(target, index, type, ustride, vstride, uorder, vorder, packed, pPoints_ptr); CHECK_GL_ERROR @@ -104,10 +85,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV * Class: org.lwjgl.opengl.NVEvaluators * Method: nglMapParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV (JNIEnv * env, jclass clazz, jint target, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glMapParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glMapParameterfvNV(target, pname, pfParams_ptr); CHECK_GL_ERROR @@ -117,10 +97,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV * Class: org.lwjgl.opengl.NVEvaluators * Method: nglMapParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV (JNIEnv * env, jclass clazz, jint target, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glMapParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glMapParameterivNV(target, pname, piParams_ptr); CHECK_GL_ERROR @@ -130,10 +109,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV * Class: org.lwjgl.opengl.NVEvaluators * Method: nglGetMapParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV (JNIEnv * env, jclass clazz, jint target, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetMapParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetMapParameterfvNV(target, pname, pfParams_ptr); CHECK_GL_ERROR @@ -143,10 +121,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV * Class: org.lwjgl.opengl.NVEvaluators * Method: nglGetMapParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV (JNIEnv * env, jclass clazz, jint target, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetMapParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetMapParameterivNV(target, pname, piParams_ptr); CHECK_GL_ERROR @@ -156,10 +133,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV * Class: org.lwjgl.opengl.NVEvaluators * Method: nglGetMapAttribParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV (JNIEnv * env, jclass clazz, jint target, jint index, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetMapAttribParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetMapAttribParameterfvNV(target, index, pname, pfParams_ptr); CHECK_GL_ERROR @@ -169,10 +145,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParamet * Class: org.lwjgl.opengl.NVEvaluators * Method: nglGetMapAttribParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV (JNIEnv * env, jclass clazz, jint target, jint index, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetMapAttribParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetMapAttribParameterivNV(target, index, pname, piParams_ptr); CHECK_GL_ERROR @@ -182,10 +157,28 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParamet * Class: org.lwjgl.opengl.NVEvaluators * Method: glEvalMapsNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV (JNIEnv * env, jclass clazz, jint target, jint mode) { - CHECK_EXISTS(glEvalMapsNV) glEvalMapsNV(target, mode); CHECK_GL_ERROR } + +void extgl_InitNVEvaluators(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglGetMapControlPointsNV", "(IIIIIZLjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV, "glGetMapControlPointsNV", (void**)&glGetMapControlPointsNV}, + {"nglMapControlPointsNV", "(IIIIIIIZLjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV, "glMapControlPointsNV", (void**)&glMapControlPointsNV}, + {"nglMapParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV, "glMapParameterfvNV", (void**)&glMapParameterfvNV}, + {"nglMapParameterivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV, "glMapParameterivNV", (void**)&glMapParameterivNV}, + {"nglGetMapParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV, "glGetMapParameterfvNV", (void**)&glGetMapParameterfvNV}, + {"nglGetMapParameterivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV, "glGetMapParameterivNV", (void**)&glGetMapParameterivNV}, + {"nglGetMapAttribParameterfvNV", "(IIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV, "glGetMapAttribParameterfvNV", (void**)&glGetMapAttribParameterfvNV}, + {"nglGetMapAttribParameterivNV", "(IIILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV, "glGetMapAttribParameterivNV", (void**)&glGetMapAttribParameterivNV}, + {"glEvalMapsNV", "(II)V", (void*)&Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV, "glEvalMapsNV", (void**)&glEvalMapsNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVEvaluators"); + if (extgl_Extensions.GL_NV_evaluators) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_evaluators", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.h b/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.h deleted file mode 100644 index 44857666..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVEvaluators.h +++ /dev/null @@ -1,113 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVEvaluators -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVEvaluators -#define _Included_org_lwjgl_opengl_NVEvaluators - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapControlPointsNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapControlPointsNV - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jboolean, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglMapControlPointsNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapControlPointsNV - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jboolean, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglMapParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglMapParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglMapParameterivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapParameterivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapAttribParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterfvNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: nglGetMapAttribParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_nglGetMapAttribParameterivNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVEvaluators - * Method: glEvalMapsNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVEvaluators_glEvalMapsNV - (JNIEnv *, jclass, jint, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVFence.cpp b/src/native/common/nv/org_lwjgl_opengl_NVFence.cpp index 92231aa0..c6a980eb 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVFence.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVFence.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVFence // ---------------------------------- -#include "org_lwjgl_opengl_NVFence.h" #include "extgl.h" #include "checkGLerror.h" @@ -54,28 +53,13 @@ static glFinishFenceNVPROC glFinishFenceNV; static glIsFenceNVPROC glIsFenceNV; static glGetFenceivNVPROC glGetFenceivNV; -void extgl_InitNVFence(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_fence) - return; - glGenFencesNV = (glGenFencesNVPROC) extgl_GetProcAddress("glGenFencesNV"); - glDeleteFencesNV = (glDeleteFencesNVPROC) extgl_GetProcAddress("glDeleteFencesNV"); - glSetFenceNV = (glSetFenceNVPROC) extgl_GetProcAddress("glSetFenceNV"); - glTestFenceNV = (glTestFenceNVPROC) extgl_GetProcAddress("glTestFenceNV"); - glFinishFenceNV = (glFinishFenceNVPROC) extgl_GetProcAddress("glFinishFenceNV"); - glIsFenceNV = (glIsFenceNVPROC) extgl_GetProcAddress("glIsFenceNV"); - glGetFenceivNV = (glGetFenceivNVPROC) extgl_GetProcAddress("glGetFenceivNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_fence) -} - /* * Class: org.lwjgl.opengl.NVFence * Method: nglGenFencesNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV (JNIEnv * env, jclass clazz, jint n, jobject piFences, jint piFences_offset) { - CHECK_EXISTS(glGenFencesNV) GLuint *piFences_ptr = (GLuint *)env->GetDirectBufferAddress(piFences) + piFences_offset; glGenFencesNV(n, piFences_ptr); CHECK_GL_ERROR @@ -85,10 +69,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV * Class: org.lwjgl.opengl.NVFence * Method: nglDeleteFencesNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV (JNIEnv * env, jclass clazz, jint n, jobject piFences, jint piFences_offset) { - CHECK_EXISTS(glDeleteFencesNV) GLuint *piFences_ptr = (GLuint *)env->GetDirectBufferAddress(piFences) + piFences_offset; glDeleteFencesNV(n, piFences_ptr); CHECK_GL_ERROR @@ -98,10 +81,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV * Class: org.lwjgl.opengl.NVFence * Method: glSetFenceNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glSetFenceNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glSetFenceNV (JNIEnv * env, jclass clazz, jint fence, jint condition) { - CHECK_EXISTS(glSetFenceNV) glSetFenceNV(fence, condition); CHECK_GL_ERROR } @@ -110,10 +92,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glSetFenceNV * Class: org.lwjgl.opengl.NVFence * Method: glTestFenceNV */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glTestFenceNV +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glTestFenceNV (JNIEnv * env, jclass clazz, jint fence) { - CHECK_EXISTS(glTestFenceNV) GLboolean result = glTestFenceNV(fence); CHECK_GL_ERROR return result; @@ -123,10 +104,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glTestFenceNV * Class: org.lwjgl.opengl.NVFence * Method: glFinishFenceNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glFinishFenceNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glFinishFenceNV (JNIEnv * env, jclass clazz, jint fence) { - CHECK_EXISTS(glFinishFenceNV) glFinishFenceNV(fence); CHECK_GL_ERROR } @@ -135,10 +115,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glFinishFenceNV * Class: org.lwjgl.opengl.NVFence * Method: glIsFenceNV */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glIsFenceNV +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glIsFenceNV (JNIEnv * env, jclass clazz, jint fence) { - CHECK_EXISTS(glIsFenceNV) GLboolean result = glIsFenceNV(fence); CHECK_GL_ERROR return result; @@ -148,11 +127,27 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glIsFenceNV * Class: org.lwjgl.opengl.NVFence * Method: nglGetFenceivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV (JNIEnv * env, jclass clazz, jint fence, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetFenceivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetFenceivNV(fence, pname, piParams_ptr); CHECK_GL_ERROR } + +void extgl_InitNVFence(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglGenFencesNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFence_nglGenFencesNV, "glGenFencesNV", (void**)&glGenFencesNV}, + {"nglDeleteFencesNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV, "glDeleteFencesNV", (void**)&glDeleteFencesNV}, + {"glSetFenceNV", "(II)V", (void*)&Java_org_lwjgl_opengl_NVFence_glSetFenceNV, "glSetFenceNV", (void**)&glSetFenceNV}, + {"glTestFenceNV", "(I)Z", (void*)&Java_org_lwjgl_opengl_NVFence_glTestFenceNV, "glTestFenceNV", (void**)&glTestFenceNV}, + {"glFinishFenceNV", "(I)V", (void*)&Java_org_lwjgl_opengl_NVFence_glFinishFenceNV, "glFinishFenceNV", (void**)&glFinishFenceNV}, + {"glIsFenceNV", "(I)Z", (void*)&Java_org_lwjgl_opengl_NVFence_glIsFenceNV, "glIsFenceNV", (void**)&glIsFenceNV}, + {"nglGetFenceivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV, "glGetFenceivNV", (void**)&glGetFenceivNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVFence"); + if (extgl_Extensions.GL_NV_fence) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_fence", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVFence.h b/src/native/common/nv/org_lwjgl_opengl_NVFence.h deleted file mode 100644 index 2492c12e..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVFence.h +++ /dev/null @@ -1,99 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVFence -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVFence -#define _Included_org_lwjgl_opengl_NVFence - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVFence - * Method: nglGenFencesNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGenFencesNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVFence - * Method: nglDeleteFencesNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglDeleteFencesNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glSetFenceNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glSetFenceNV - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glTestFenceNV - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glTestFenceNV - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glFinishFenceNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_glFinishFenceNV - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.NVFence - * Method: glIsFenceNV - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVFence_glIsFenceNV - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.NVFence - * Method: nglGetFenceivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFence_nglGetFenceivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.cpp b/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.cpp index 4bbfb252..5b135217 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.cpp @@ -34,45 +34,26 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVFragmentProgram // ---------------------------------- -#include "org_lwjgl_opengl_NVFragmentProgram.h" #include "extgl.h" #include "checkGLerror.h" typedef void (APIENTRY * glProgramNamedParameter4fNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * glProgramNamedParameter4fvNVPROC) (GLuint id, GLsizei len, const GLubyte *name, const GLfloat v[]); typedef void (APIENTRY * glProgramLocalParameter4fARBPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * glProgramLocalParameter4fvARBPROC) (GLenum target, GLuint index, const GLfloat *params); typedef void (APIENTRY * glGetProgramNamedParameterfvNVPROC) (GLuint id, GLsizei len, const GLubyte *name, GLfloat *params); typedef void (APIENTRY * glGetProgramLocalParameterfvARBPROC) (GLenum target, GLuint index, GLfloat *params); static glProgramNamedParameter4fNVPROC glProgramNamedParameter4fNV; -static glProgramNamedParameter4fvNVPROC glProgramNamedParameter4fvNV; static glProgramLocalParameter4fARBPROC glProgramLocalParameter4fARB; -static glProgramLocalParameter4fvARBPROC glProgramLocalParameter4fvARB; static glGetProgramNamedParameterfvNVPROC glGetProgramNamedParameterfvNV; static glGetProgramLocalParameterfvARBPROC glGetProgramLocalParameterfvARB; -void extgl_InitNVFragmentProgram(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_fragment_program) - return; - glProgramNamedParameter4fNV = (glProgramNamedParameter4fNVPROC) extgl_GetProcAddress("glProgramNamedParameter4fNV"); - glProgramNamedParameter4fvNV = (glProgramNamedParameter4fvNVPROC) extgl_GetProcAddress("glProgramNamedParameter4fvNV"); - glGetProgramNamedParameterfvNV = (glGetProgramNamedParameterfvNVPROC) extgl_GetProcAddress("glGetProgramNamedParameterfvNV"); - glProgramLocalParameter4fARB = (glProgramLocalParameter4fARBPROC) extgl_GetProcAddress("glProgramLocalParameter4fARB"); - glProgramLocalParameter4fvARB = (glProgramLocalParameter4fvARBPROC) extgl_GetProcAddress("glProgramLocalParameter4fvARB"); - glGetProgramLocalParameterfvARB = (glGetProgramLocalParameterfvARBPROC) extgl_GetProcAddress("glGetProgramLocalParameterfvARB"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_fragment_program) -} - /* * Class: org.lwjgl.opengl.NVFragmentProgram * Method: nglProgramNamedParameter4fNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglProgramNamedParameter4fNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglProgramNamedParameter4fNV (JNIEnv * env, jclass clazz, jint id, jint length, jobject name, jint nameOffset, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glProgramNamedParameter4fNV) GLubyte *name_ptr = (GLubyte *)env->GetDirectBufferAddress(name) + nameOffset; glProgramNamedParameter4fNV(id, length, name_ptr, x, y, z, w); CHECK_GL_ERROR @@ -82,10 +63,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglProgramNamedPa * Class: org.lwjgl.opengl.NVFragmentProgram * Method: nglGetProgramNamedParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramNamedParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramNamedParameterfvNV (JNIEnv * env, jclass clazz, jint id, jint length, jobject name, jint nameOffset, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetProgramNamedParameterfvNV) GLubyte *name_ptr = (GLubyte *)env->GetDirectBufferAddress(name) + nameOffset; GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetProgramNamedParameterfvNV(id, length, name_ptr, params_ptr); @@ -96,10 +76,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramName * Class: org.lwjgl.opengl.NVFragmentProgram * Method: glProgramLocalParameter4fNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_glProgramLocalParameter4fARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_glProgramLocalParameter4fARB (JNIEnv * env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glProgramLocalParameter4fARB) glProgramLocalParameter4fARB(target, index, x, y, z, w); CHECK_GL_ERROR } @@ -108,11 +87,24 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_glProgramLocalPar * Class: org.lwjgl.opengl.NVFragmentProgram * Method: nglGetProgramLocalParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramLocalParameterfvARB +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramLocalParameterfvARB (JNIEnv * env, jclass clazz, jint target, jint index, jobject params, jint params_offset) { - CHECK_EXISTS(glGetProgramLocalParameterfvARB) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + params_offset; glGetProgramLocalParameterfvARB(target, index, params_ptr); CHECK_GL_ERROR } + +void extgl_InitNVFragmentProgram(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglProgramNamedParameter4fNV", "(IILjava/nio/ByteBuffer;IFFFF)V", (void*)&Java_org_lwjgl_opengl_NVFragmentProgram_nglProgramNamedParameter4fNV, "glProgramNamedParameter4fNV", (void**)&glProgramNamedParameter4fNV}, + {"nglGetProgramNamedParameterfvNV", "(IILjava/nio/ByteBuffer;ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramNamedParameterfvNV, "glGetProgramNamedParameterfvNV", (void**)&glGetProgramNamedParameterfvNV}, + {"glProgramLocalParameter4fARB", "(IIFFFF)V", (void*)&Java_org_lwjgl_opengl_NVFragmentProgram_glProgramLocalParameter4fARB, "glProgramLocalParameter4fARB", (void**)&glProgramLocalParameter4fARB}, + {"nglGetProgramLocalParameterfvARB", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramLocalParameterfvARB, "glGetProgramLocalParameterfvARB", (void**)&glGetProgramLocalParameterfvARB} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVFragmentProgram"); + if (extgl_Extensions.GL_NV_fragment_program) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_fragment_program", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.h b/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.h deleted file mode 100644 index 478bccfa..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVFragmentProgram.h +++ /dev/null @@ -1,71 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_NVFragmentProgram */ - -#ifndef _Included_org_lwjgl_opengl_NVFragmentProgram -#define _Included_org_lwjgl_opengl_NVFragmentProgram -#ifdef __cplusplus -extern "C" { -#endif -/* Inaccessible static: _00024assertionsDisabled */ -#undef org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_TARGET_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_TARGET_NV 34374L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_LENGTH_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_LENGTH_NV 34343L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_RESIDENT_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_RESIDENT_NV 34375L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_STRING_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_STRING_NV 34344L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_ERROR_POSITION_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_ERROR_POSITION_NV 34379L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_ERROR_STRING_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_PROGRAM_ERROR_STRING_NV 34932L -/* Inaccessible static: class_00024org_00024lwjgl_00024opengl_00024nv_00024NVProgram */ -/* Inaccessible static: _00024assertionsDisabled */ -#undef org_lwjgl_opengl_NVFragmentProgram_GL_FRAGMENT_PROGRAM_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_FRAGMENT_PROGRAM_NV 34928L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_MAX_TEXTURE_COORDS_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_MAX_TEXTURE_COORDS_NV 34929L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_MAX_TEXTURE_IMAGE_UNITS_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_MAX_TEXTURE_IMAGE_UNITS_NV 34930L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_FRAGMENT_PROGRAM_BINDING_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_FRAGMENT_PROGRAM_BINDING_NV 34931L -#undef org_lwjgl_opengl_NVFragmentProgram_GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV -#define org_lwjgl_opengl_NVFragmentProgram_GL_MAX_FRAGMENT_PROGRAM_LOCAL_PARAMETERS_NV 34920L -/* Inaccessible static: class_00024org_00024lwjgl_00024opengl_00024nv_00024NVFragmentProgram */ -/* - * Class: org_lwjgl_opengl_NVFragmentProgram - * Method: nglProgramNamedParameter4fNV - * Signature: (IILjava/nio/ByteBuffer;IFFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglProgramNamedParameter4fNV - (JNIEnv *, jclass, jint, jint, jobject, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_NVFragmentProgram - * Method: nglGetProgramNamedParameterfvNV - * Signature: (IILjava/nio/ByteBuffer;ILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramNamedParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_NVFragmentProgram - * Method: glProgramLocalParameter4fARB - * Signature: (IIFFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_glProgramLocalParameter4fARB - (JNIEnv *, jclass, jint, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_NVFragmentProgram - * Method: nglGetProgramLocalParameterfvARB - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVFragmentProgram_nglGetProgramLocalParameterfvARB - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.cpp b/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.cpp index 53ab4f1b..5f9e1991 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.cpp @@ -34,163 +34,68 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVHalfFloat // ---------------------------------- -#include "org_lwjgl_opengl_NVHalfFloat.h" #include "extgl.h" #include "checkGLerror.h" typedef unsigned short GLhalf; typedef void (APIENTRY * glVertex2hNVPROC) (GLhalf x, GLhalf y); -typedef void (APIENTRY * glVertex2hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glVertex3hNVPROC) (GLhalf x, GLhalf y, GLhalf z); -typedef void (APIENTRY * glVertex3hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glVertex4hNVPROC) (GLhalf x, GLhalf y, GLhalf z, GLhalf w); -typedef void (APIENTRY * glVertex4hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glNormal3hNVPROC) (GLhalf nx, GLhalf ny, GLhalf nz); -typedef void (APIENTRY * glNormal3hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue); -typedef void (APIENTRY * glColor3hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glColor4hNVPROC) (GLhalf red, GLhalf green, GLhalf blue, GLhalf alpha); -typedef void (APIENTRY * glColor4hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glTexCoord1hNVPROC) (GLhalf s); -typedef void (APIENTRY * glTexCoord1hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glTexCoord2hNVPROC) (GLhalf s, GLhalf t); -typedef void (APIENTRY * glTexCoord2hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glTexCoord3hNVPROC) (GLhalf s, GLhalf t, GLhalf r); -typedef void (APIENTRY * glTexCoord3hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glTexCoord4hNVPROC) (GLhalf s, GLhalf t, GLhalf r, GLhalf q); -typedef void (APIENTRY * glTexCoord4hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glMultiTexCoord1hNVPROC) (GLenum target, GLhalf s); -typedef void (APIENTRY * glMultiTexCoord1hvNVPROC) (GLenum target, const GLhalf *v); typedef void (APIENTRY * glMultiTexCoord2hNVPROC) (GLenum target, GLhalf s, GLhalf t); -typedef void (APIENTRY * glMultiTexCoord2hvNVPROC) (GLenum target, const GLhalf *v); typedef void (APIENTRY * glMultiTexCoord3hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r); -typedef void (APIENTRY * glMultiTexCoord3hvNVPROC) (GLenum target, const GLhalf *v); typedef void (APIENTRY * glMultiTexCoord4hNVPROC) (GLenum target, GLhalf s, GLhalf t, GLhalf r, GLhalf q); -typedef void (APIENTRY * glMultiTexCoord4hvNVPROC) (GLenum target, const GLhalf *v); typedef void (APIENTRY * glFogCoordhNVPROC) (GLhalf fog); -typedef void (APIENTRY * glFogCoordhvNVPROC) (const GLhalf *fog); typedef void (APIENTRY * glSecondaryColor3hNVPROC) (GLhalf red, GLhalf green, GLhalf blue); -typedef void (APIENTRY * glSecondaryColor3hvNVPROC) (const GLhalf *v); typedef void (APIENTRY * glVertexAttrib1hNVPROC) (GLuint index, GLhalf x); -typedef void (APIENTRY * glVertexAttrib1hvNVPROC) (GLuint index, const GLhalf *v); typedef void (APIENTRY * glVertexAttrib2hNVPROC) (GLuint index, GLhalf x, GLhalf y); -typedef void (APIENTRY * glVertexAttrib2hvNVPROC) (GLuint index, const GLhalf *v); typedef void (APIENTRY * glVertexAttrib3hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z); -typedef void (APIENTRY * glVertexAttrib3hvNVPROC) (GLuint index, const GLhalf *v); typedef void (APIENTRY * glVertexAttrib4hNVPROC) (GLuint index, GLhalf x, GLhalf y, GLhalf z, GLhalf w); -typedef void (APIENTRY * glVertexAttrib4hvNVPROC) (GLuint index, const GLhalf *v); typedef void (APIENTRY * glVertexAttribs1hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); typedef void (APIENTRY * glVertexAttribs2hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); typedef void (APIENTRY * glVertexAttribs3hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); typedef void (APIENTRY * glVertexAttribs4hvNVPROC) (GLuint index, GLsizei n, const GLhalf *v); static glVertex2hNVPROC glVertex2hNV; -static glVertex2hvNVPROC glVertex2hvNV; static glVertex3hNVPROC glVertex3hNV; -static glVertex3hvNVPROC glVertex3hvNV; static glVertex4hNVPROC glVertex4hNV; -static glVertex4hvNVPROC glVertex4hvNV; static glNormal3hNVPROC glNormal3hNV; -static glNormal3hvNVPROC glNormal3hvNV; static glColor3hNVPROC glColor3hNV; -static glColor3hvNVPROC glColor3hvNV; static glColor4hNVPROC glColor4hNV; -static glColor4hvNVPROC glColor4hvNV; static glTexCoord1hNVPROC glTexCoord1hNV; -static glTexCoord1hvNVPROC glTexCoord1hvNV; static glTexCoord2hNVPROC glTexCoord2hNV; -static glTexCoord2hvNVPROC glTexCoord2hvNV; static glTexCoord3hNVPROC glTexCoord3hNV; -static glTexCoord3hvNVPROC glTexCoord3hvNV; static glTexCoord4hNVPROC glTexCoord4hNV; -static glTexCoord4hvNVPROC glTexCoord4hvNV; static glMultiTexCoord1hNVPROC glMultiTexCoord1hNV; -static glMultiTexCoord1hvNVPROC glMultiTexCoord1hvNV; static glMultiTexCoord2hNVPROC glMultiTexCoord2hNV; -static glMultiTexCoord2hvNVPROC glMultiTexCoord2hvNV; static glMultiTexCoord3hNVPROC glMultiTexCoord3hNV; -static glMultiTexCoord3hvNVPROC glMultiTexCoord3hvNV; static glMultiTexCoord4hNVPROC glMultiTexCoord4hNV; -static glMultiTexCoord4hvNVPROC glMultiTexCoord4hvNV; static glFogCoordhNVPROC glFogCoordhNV; -static glFogCoordhvNVPROC glFogCoordhvNV; static glSecondaryColor3hNVPROC glSecondaryColor3hNV; -static glSecondaryColor3hvNVPROC glSecondaryColor3hvNV; static glVertexAttrib1hNVPROC glVertexAttrib1hNV; -static glVertexAttrib1hvNVPROC glVertexAttrib1hvNV; static glVertexAttrib2hNVPROC glVertexAttrib2hNV; -static glVertexAttrib2hvNVPROC glVertexAttrib2hvNV; static glVertexAttrib3hNVPROC glVertexAttrib3hNV; -static glVertexAttrib3hvNVPROC glVertexAttrib3hvNV; static glVertexAttrib4hNVPROC glVertexAttrib4hNV; -static glVertexAttrib4hvNVPROC glVertexAttrib4hvNV; static glVertexAttribs1hvNVPROC glVertexAttribs1hvNV; static glVertexAttribs2hvNVPROC glVertexAttribs2hvNV; static glVertexAttribs3hvNVPROC glVertexAttribs3hvNV; static glVertexAttribs4hvNVPROC glVertexAttribs4hvNV; -void extgl_InitNVHalfFloat(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_half_float) - return; - - glVertex2hNV = (glVertex2hNVPROC) extgl_GetProcAddress("glVertex2hNV"); - glVertex2hvNV = (glVertex2hvNVPROC) extgl_GetProcAddress("glVertex2hvNV"); - glVertex3hNV = (glVertex3hNVPROC) extgl_GetProcAddress("glVertex3hNV"); - glVertex3hvNV = (glVertex3hvNVPROC) extgl_GetProcAddress("glVertex3hvNV"); - glVertex4hNV = (glVertex4hNVPROC) extgl_GetProcAddress("glVertex4hNV"); - glVertex4hvNV = (glVertex4hvNVPROC) extgl_GetProcAddress("glVertex4hvNV"); - glNormal3hNV = (glNormal3hNVPROC) extgl_GetProcAddress("glNormal3hNV"); - glNormal3hvNV = (glNormal3hvNVPROC) extgl_GetProcAddress("glNormal3hvNV"); - glColor3hNV = (glColor3hNVPROC) extgl_GetProcAddress("glColor3hNV"); - glColor3hvNV = (glColor3hvNVPROC) extgl_GetProcAddress("glColor3hvNV"); - glColor4hNV = (glColor4hNVPROC) extgl_GetProcAddress("glColor4hNV"); - glColor4hvNV = (glColor4hvNVPROC) extgl_GetProcAddress("glColor4hvNV"); - glTexCoord1hNV = (glTexCoord1hNVPROC) extgl_GetProcAddress("glTexCoord1hNV"); - glTexCoord1hvNV = (glTexCoord1hvNVPROC) extgl_GetProcAddress("glTexCoord1hvNV"); - glTexCoord2hNV = (glTexCoord2hNVPROC) extgl_GetProcAddress("glTexCoord2hNV"); - glTexCoord2hvNV = (glTexCoord2hvNVPROC) extgl_GetProcAddress("glTexCoord2hvNV"); - glTexCoord3hNV = (glTexCoord3hNVPROC) extgl_GetProcAddress("glTexCoord3hNV"); - glTexCoord3hvNV = (glTexCoord3hvNVPROC) extgl_GetProcAddress("glTexCoord3hvNV"); - glTexCoord4hNV = (glTexCoord4hNVPROC) extgl_GetProcAddress("glTexCoord4hNV"); - glTexCoord4hvNV = (glTexCoord4hvNVPROC) extgl_GetProcAddress("glTexCoord4hvNV"); - glMultiTexCoord1hNV = (glMultiTexCoord1hNVPROC) extgl_GetProcAddress("glMultiTexCoord1hNV"); - glMultiTexCoord1hvNV = (glMultiTexCoord1hvNVPROC) extgl_GetProcAddress("glMultiTexCoord1hvNV"); - glMultiTexCoord2hNV = (glMultiTexCoord2hNVPROC) extgl_GetProcAddress("glMultiTexCoord2hNV"); - glMultiTexCoord2hvNV = (glMultiTexCoord2hvNVPROC) extgl_GetProcAddress("glMultiTexCoord2hvNV"); - glMultiTexCoord3hNV = (glMultiTexCoord3hNVPROC) extgl_GetProcAddress("glMultiTexCoord3hNV"); - glMultiTexCoord3hvNV = (glMultiTexCoord3hvNVPROC) extgl_GetProcAddress("glMultiTexCoord3hvNV"); - glMultiTexCoord4hNV = (glMultiTexCoord4hNVPROC) extgl_GetProcAddress("glMultiTexCoord4hNV"); - glMultiTexCoord4hvNV = (glMultiTexCoord4hvNVPROC) extgl_GetProcAddress("glMultiTexCoord4hvNV"); - glFogCoordhNV = (glFogCoordhNVPROC) extgl_GetProcAddress("glFogCoordhNV"); - glFogCoordhvNV = (glFogCoordhvNVPROC) extgl_GetProcAddress("glFogCoordhvNV"); - glSecondaryColor3hNV = (glSecondaryColor3hNVPROC) extgl_GetProcAddress("glSecondaryColor3hNV"); - glSecondaryColor3hvNV = (glSecondaryColor3hvNVPROC) extgl_GetProcAddress("glSecondaryColor3hvNV"); - glVertexAttrib1hNV = (glVertexAttrib1hNVPROC) extgl_GetProcAddress("glVertexAttrib1hNV"); - glVertexAttrib1hvNV = (glVertexAttrib1hvNVPROC) extgl_GetProcAddress("glVertexAttrib1hvNV"); - glVertexAttrib2hNV = (glVertexAttrib2hNVPROC) extgl_GetProcAddress("glVertexAttrib2hNV"); - glVertexAttrib2hvNV = (glVertexAttrib2hvNVPROC) extgl_GetProcAddress("glVertexAttrib2hvNV"); - glVertexAttrib3hNV = (glVertexAttrib3hNVPROC) extgl_GetProcAddress("glVertexAttrib3hNV"); - glVertexAttrib3hvNV = (glVertexAttrib3hvNVPROC) extgl_GetProcAddress("glVertexAttrib3hvNV"); - glVertexAttrib4hNV = (glVertexAttrib4hNVPROC) extgl_GetProcAddress("glVertexAttrib4hNV"); - glVertexAttrib4hvNV = (glVertexAttrib4hvNVPROC) extgl_GetProcAddress("glVertexAttrib4hvNV"); - glVertexAttribs1hvNV = (glVertexAttribs1hvNVPROC) extgl_GetProcAddress("glVertexAttribs1hvNV"); - glVertexAttribs2hvNV = (glVertexAttribs2hvNVPROC) extgl_GetProcAddress("glVertexAttribs2hvNV"); - glVertexAttribs3hvNV = (glVertexAttribs3hvNVPROC) extgl_GetProcAddress("glVertexAttribs3hvNV"); - glVertexAttribs4hvNV = (glVertexAttribs4hvNVPROC) extgl_GetProcAddress("glVertexAttribs4hvNV"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_half_float) -} - /* * Class: org.lwjgl.opengl.NVHalfFloat * Method: glVertex2hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV (JNIEnv * env, jclass clazz, jshort x, jshort y) { - CHECK_EXISTS(glVertex2hNV) glVertex2hNV(x, y); CHECK_GL_ERROR } @@ -199,10 +104,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glVertex3hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV (JNIEnv * env, jclass clazz, jshort x, jshort y, jshort z) { - CHECK_EXISTS(glVertex3hNV) glVertex3hNV(x, y, z); CHECK_GL_ERROR } @@ -211,10 +115,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glVertex4hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV (JNIEnv * env, jclass clazz, jshort x, jshort y, jshort z, jshort w) { - CHECK_EXISTS(glVertex4hNV) glVertex4hNV(x, y, z, w); CHECK_GL_ERROR } @@ -223,10 +126,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glNormal3hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV (JNIEnv * env, jclass clazz, jshort nx, jshort ny, jshort nz) { - CHECK_EXISTS(glNormal3hNV) glNormal3hNV(nx, ny, nz); CHECK_GL_ERROR } @@ -235,10 +137,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glColor3hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV (JNIEnv * env, jclass clazz, jshort red, jshort green, jshort blue) { - CHECK_EXISTS(glColor3hNV) glColor3hNV(red, green, blue); CHECK_GL_ERROR } @@ -247,10 +148,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glColor4hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV (JNIEnv * env, jclass clazz, jshort red, jshort green, jshort blue, jshort alpha) { - CHECK_EXISTS(glColor4hNV) glColor4hNV(red, green, blue, alpha); CHECK_GL_ERROR } @@ -259,10 +159,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glTexCoord1hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV (JNIEnv * env, jclass clazz, jshort s) { - CHECK_EXISTS(glTexCoord1hNV) glTexCoord1hNV(s); CHECK_GL_ERROR } @@ -271,10 +170,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glTexCoord2hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV (JNIEnv * env, jclass clazz, jshort s, jshort t) { - CHECK_EXISTS(glTexCoord2hNV) glTexCoord2hNV(s, t); CHECK_GL_ERROR } @@ -283,10 +181,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glTexCoord3hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV (JNIEnv * env, jclass clazz, jshort s, jshort t, jshort r) { - CHECK_EXISTS(glTexCoord3hNV) glTexCoord3hNV(s, t, r); CHECK_GL_ERROR } @@ -295,10 +192,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glTexCoord4hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV (JNIEnv * env, jclass clazz, jshort s, jshort t, jshort r, jshort q) { - CHECK_EXISTS(glTexCoord4hNV) glTexCoord4hNV(s, t, r, q); CHECK_GL_ERROR } @@ -307,10 +203,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glMultiTexCoord1hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV (JNIEnv * env, jclass clazz, jint target, jshort s) { - CHECK_EXISTS(glMultiTexCoord1hNV) glMultiTexCoord1hNV(target, s); CHECK_GL_ERROR } @@ -319,10 +214,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glMultiTexCoord2hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t) { - CHECK_EXISTS(glMultiTexCoord2hNV) glMultiTexCoord2hNV(target, s, t); CHECK_GL_ERROR } @@ -331,10 +225,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glMultiTexCoord3hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t, jshort r) { - CHECK_EXISTS(glMultiTexCoord3hNV) glMultiTexCoord3hNV(target, s, t, r); CHECK_GL_ERROR } @@ -343,10 +236,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glMultiTexCoord4hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV (JNIEnv * env, jclass clazz, jint target, jshort s, jshort t, jshort r, jshort q) { - CHECK_EXISTS(glMultiTexCoord4hNV) glMultiTexCoord4hNV(target, s, t, r, q); CHECK_GL_ERROR } @@ -355,10 +247,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glFogCoordhNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV (JNIEnv * env, jclass clazz, jshort fog) { - CHECK_EXISTS(glFogCoordhNV) glFogCoordhNV(fog); CHECK_GL_ERROR } @@ -367,10 +258,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glSecondaryColor3hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV (JNIEnv * env, jclass clazz, jshort red, jshort green, jshort blue) { - CHECK_EXISTS(glSecondaryColor3hNV) glSecondaryColor3hNV(red, green, blue); CHECK_GL_ERROR } @@ -379,10 +269,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glVertexAttrib1hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV (JNIEnv * env, jclass clazz, jint index, jshort x) { - CHECK_EXISTS(glVertexAttrib1hNV) glVertexAttrib1hNV(index, x); CHECK_GL_ERROR } @@ -391,10 +280,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glVertexAttrib2hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y) { - CHECK_EXISTS(glVertexAttrib2hNV) glVertexAttrib2hNV(index, x, y); CHECK_GL_ERROR } @@ -403,10 +291,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glVertexAttrib3hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z) { - CHECK_EXISTS(glVertexAttrib3hNV) glVertexAttrib3hNV(index, x, y, z); CHECK_GL_ERROR } @@ -415,10 +302,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: glVertexAttrib4hNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w) { - CHECK_EXISTS(glVertexAttrib4hNV) glVertexAttrib4hNV(index, x, y, z, w); CHECK_GL_ERROR } @@ -427,10 +313,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: nglVertexAttribs1hvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) { - CHECK_EXISTS(glVertexAttribs1hvNV) GLushort *attribs_ptr = (GLushort *)env->GetDirectBufferAddress(attribs) + attribsOffset; glVertexAttribs1hvNV(index, n, attribs_ptr); CHECK_GL_ERROR @@ -440,10 +325,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: nglVertexAttribs2hvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) { - CHECK_EXISTS(glVertexAttribs2hvNV) GLushort *attribs_ptr = (GLushort *)env->GetDirectBufferAddress(attribs) + attribsOffset; glVertexAttribs2hvNV(index, n, attribs_ptr); CHECK_GL_ERROR @@ -453,10 +337,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: nglVertexAttribs3hvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) { - CHECK_EXISTS(glVertexAttribs3hvNV) GLushort *attribs_ptr = (GLushort *)env->GetDirectBufferAddress(attribs) + attribsOffset; glVertexAttribs3hvNV(index, n, attribs_ptr); CHECK_GL_ERROR @@ -466,11 +349,44 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV * Class: org.lwjgl.opengl.NVHalfFloat * Method: nglVertexAttribs4hvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV (JNIEnv * env, jclass clazz, jint index, jint n, jobject attribs, jint attribsOffset) { - CHECK_EXISTS(glVertexAttribs4hvNV) GLushort *attribs_ptr = (GLushort *)env->GetDirectBufferAddress(attribs) + attribsOffset; glVertexAttribs4hvNV(index, n, attribs_ptr); CHECK_GL_ERROR } + +void extgl_InitNVHalfFloat(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glVertex2hNV", "(SS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV, "glVertex2hNV", (void**)&glVertex2hNV}, + {"glVertex3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV, "glVertex3hNV", (void**)&glVertex3hNV}, + {"glVertex4hNV", "(SSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV, "glVertex4hNV", (void**)&glVertex4hNV}, + {"glNormal3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV, "glNormal3hNV", (void**)&glNormal3hNV}, + {"glColor3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV, "glColor3hNV", (void**)&glColor3hNV}, + {"glColor4hNV", "(SSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV, "glColor4hNV", (void**)&glColor4hNV}, + {"glTexCoord1hNV", "(S)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV, "glTexCoord1hNV", (void**)&glTexCoord1hNV}, + {"glTexCoord2hNV", "(SS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV, "glTexCoord2hNV", (void**)&glTexCoord2hNV}, + {"glTexCoord3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV, "glTexCoord3hNV", (void**)&glTexCoord3hNV}, + {"glTexCoord4hNV", "(SSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV, "glTexCoord4hNV", (void**)&glTexCoord4hNV}, + {"glMultiTexCoord1hNV", "(IS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV, "glMultiTexCoord1hNV", (void**)&glMultiTexCoord1hNV}, + {"glMultiTexCoord2hNV", "(ISS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV, "glMultiTexCoord2hNV", (void**)&glMultiTexCoord2hNV}, + {"glMultiTexCoord3hNV", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV, "glMultiTexCoord3hNV", (void**)&glMultiTexCoord3hNV}, + {"glMultiTexCoord4hNV", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV, "glMultiTexCoord4hNV", (void**)&glMultiTexCoord4hNV}, + {"glFogCoordhNV", "(S)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV, "glFogCoordhNV", (void**)&glFogCoordhNV}, + {"glSecondaryColor3hNV", "(SSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV, "glSecondaryColor3hNV", (void**)&glSecondaryColor3hNV}, + {"glVertexAttrib1hNV", "(IS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV, "glVertexAttrib1hNV", (void**)&glVertexAttrib1hNV}, + {"glVertexAttrib2hNV", "(ISS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV, "glVertexAttrib2hNV", (void**)&glVertexAttrib2hNV}, + {"glVertexAttrib3hNV", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV, "glVertexAttrib3hNV", (void**)&glVertexAttrib3hNV}, + {"glVertexAttrib4hNV", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV, "glVertexAttrib4hNV", (void**)&glVertexAttrib4hNV}, + {"nglVertexAttribs1hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV, "glVertexAttribs1hvNV", (void**)&glVertexAttribs1hvNV}, + {"nglVertexAttribs2hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV, "glVertexAttribs2hvNV", (void**)&glVertexAttribs2hvNV}, + {"nglVertexAttribs3hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV, "glVertexAttribs3hvNV", (void**)&glVertexAttribs3hvNV}, + {"nglVertexAttribs4hvNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV, "glVertexAttribs4hvNV", (void**)&glVertexAttribs4hvNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVHalfFloat"); + if (extgl_Extensions.GL_NV_half_float) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_half_float", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.h b/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.h deleted file mode 100644 index 396165ef..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVHalfFloat.h +++ /dev/null @@ -1,218 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVHalfFloat -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVHalfFloat -#define _Included_org_lwjgl_opengl_NVHalfFloat - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertex2hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex2hNV - (JNIEnv *, jclass, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertex3hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex3hNV - (JNIEnv *, jclass, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertex4hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertex4hNV - (JNIEnv *, jclass, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glNormal3hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glNormal3hNV - (JNIEnv *, jclass, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glColor3hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor3hNV - (JNIEnv *, jclass, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glColor4hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glColor4hNV - (JNIEnv *, jclass, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord1hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord1hNV - (JNIEnv *, jclass, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord2hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord2hNV - (JNIEnv *, jclass, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord3hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord3hNV - (JNIEnv *, jclass, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glTexCoord4hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glTexCoord4hNV - (JNIEnv *, jclass, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord1hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord1hNV - (JNIEnv *, jclass, jint, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord2hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord2hNV - (JNIEnv *, jclass, jint, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord3hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord3hNV - (JNIEnv *, jclass, jint, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glMultiTexCoord4hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glMultiTexCoord4hNV - (JNIEnv *, jclass, jint, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glFogCoordhNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glFogCoordhNV - (JNIEnv *, jclass, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glSecondaryColor3hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glSecondaryColor3hNV - (JNIEnv *, jclass, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib1hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib1hNV - (JNIEnv *, jclass, jint, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib2hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib2hNV - (JNIEnv *, jclass, jint, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib3hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib3hNV - (JNIEnv *, jclass, jint, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: glVertexAttrib4hNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_glVertexAttrib4hNV - (JNIEnv *, jclass, jint, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs1hvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs1hvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs2hvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs2hvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs3hvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs3hvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVHalfFloat - * Method: nglVertexAttribs4hvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVHalfFloat_nglVertexAttribs4hvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVOcclusionQuery.cpp b/src/native/common/nv/org_lwjgl_opengl_NVOcclusionQuery.cpp index 9ce2322c..4de6ab4e 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVOcclusionQuery.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVOcclusionQuery.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVOcclusionQuery // ---------------------------------- -#include "org_lwjgl_opengl_NVOcclusionQuery.h" #include "extgl.h" #include "checkGLerror.h" @@ -54,28 +53,13 @@ static glEndOcclusionQueryNVPROC glEndOcclusionQueryNV; static glGetOcclusionQueryivNVPROC glGetOcclusionQueryivNV; static glGetOcclusionQueryuivNVPROC glGetOcclusionQueryuivNV; -void extgl_InitNVOcclusionQuery(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_occlusion_query) - return; - glGenOcclusionQueriesNV = (glGenOcclusionQueriesNVPROC) extgl_GetProcAddress("glGenOcclusionQueriesNV"); - glDeleteOcclusionQueriesNV = (glDeleteOcclusionQueriesNVPROC) extgl_GetProcAddress("glDeleteOcclusionQueriesNV"); - glIsOcclusionQueryNV = (glIsOcclusionQueryNVPROC) extgl_GetProcAddress("glIsOcclusionQueryNV"); - glBeginOcclusionQueryNV = (glBeginOcclusionQueryNVPROC) extgl_GetProcAddress("glBeginOcclusionQueryNV"); - glEndOcclusionQueryNV = (glEndOcclusionQueryNVPROC) extgl_GetProcAddress("glEndOcclusionQueryNV"); - glGetOcclusionQueryivNV = (glGetOcclusionQueryivNVPROC) extgl_GetProcAddress("glGetOcclusionQueryivNV"); - glGetOcclusionQueryuivNV = (glGetOcclusionQueryuivNVPROC) extgl_GetProcAddress("glGetOcclusionQueryuivNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_occlusion_query) -} - /* * Class: org.lwjgl.opengl.NVOcclusionQuery * Method: nglGenOcclusionQueriesNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGenOcclusionQueriesNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGenOcclusionQueriesNV (JNIEnv * env, jclass clazz, jint n, jobject piIDs, jint piIDs_offset) { - CHECK_EXISTS(glGenOcclusionQueriesNV) GLuint *piIDs_ptr = (GLuint *)env->GetDirectBufferAddress(piIDs) + piIDs_offset; glGenOcclusionQueriesNV(n, piIDs_ptr); CHECK_GL_ERROR @@ -85,10 +69,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGenOcclusionQue * Class: org.lwjgl.opengl.NVOcclusionQuery * Method: nglDeleteOcclusionQueriesNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglDeleteOcclusionQueriesNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglDeleteOcclusionQueriesNV (JNIEnv * env, jclass clazz, jint n, jobject piIDs, jint piIDs_offset) { - CHECK_EXISTS(glDeleteOcclusionQueriesNV) GLuint *piIDs_ptr = (GLuint *)env->GetDirectBufferAddress(piIDs) + piIDs_offset; glDeleteOcclusionQueriesNV(n, piIDs_ptr); CHECK_GL_ERROR @@ -98,10 +81,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglDeleteOcclusion * Class: org.lwjgl.opengl.NVOcclusionQuery * Method: glIsOcclusionQueryNV */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glIsOcclusionQueryNV +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glIsOcclusionQueryNV (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glIsOcclusionQueryNV) GLboolean result = glIsOcclusionQueryNV(id); CHECK_GL_ERROR return result; @@ -111,10 +93,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glIsOcclusionQ * Class: org.lwjgl.opengl.NVOcclusionQuery * Method: glBeginOcclusionQueryNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glBeginOcclusionQueryNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glBeginOcclusionQueryNV (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glBeginOcclusionQueryNV) glBeginOcclusionQueryNV(id); CHECK_GL_ERROR } @@ -123,10 +104,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glBeginOcclusionQu * Class: org.lwjgl.opengl.NVOcclusionQuery * Method: glEndOcclusionQueryNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glEndOcclusionQueryNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glEndOcclusionQueryNV (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glEndOcclusionQueryNV) glEndOcclusionQueryNV(); CHECK_GL_ERROR } @@ -135,10 +115,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glEndOcclusionQuer * Class: org.lwjgl.opengl.NVOcclusionQuery * Method: nglGetOcclusionQueryivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryivNV (JNIEnv * env, jclass clazz, jint id, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetOcclusionQueryivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetOcclusionQueryivNV(id, pname, piParams_ptr); CHECK_GL_ERROR @@ -148,11 +127,27 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQue * Class: org.lwjgl.opengl.NVOcclusionQuery * Method: nglGetOcclusionQueryuivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryuivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryuivNV (JNIEnv * env, jclass clazz, jint id, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetOcclusionQueryuivNV) GLuint *piParams_ptr = (GLuint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetOcclusionQueryuivNV(id, pname, piParams_ptr); CHECK_GL_ERROR } + +void extgl_InitNVOcclusionQuery(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglGenOcclusionQueriesNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVOcclusionQuery_nglGenOcclusionQueriesNV, "glGenOcclusionQueriesNV", (void**)&glGenOcclusionQueriesNV}, + {"nglDeleteOcclusionQueriesNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVOcclusionQuery_nglDeleteOcclusionQueriesNV, "glDeleteOcclusionQueriesNV", (void**)&glDeleteOcclusionQueriesNV}, + {"glIsOcclusionQueryNV", "(I)Z", (void*)&Java_org_lwjgl_opengl_NVOcclusionQuery_glIsOcclusionQueryNV, "glIsOcclusionQueryNV", (void**)&glIsOcclusionQueryNV}, + {"glBeginOcclusionQueryNV", "(I)V", (void*)&Java_org_lwjgl_opengl_NVOcclusionQuery_glBeginOcclusionQueryNV, "glBeginOcclusionQueryNV", (void**)&glBeginOcclusionQueryNV}, + {"glEndOcclusionQueryNV", "()V", (void*)&Java_org_lwjgl_opengl_NVOcclusionQuery_glEndOcclusionQueryNV, "glEndOcclusionQueryNV", (void**)&glEndOcclusionQueryNV}, + {"nglGetOcclusionQueryivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryivNV, "glGetOcclusionQueryivNV", (void**)&glGetOcclusionQueryivNV}, + {"nglGetOcclusionQueryuivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryuivNV, "glGetOcclusionQueryuivNV", (void**)&glGetOcclusionQueryuivNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVOcclusionQuery"); + if (extgl_Extensions.GL_NV_occlusion_query) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_occlusion_query", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVOcclusionQuery.h b/src/native/common/nv/org_lwjgl_opengl_NVOcclusionQuery.h deleted file mode 100644 index 7cbbfaae..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVOcclusionQuery.h +++ /dev/null @@ -1,99 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVOcclusionQuery -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVOcclusionQuery -#define _Included_org_lwjgl_opengl_NVOcclusionQuery - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVOcclusionQuery - * Method: nglGenOcclusionQueriesNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGenOcclusionQueriesNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVOcclusionQuery - * Method: nglDeleteOcclusionQueriesNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglDeleteOcclusionQueriesNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVOcclusionQuery - * Method: glIsOcclusionQueryNV - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glIsOcclusionQueryNV - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.NVOcclusionQuery - * Method: glBeginOcclusionQueryNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glBeginOcclusionQueryNV - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.NVOcclusionQuery - * Method: glEndOcclusionQueryNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_glEndOcclusionQueryNV - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.NVOcclusionQuery - * Method: nglGetOcclusionQueryivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVOcclusionQuery - * Method: nglGetOcclusionQueryuivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglGetOcclusionQueryuivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVPixelDataRange.cpp b/src/native/common/nv/org_lwjgl_opengl_NVPixelDataRange.cpp index c6fc3ff3..bd5a8eb9 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVPixelDataRange.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVPixelDataRange.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVPixelDataRange // ---------------------------------- -#include "org_lwjgl_opengl_NVPixelDataRange.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,25 +43,13 @@ typedef void (APIENTRY * glFlushPixelDataRangeNVPROC) (GLenum target); static glPixelDataRangeNVPROC glPixelDataRangeNV; static glFlushPixelDataRangeNVPROC glFlushPixelDataRangeNV; -void extgl_InitNVPixelDataRange(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_pixel_data_range) - return; - - glPixelDataRangeNV = (glPixelDataRangeNVPROC) extgl_GetProcAddress("glPixelDataRangeNV"); - glFlushPixelDataRangeNV = (glFlushPixelDataRangeNVPROC) extgl_GetProcAddress("glFlushPixelDataRangeNV"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_pixel_data_range) -} - /* * Class: org.lwjgl.opengl.NVPixelDataRange * Method: nglPixelDataRangeNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglPixelDataRangeNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglPixelDataRangeNV (JNIEnv * env, jclass clazz, jint target, jint length, jobject data, jint dataOffset) { - CHECK_EXISTS(glPixelDataRangeNV) GLvoid *data_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(data) + dataOffset); glPixelDataRangeNV(target, length, data_ptr); CHECK_GL_ERROR @@ -72,10 +59,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglPixelDataRangeN * Class: org.lwjgl.opengl.NVPixelDataRange * Method: glFlushPixelDataRangeNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_glFlushPixelDataRangeNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_glFlushPixelDataRangeNV (JNIEnv * env, jclass clazz, jint target) { - CHECK_EXISTS(glFlushPixelDataRangeNV) glFlushPixelDataRangeNV(target); CHECK_GL_ERROR } + +void extgl_InitNVPixelDataRange(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglPixelDataRangeNV", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVPixelDataRange_nglPixelDataRangeNV, "glPixelDataRangeNV", (void**)&glPixelDataRangeNV}, + {"glFlushPixelDataRangeNV", "(I)V", (void*)&Java_org_lwjgl_opengl_NVPixelDataRange_glFlushPixelDataRangeNV, "glFlushPixelDataRangeNV", (void**)&glFlushPixelDataRangeNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVPixelDataRange"); + if (extgl_Extensions.GL_NV_pixel_data_range) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_pixel_data_range", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVPixelDataRange.h b/src/native/common/nv/org_lwjgl_opengl_NVPixelDataRange.h deleted file mode 100644 index dba15899..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVPixelDataRange.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVPixelDataRange -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVPixelDataRange -#define _Included_org_lwjgl_opengl_NVPixelDataRange - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVPixelDataRange - * Method: nglPixelDataRangeNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_nglPixelDataRangeNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVPixelDataRange - * Method: glFlushPixelDataRangeNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPixelDataRange_glFlushPixelDataRangeNV - (JNIEnv *, jclass, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVPointSprite.cpp b/src/native/common/nv/org_lwjgl_opengl_NVPointSprite.cpp index 9b299393..64642942 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVPointSprite.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVPointSprite.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVPointSprite // ---------------------------------- -#include "org_lwjgl_opengl_NVPointSprite.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glPointParameterivNVPROC) (GLenum pname, const GLint *p static glPointParameteriNVPROC glPointParameteriNV; static glPointParameterivNVPROC glPointParameterivNV; -void extgl_InitNVPointSprite(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_point_sprite) - return; - glPointParameteriNV = (glPointParameteriNVPROC) extgl_GetProcAddress("glPointParameteriNV"); - glPointParameterivNV = (glPointParameterivNVPROC) extgl_GetProcAddress("glPointParameterivNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_point_sprite) -} - /* * Class: org.lwjgl.opengl.NVPointSprite * Method: glPointParameteriNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_glPointParameteriNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_glPointParameteriNV (JNIEnv * env, jclass clazz, jint pname, jint param) { - CHECK_EXISTS(glPointParameteriNV) glPointParameteriNV(pname, param); CHECK_GL_ERROR } @@ -69,11 +58,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_glPointParameteriNV * Class: org.lwjgl.opengl.NVPointSprite * Method: nglPointParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_nglPointParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_nglPointParameterivNV (JNIEnv * env, jclass clazz, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glPointParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glPointParameterivNV(pname, piParams_ptr); CHECK_GL_ERROR } + +void extgl_InitNVPointSprite(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glPointParameteriNV", "(II)V", (void*)&Java_org_lwjgl_opengl_NVPointSprite_glPointParameteriNV, "glPointParameteriNV", (void**)&glPointParameteriNV}, + {"nglPointParameterivNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVPointSprite_nglPointParameterivNV, "glPointParameterivNV", (void**)&glPointParameterivNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVPointSprite"); + if (extgl_Extensions.GL_NV_point_sprite) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_point_sprite", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVPointSprite.h b/src/native/common/nv/org_lwjgl_opengl_NVPointSprite.h deleted file mode 100644 index 12ce91ca..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVPointSprite.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVPointSprite -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVPointSprite -#define _Included_org_lwjgl_opengl_NVPointSprite - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVPointSprite - * Method: glPointParameteriNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_glPointParameteriNV - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVPointSprite - * Method: nglPointParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPointSprite_nglPointParameterivNV - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.cpp b/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.cpp index 22e69706..d76c03f9 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVPrimitiveRestart // ---------------------------------- -#include "org_lwjgl_opengl_NVPrimitiveRestart.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,25 +43,13 @@ typedef void (APIENTRY * glPrimitiveRestartIndexNVPROC) (GLuint index); static glPrimitiveRestartNVPROC glPrimitiveRestartNV; static glPrimitiveRestartIndexNVPROC glPrimitiveRestartIndexNV; -void extgl_InitNVPrimitiveRestart(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_primitive_restart) - return; - - glPrimitiveRestartNV = (glPrimitiveRestartNVPROC) extgl_GetProcAddress("glPrimitiveRestartNV"); - glPrimitiveRestartIndexNV = (glPrimitiveRestartIndexNVPROC) extgl_GetProcAddress("glPrimitiveRestartIndexNV"); - - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_primitive_restart) -} - /* * Class: org.lwjgl.opengl.NVPrimitiveRestart * Method: glPrimitiveRestartNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glPrimitiveRestartNV) glPrimitiveRestartNV(); CHECK_GL_ERROR } @@ -71,10 +58,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveResta * Class: org.lwjgl.opengl.NVPrimitiveRestart * Method: glPrimitiveRestartIndexNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV (JNIEnv * env, jclass clazz, jint index) { - CHECK_EXISTS(glPrimitiveRestartIndexNV) glPrimitiveRestartIndexNV(index); CHECK_GL_ERROR } + +void extgl_InitNVPrimitiveRestart(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glPrimitiveRestartNV", "()V", (void*)&Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV, "glPrimitiveRestartNV", (void**)&glPrimitiveRestartNV}, + {"glPrimitiveRestartIndexNV", "(I)V", (void*)&Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV, "glPrimitiveRestartIndexNV", (void**)&glPrimitiveRestartIndexNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVPrimitiveRestart"); + if (extgl_Extensions.GL_NV_primitive_restart) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_primitive_restart", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.h b/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.h deleted file mode 100644 index 31c82588..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVPrimitiveRestart.h +++ /dev/null @@ -1,64 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVPrimitiveRestart -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVPrimitiveRestart -#define _Included_org_lwjgl_opengl_NVPrimitiveRestart - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVPrimitiveRestart - * Method: glPrimitiveRestartNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartNV - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.NVPrimitiveRestart - * Method: glPrimitiveRestartIndexNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVPrimitiveRestart_glPrimitiveRestartIndexNV - (JNIEnv *, jclass, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVProgram.cpp b/src/native/common/nv/org_lwjgl_opengl_NVProgram.cpp index 8bd87667..d572cd38 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVProgram.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVProgram.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVProgram // ---------------------------------- -#include "org_lwjgl_opengl_NVProgram.h" #include "extgl.h" #include "checkGLerror.h" @@ -58,30 +57,13 @@ static glAreProgramsResidentNVPROC glAreProgramsResidentNV; static glRequestResidentProgramsNVPROC glRequestResidentProgramsNV; static glGetProgramivNVPROC glGetProgramivNV; -void extgl_InitNVProgram(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_vertex_program) - return; - glLoadProgramNV = (glLoadProgramNVPROC) extgl_GetProcAddress("glLoadProgramNV"); - glBindProgramNV = (glBindProgramNVPROC) extgl_GetProcAddress("glBindProgramNV"); - glDeleteProgramsNV = (glDeleteProgramsNVPROC) extgl_GetProcAddress("glDeleteProgramsNV"); - glGenProgramsNV = (glGenProgramsNVPROC) extgl_GetProcAddress("glGenProgramsNV"); - glGetProgramivNV = (glGetProgramivNVPROC) extgl_GetProcAddress("glGetProgramivNV"); - glGetProgramStringNV = (glGetProgramStringNVPROC) extgl_GetProcAddress("glGetProgramStringNV"); - glIsProgramNV = (glIsProgramNVPROC) extgl_GetProcAddress("glIsProgramNV"); - glAreProgramsResidentNV = (glAreProgramsResidentNVPROC) extgl_GetProcAddress("glAreProgramsResidentNV"); - glRequestResidentProgramsNV = (glRequestResidentProgramsNVPROC) extgl_GetProcAddress("glRequestResidentProgramsNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_vertex_program) -} - /* * Class: org.lwjgl.opengl.NVProgram * Method: nglLoadProgramNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglLoadProgramNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglLoadProgramNV (JNIEnv * env, jclass clazz, jint target, jint programID, jint length, jobject string, jint stringOffset) { - CHECK_EXISTS(glLoadProgramNV) const GLubyte *string_ptr = (const GLubyte *)env->GetDirectBufferAddress(string) + stringOffset; glLoadProgramNV(target, programID, length, string_ptr); CHECK_GL_ERROR @@ -91,10 +73,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglLoadProgramNV * Class: org.lwjgl.opengl.NVProgram * Method: glBindProgramNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_glBindProgramNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_glBindProgramNV (JNIEnv * env, jclass clazz, jint target, jint programID) { - CHECK_EXISTS(glBindProgramNV) glBindProgramNV(target, programID); CHECK_GL_ERROR } @@ -103,10 +84,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_glBindProgramNV * Class: org.lwjgl.opengl.NVProgram * Method: nglDeleteProgramsNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglDeleteProgramsNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglDeleteProgramsNV (JNIEnv * env, jclass clazz, jint n, jobject programs, jint programsOffset) { - CHECK_EXISTS(glDeleteProgramsNV) GLuint *programs_ptr = (GLuint *)env->GetDirectBufferAddress(programs) + programsOffset; glDeleteProgramsNV(n, programs_ptr); CHECK_GL_ERROR @@ -116,10 +96,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglDeleteProgramsNV * Class: org.lwjgl.opengl.NVProgram * Method: nglGenProgramsNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGenProgramsNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGenProgramsNV (JNIEnv * env, jclass clazz, jint n, jobject programs, jint programsOffset) { - CHECK_EXISTS(glGenProgramsNV) GLuint *programs_ptr = (GLuint *)env->GetDirectBufferAddress(programs) + programsOffset; glGenProgramsNV(n, programs_ptr); CHECK_GL_ERROR @@ -129,10 +108,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGenProgramsNV * Class: org.lwjgl.opengl.NVProgram * Method: nglGetProgramivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramivNV (JNIEnv * env, jclass clazz, jint programID, jint parameterName, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetProgramivNV) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetProgramivNV(programID, parameterName, params_ptr); CHECK_GL_ERROR @@ -142,10 +120,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramivNV * Class: org.lwjgl.opengl.NVProgram * Method: nglGetProgramStringNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramStringNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramStringNV (JNIEnv * env, jclass clazz, jint programID, jint parameterName, jobject paramString, jint paramStringOffset) { - CHECK_EXISTS(glGetProgramStringNV) GLubyte *paramString_ptr = (GLubyte *)env->GetDirectBufferAddress(paramString) + paramStringOffset; glGetProgramStringNV(programID, parameterName, paramString_ptr); CHECK_GL_ERROR @@ -155,10 +132,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramStringNV * Class: org.lwjgl.opengl.NVProgram * Method: glIsProgramNV */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_glIsProgramNV +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_glIsProgramNV (JNIEnv * env, jclass clazz, jint programID) { - CHECK_EXISTS(glIsProgramNV) GLboolean result = glIsProgramNV(programID); CHECK_GL_ERROR return result; @@ -168,10 +144,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_glIsProgramNV * Class: org.lwjgl.opengl.NVProgram * Method: nglAreProgramsResidentNV */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglAreProgramsResidentNV +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglAreProgramsResidentNV (JNIEnv * env, jclass clazz, jint n, jobject programIDs, jint programIDsOffset, jobject programResidences, jint programResidencesOffset) { - CHECK_EXISTS(glAreProgramsResidentNV) GLuint *programIDs_ptr = (GLuint *)env->GetDirectBufferAddress(programIDs) + programIDsOffset; GLubyte *programResidences_ptr = (GLubyte *)env->GetDirectBufferAddress(programResidences) + programResidencesOffset; GLboolean result = glAreProgramsResidentNV(n, programIDs_ptr, programResidences_ptr); @@ -183,11 +158,28 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglAreProgramsResiden * Class: org.lwjgl.opengl.NVProgram * Method: nglRequestResidentProgramsNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglRequestResidentProgramsNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglRequestResidentProgramsNV (JNIEnv * env, jclass clazz, jint n, jobject programIDs, jint programIDsOffset) { - CHECK_EXISTS(glRequestResidentProgramsNV) GLuint *programIDs_ptr = (GLuint *)env->GetDirectBufferAddress(programIDs) + programIDsOffset; glRequestResidentProgramsNV(n, programIDs_ptr); CHECK_GL_ERROR } + +void extgl_InitNVProgram(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglLoadProgramNV", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVProgram_nglLoadProgramNV, "glLoadProgramNV", (void**)&glLoadProgramNV}, + {"glBindProgramNV", "(II)V", (void*)&Java_org_lwjgl_opengl_NVProgram_glBindProgramNV, "glBindProgramNV", (void**)&glBindProgramNV}, + {"nglDeleteProgramsNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVProgram_nglDeleteProgramsNV, "glDeleteProgramsNV", (void**)&glDeleteProgramsNV}, + {"nglGenProgramsNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVProgram_nglGenProgramsNV, "glGenProgramsNV", (void**)&glGenProgramsNV}, + {"nglGetProgramivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVProgram_nglGetProgramivNV, "glGetProgramivNV", (void**)&glGetProgramivNV}, + {"nglGetProgramStringNV", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVProgram_nglGetProgramStringNV, "glGetProgramStringNV", (void**)&glGetProgramStringNV}, + {"glIsProgramNV", "(I)Z", (void*)&Java_org_lwjgl_opengl_NVProgram_glIsProgramNV, "glIsProgramNV", (void**)&glIsProgramNV}, + {"nglAreProgramsResidentNV", "(ILjava/nio/IntBuffer;ILjava/nio/ByteBuffer;I)Z", (void*)&Java_org_lwjgl_opengl_NVProgram_nglAreProgramsResidentNV, "glAreProgramsResidentNV", (void**)&glAreProgramsResidentNV}, + {"nglRequestResidentProgramsNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVProgram_nglRequestResidentProgramsNV, "glRequestResidentProgramsNV", (void**)&glRequestResidentProgramsNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVProgram"); + extgl_InitializeClass(env, clazz, NULL, "", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVProgram.h b/src/native/common/nv/org_lwjgl_opengl_NVProgram.h deleted file mode 100644 index 425f9ef6..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVProgram.h +++ /dev/null @@ -1,113 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVProgram -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVProgram -#define _Included_org_lwjgl_opengl_NVProgram - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: nglLoadProgramNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglLoadProgramNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: glBindProgramNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_glBindProgramNV - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: nglDeleteProgramsNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglDeleteProgramsNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: nglGenProgramsNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGenProgramsNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: nglGetProgramivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: nglGetProgramStringNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglGetProgramStringNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: glIsProgramNV - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_glIsProgramNV - (JNIEnv *, jclass, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: nglAreProgramsResidentNV - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_NVProgram_nglAreProgramsResidentNV - (JNIEnv *, jclass, jint, jobject, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVProgram - * Method: nglRequestResidentProgramsNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVProgram_nglRequestResidentProgramsNV - (JNIEnv *, jclass, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners.cpp b/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners.cpp index 482a266f..713d0070 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVRegisterCombiners // ---------------------------------- -#include "org_lwjgl_opengl_NVRegisterCombiners.h" #include "extgl.h" #include "checkGLerror.h" @@ -66,34 +65,13 @@ static glGetCombinerOutputParameterivNVPROC glGetCombinerOutputParameterivNV; static glGetFinalCombinerInputParameterfvNVPROC glGetFinalCombinerInputParameterfvNV; static glGetFinalCombinerInputParameterivNVPROC glGetFinalCombinerInputParameterivNV; -void extgl_InitNVRegisterCombiners(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_register_combiners) - return; - glCombinerParameterfvNV = (glCombinerParameterfvNVPROC) extgl_GetProcAddress("glCombinerParameterfvNV"); - glCombinerParameterfNV = (glCombinerParameterfNVPROC) extgl_GetProcAddress("glCombinerParameterfNV"); - glCombinerParameterivNV = (glCombinerParameterivNVPROC) extgl_GetProcAddress("glCombinerParameterivNV"); - glCombinerParameteriNV = (glCombinerParameteriNVPROC) extgl_GetProcAddress("glCombinerParameteriNV"); - glCombinerInputNV = (glCombinerInputNVPROC) extgl_GetProcAddress("glCombinerInputNV"); - glCombinerOutputNV = (glCombinerOutputNVPROC) extgl_GetProcAddress("glCombinerOutputNV"); - glFinalCombinerInputNV = (glFinalCombinerInputNVPROC) extgl_GetProcAddress("glFinalCombinerInputNV"); - glGetCombinerInputParameterfvNV = (glGetCombinerInputParameterfvNVPROC) extgl_GetProcAddress("glGetCombinerInputParameterfvNV"); - glGetCombinerInputParameterivNV = (glGetCombinerInputParameterivNVPROC) extgl_GetProcAddress("glGetCombinerInputParameterivNV"); - glGetCombinerOutputParameterfvNV = (glGetCombinerOutputParameterfvNVPROC) extgl_GetProcAddress("glGetCombinerOutputParameterfvNV"); - glGetCombinerOutputParameterivNV = (glGetCombinerOutputParameterivNVPROC) extgl_GetProcAddress("glGetCombinerOutputParameterivNV"); - glGetFinalCombinerInputParameterfvNV = (glGetFinalCombinerInputParameterfvNVPROC) extgl_GetProcAddress("glGetFinalCombinerInputParameterfvNV"); - glGetFinalCombinerInputParameterivNV = (glGetFinalCombinerInputParameterivNVPROC) extgl_GetProcAddress("glGetFinalCombinerInputParameterivNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_register_combiners) -} - /* * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: glCombinerParameterfNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameterfNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameterfNV (JNIEnv * env, jclass clazz, jint pname, jfloat param) { - CHECK_EXISTS(glCombinerParameterfNV) glCombinerParameterfNV(pname, param); CHECK_GL_ERROR } @@ -102,10 +80,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParam * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglCombinerParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterfvNV (JNIEnv * env, jclass clazz, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glCombinerParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glCombinerParameterfvNV(pname, pfParams_ptr); CHECK_GL_ERROR @@ -115,10 +92,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerPara * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: glCombinerParameteriNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameteriNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameteriNV (JNIEnv * env, jclass clazz, jint pname, jint param) { - CHECK_EXISTS(glCombinerParameteriNV) glCombinerParameteriNV(pname, param); CHECK_GL_ERROR } @@ -127,10 +103,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParam * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglCombinerParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterivNV (JNIEnv * env, jclass clazz, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glCombinerParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glCombinerParameterivNV(pname, piParams_ptr); CHECK_GL_ERROR @@ -140,10 +115,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerPara * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: glCombinerInputNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerInputNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerInputNV (JNIEnv * env, jclass clazz, jint stage, jint portion, jint variable, jint input, jint mapping, jint componentUsage) { - CHECK_EXISTS(glCombinerInputNV) glCombinerInputNV(stage, portion, variable, input, mapping, componentUsage); CHECK_GL_ERROR } @@ -152,10 +126,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerInput * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: glCombinerOutputNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerOutputNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerOutputNV (JNIEnv * env, jclass clazz, jint stage, jint portion, jint abOutput, jint cdOutput, jint sumOutput, jint scale, jint bias, jboolean abDotProduct, jboolean cdDotProduct, jboolean muxSum) { - CHECK_EXISTS(glCombinerOutputNV) glCombinerOutputNV(stage, portion, abOutput, cdOutput, sumOutput, scale, bias, abDotProduct, cdDotProduct, muxSum); CHECK_GL_ERROR } @@ -164,10 +137,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerOutpu * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: glFinalCombinerInputNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glFinalCombinerInputNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glFinalCombinerInputNV (JNIEnv * env, jclass clazz, jint variable, jint input, jint mapping, jint componentUsage) { - CHECK_EXISTS(glFinalCombinerInputNV) glFinalCombinerInputNV(variable, input, mapping, componentUsage); CHECK_GL_ERROR } @@ -176,10 +148,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glFinalCombiner * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglGetCombinerInputParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterfvNV (JNIEnv * env, jclass clazz, jint stage, jint portion, jint variable, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetCombinerInputParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetCombinerInputParameterfvNV(stage, portion, variable, pname, pfParams_ptr); CHECK_GL_ERROR @@ -189,10 +160,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerI * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglGetCombinerInputParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterivNV (JNIEnv * env, jclass clazz, jint stage, jint portion, jint variable, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetCombinerInputParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetCombinerInputParameterivNV(stage, portion, variable, pname, piParams_ptr); CHECK_GL_ERROR @@ -202,10 +172,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerI * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglGetCombinerOutputParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterfvNV (JNIEnv * env, jclass clazz, jint stage, jint portion, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetCombinerOutputParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetCombinerOutputParameterfvNV(stage, portion, pname, pfParams_ptr); CHECK_GL_ERROR @@ -215,10 +184,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerO * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglGetCombinerOutputParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterivNV (JNIEnv * env, jclass clazz, jint stage, jint portion, jint pname, jobject piParams, jint pfParams_offset) { - CHECK_EXISTS(glGetCombinerOutputParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + pfParams_offset; glGetCombinerOutputParameterivNV(stage, portion, pname, piParams_ptr); CHECK_GL_ERROR @@ -228,10 +196,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerO * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglGetFinalCombinerInputParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterfvNV (JNIEnv * env, jclass clazz, jint variable, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetFinalCombinerInputParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetFinalCombinerInputParameterfvNV(variable, pname, pfParams_ptr); CHECK_GL_ERROR @@ -241,12 +208,33 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalComb * Class: org.lwjgl.opengl.NVRegisterCombiners * Method: nglGetFinalCombinerInputParameterivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterivNV (JNIEnv * env, jclass clazz, jint variable, jint pname, jobject piParams, jint piParams_offset) { - CHECK_EXISTS(glGetFinalCombinerInputParameterivNV) GLint *piParams_ptr = (GLint *)env->GetDirectBufferAddress(piParams) + piParams_offset; glGetFinalCombinerInputParameterivNV(variable, pname, piParams_ptr); CHECK_GL_ERROR } +void extgl_InitNVRegisterCombiners(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glCombinerParameterfNV", "(IF)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameterfNV, "glCombinerParameterfNV", (void**)&glCombinerParameterfNV}, + {"nglCombinerParameterfvNV", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterfvNV, "glCombinerParameterfvNV", (void**)&glCombinerParameterfvNV}, + {"glCombinerParameteriNV", "(II)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameteriNV, "glCombinerParameteriNV", (void**)&glCombinerParameteriNV}, + {"nglCombinerParameterivNV", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterivNV, "glCombinerParameterivNV", (void**)&glCombinerParameterivNV}, + {"glCombinerInputNV", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerInputNV, "glCombinerInputNV", (void**)&glCombinerInputNV}, + {"glCombinerOutputNV", "(IIIIIIIZZZ)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerOutputNV, "glCombinerOutputNV", (void**)&glCombinerOutputNV}, + {"glFinalCombinerInputNV", "(IIII)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_glFinalCombinerInputNV, "glFinalCombinerInputNV", (void**)&glFinalCombinerInputNV}, + {"nglGetCombinerInputParameterfvNV", "(IIIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterfvNV, "glGetCombinerInputParameterfvNV", (void**)&glGetCombinerInputParameterfvNV}, + {"nglGetCombinerInputParameterivNV", "(IIIILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterivNV, "glGetCombinerInputParameterivNV", (void**)&glGetCombinerInputParameterivNV}, + {"nglGetCombinerOutputParameterfvNV", "(IIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterfvNV, "glGetCombinerOutputParameterfvNV", (void**)&glGetCombinerOutputParameterfvNV}, + {"nglGetCombinerOutputParameterivNV", "(IIILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterivNV, "glGetCombinerOutputParameterivNV", (void**)&glGetCombinerOutputParameterivNV}, + {"nglGetFinalCombinerInputParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterfvNV, "glGetFinalCombinerInputParameterfvNV", (void**)&glGetFinalCombinerInputParameterfvNV}, + {"nglGetFinalCombinerInputParameterivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterivNV, "glGetFinalCombinerInputParameterivNV", (void**)&glGetFinalCombinerInputParameterivNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVRegisterCombiners"); + if (extgl_Extensions.GL_NV_register_combiners) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_register_combiners", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners.h b/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners.h deleted file mode 100644 index 8a0a8e13..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners.h +++ /dev/null @@ -1,155 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVRegisterCombiners -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVRegisterCombiners -#define _Included_org_lwjgl_opengl_NVRegisterCombiners - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: glCombinerParameterfNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameterfNV - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglCombinerParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterfvNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: glCombinerParameteriNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerParameteriNV - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglCombinerParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerParameterivNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: glCombinerInputNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerInputNV - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: glCombinerOutputNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glCombinerOutputNV - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jboolean, jboolean, jboolean); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: glFinalCombinerInputNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_glFinalCombinerInputNV - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglGetCombinerInputParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterfvNV - (JNIEnv *, jclass, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglGetCombinerInputParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerInputParameterivNV - (JNIEnv *, jclass, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglGetCombinerOutputParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterfvNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglGetCombinerOutputParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerOutputParameterivNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglGetFinalCombinerInputParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglGetFinalCombinerInputParameterivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetFinalCombinerInputParameterivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglCombinerStageParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglCombinerStageParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVRegisterCombiners - * Method: nglGetCombinerStageParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners_nglGetCombinerStageParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners2.cpp b/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners2.cpp index 7ef0f9c5..02002e48 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners2.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners2.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVRegisterCombiners2 // ---------------------------------- -#include "org_lwjgl_opengl_NVRegisterCombiners2.h" #include "extgl.h" #include "checkGLerror.h" @@ -44,23 +43,13 @@ typedef void (APIENTRY * glGetCombinerStageParameterfvNVPROC) (GLenum stage, GLe static glCombinerStageParameterfvNVPROC glCombinerStageParameterfvNV; static glGetCombinerStageParameterfvNVPROC glGetCombinerStageParameterfvNV; -void extgl_InitNVRegisterCombiners2(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_register_combiners2) - return; - glCombinerStageParameterfvNV = (glCombinerStageParameterfvNVPROC) extgl_GetProcAddress("glCombinerStageParameterfvNV"); - glGetCombinerStageParameterfvNV = (glGetCombinerStageParameterfvNVPROC) extgl_GetProcAddress("glGetCombinerStageParameterfvNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_register_combiners2) -} - /* * Class: org.lwjgl.opengl.NVRegisterCombiners2 * Method: nglCombinerStageParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglCombinerStageParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglCombinerStageParameterfvNV (JNIEnv * env, jclass clazz, jint stage, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glCombinerStageParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glCombinerStageParameterfvNV(stage, pname, pfParams_ptr); CHECK_GL_ERROR @@ -70,11 +59,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglCombinerSta * Class: org.lwjgl.opengl.NVRegisterCombiners2 * Method: nglGetCombinerStageParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglGetCombinerStageParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglGetCombinerStageParameterfvNV (JNIEnv * env, jclass clazz, jint stage, jint pname, jobject pfParams, jint pfParams_offset) { - CHECK_EXISTS(glGetCombinerStageParameterfvNV) GLfloat *pfParams_ptr = (GLfloat *)env->GetDirectBufferAddress(pfParams) + pfParams_offset; glGetCombinerStageParameterfvNV(stage, pname, pfParams_ptr); CHECK_GL_ERROR } + +void extgl_InitNVRegisterCombiners2(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglCombinerStageParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners2_nglCombinerStageParameterfvNV, "glCombinerStageParameterfvNV", (void**)&glCombinerStageParameterfvNV}, + {"nglGetCombinerStageParameterfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVRegisterCombiners2_nglGetCombinerStageParameterfvNV, "glGetCombinerStageParameterfvNV", (void**)&glGetCombinerStageParameterfvNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVRegisterCombiners2"); + if (extgl_Extensions.GL_NV_register_combiners2) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_register_combiners2", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners2.h b/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners2.h deleted file mode 100644 index 19333482..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVRegisterCombiners2.h +++ /dev/null @@ -1,31 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_NVRegisterCombiners2 */ - -#ifndef _Included_org_lwjgl_opengl_NVRegisterCombiners2 -#define _Included_org_lwjgl_opengl_NVRegisterCombiners2 -#ifdef __cplusplus -extern "C" { -#endif -#undef org_lwjgl_opengl_NVRegisterCombiners2_GL_PER_STAGE_CONSTANTS_NV -#define org_lwjgl_opengl_NVRegisterCombiners2_GL_PER_STAGE_CONSTANTS_NV 34101L -/* - * Class: org_lwjgl_opengl_NVRegisterCombiners2 - * Method: nglCombinerStageParameterfvNV - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglCombinerStageParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_NVRegisterCombiners2 - * Method: nglGetCombinerStageParameterfvNV - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVRegisterCombiners2_nglGetCombinerStageParameterfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVVertexArrayRange.cpp b/src/native/common/nv/org_lwjgl_opengl_NVVertexArrayRange.cpp index 59d88926..ba3b38ab 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVVertexArrayRange.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVVertexArrayRange.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVVertexArrayRange // ---------------------------------- -#include "org_lwjgl_opengl_NVVertexArrayRange.h" #include "extgl.h" #include "checkGLerror.h" @@ -64,31 +63,13 @@ static glXFreeMemoryNVPROC glXFreeMemoryNV; #endif /* X11 */ -void extgl_InitNVVertexArrayRange(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_vertex_array_range) - return; - glFlushVertexArrayRangeNV = (glFlushVertexArrayRangeNVPROC) extgl_GetProcAddress("glFlushVertexArrayRangeNV"); - glVertexArrayRangeNV = (glVertexArrayRangeNVPROC) extgl_GetProcAddress("glVertexArrayRangeNV"); -#ifdef _WIN32 - wglAllocateMemoryNV = (wglAllocateMemoryNVPROC) extgl_GetProcAddress("wglAllocateMemoryNV"); - wglFreeMemoryNV = (wglFreeMemoryNVPROC) extgl_GetProcAddress("wglFreeMemoryNV"); -#endif /* WIN32 */ -#ifdef _X11 - glXAllocateMemoryNV = (glXAllocateMemoryNVPROC) extgl_GetProcAddress("glXAllocateMemoryNV"); - glXFreeMemoryNV = (glXFreeMemoryNVPROC) extgl_GetProcAddress("glXFreeMemoryNV"); -#endif /* X11 */ - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_vertex_array_range) -} - /* * Class: org.lwjgl.opengl.NVVertexArrayRange * Method: nglVertexArrayRangeNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRangeNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRangeNV (JNIEnv * env, jclass clazz, jint size, jobject pPointer, jint pPointer_offset) { - CHECK_EXISTS(glVertexArrayRangeNV) GLvoid *pPointer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(pPointer) + pPointer_offset); glVertexArrayRangeNV(size, pPointer_ptr); CHECK_GL_ERROR @@ -98,75 +79,62 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRa * Class: org.lwjgl.opengl.NVVertexArrayRange * Method: glFlushVertexArrayRangeNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glFlushVertexArrayRangeNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glFlushVertexArrayRangeNV (JNIEnv * env, jclass clazz) { - CHECK_EXISTS(glFlushVertexArrayRangeNV) glFlushVertexArrayRangeNV(); CHECK_GL_ERROR } -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: glXAllocateMemoryNV - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glXAllocateMemoryNV +#ifdef _X11 +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glXAllocateMemoryNV (JNIEnv * env, jclass clazz, jint size, jfloat readFrequency, jfloat writeFrequency, jfloat priority) { -#ifdef _X11 - CHECK_EXISTS(glXAllocateMemoryNV) void *mem_address = glXAllocateMemoryNV((GLint) size, (GLfloat)readFrequency, (GLfloat)writeFrequency, (GLfloat)priority); return safeNewBuffer(env, mem_address, size); -#else - CHECK_EXISTS(NULL) - return NULL; -#endif } -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: glXFreeMemoryNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glXFreeMemoryNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glXFreeMemoryNV (JNIEnv * env, jclass clazz, jobject pointer) { -#ifdef _X11 void *address = (void *)env->GetDirectBufferAddress(pointer); glXFreeMemoryNV(address); -#else - CHECK_EXISTS(NULL) -#endif } +#endif -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: wglAllocateMemoryNV - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_wglAllocateMemoryNV +#ifdef _WIN32 +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_wglAllocateMemoryNV (JNIEnv * env, jclass clazz, jint size, jfloat readFrequency, jfloat writeFrequency, jfloat priority) { -#ifdef _WIN32 - CHECK_EXISTS(wglAllocateMemoryNV) void *mem_address = wglAllocateMemoryNV((GLint)size, (GLfloat)readFrequency, (GLfloat)writeFrequency, (GLfloat)priority); return safeNewBuffer(env, mem_address, size); -#else - CHECK_EXISTS(NULL) - return NULL; -#endif } -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: wglFreeMemoryNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_wglFreeMemoryNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_wglFreeMemoryNV (JNIEnv * env, jclass clazz, jobject pointer) { -#ifdef _WIN32 - CHECK_EXISTS(wglFreeMemoryNV) void *address = (void *)env->GetDirectBufferAddress(pointer); wglFreeMemoryNV(address); -#else - CHECK_EXISTS(NULL) -#endif } +#endif + +void extgl_InitNVVertexArrayRange(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglVertexArrayRangeNV", "(ILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRangeNV, "glVertexArrayRangeNV", (void**)&glVertexArrayRangeNV}, + {"glFlushVertexArrayRangeNV", "()V", (void*)&Java_org_lwjgl_opengl_NVVertexArrayRange_glFlushVertexArrayRangeNV, "glFlushVertexArrayRangeNV", (void**)&glFlushVertexArrayRangeNV}, +#ifdef _X11 + {"glXAllocateMemoryNV", "(IFFF)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_NVVertexArrayRange_glXAllocateMemoryNV, "glXAllocateMemoryNV", (void**)&glXAllocateMemoryNV}, + {"glXFreeMemoryNV", "(Ljava/nio/ByteBuffer;)V", (void*)&Java_org_lwjgl_opengl_NVVertexArrayRange_glXFreeMemoryNV, "glXFreeMemoryNV", (void**)&glXFreeMemoryNV}, +#endif +#ifdef WIN32 + {"wglAllocateMemoryNV", "(IFFF)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_NVVertexArrayRange_wglAllocateMemoryNV, "wglAllocateMemoryNV", (void**)&wglAllocateMemoryNV}, + {"wglFreeMemoryNV", "(Ljava/nio/ByteBuffer;)V", (void*)&Java_org_lwjgl_opengl_NVVertexArrayRange_wglFreeMemoryNV, "wglFreeMemoryNV", (void**)&wglFreeMemoryNV} +#endif + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVVertexArrayRange"); + if (extgl_Extensions.GL_NV_vertex_array_range) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_vertex_array_range", num_functions, functions); +} + diff --git a/src/native/common/nv/org_lwjgl_opengl_NVVertexArrayRange.h b/src/native/common/nv/org_lwjgl_opengl_NVVertexArrayRange.h deleted file mode 100644 index be05006b..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVVertexArrayRange.h +++ /dev/null @@ -1,92 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVVertexArrayRange -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVVertexArrayRange -#define _Included_org_lwjgl_opengl_NVVertexArrayRange - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: nglVertexArrayRangeNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_nglVertexArrayRangeNV - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: glFlushVertexArrayRangeNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glFlushVertexArrayRangeNV - (JNIEnv *, jclass); - -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: glXAllocateMemoryNV - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glXAllocateMemoryNV - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: glXFreeMemoryNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_glXFreeMemoryNV - (JNIEnv *, jclass, jobject); - -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: wglAllocateMemoryNV - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_wglAllocateMemoryNV - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.NVVertexArrayRange - * Method: wglFreeMemoryNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexArrayRange_wglFreeMemoryNV - (JNIEnv *, jclass, jobject); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/nv/org_lwjgl_opengl_NVVertexProgram.cpp b/src/native/common/nv/org_lwjgl_opengl_NVVertexProgram.cpp index 4edad525..66ed7562 100644 --- a/src/native/common/nv/org_lwjgl_opengl_NVVertexProgram.cpp +++ b/src/native/common/nv/org_lwjgl_opengl_NVVertexProgram.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.NVVertexProgram // ---------------------------------- -#include "org_lwjgl_opengl_NVVertexProgram.h" #include "extgl.h" #include "checkGLerror.h" @@ -45,7 +44,6 @@ typedef void (APIENTRY * glGetVertexAttribfvNVPROC) (GLuint index, GLenum pname, typedef void (APIENTRY * glGetVertexAttribivNVPROC) (GLuint index, GLenum pname, GLint *params); typedef void (APIENTRY * glGetVertexAttribPointervNVPROC) (GLuint index, GLenum pname, GLvoid **pointer); typedef void (APIENTRY * glProgramParameter4fNVPROC) (GLenum target, GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * glProgramParameter4fvNVPROC) (GLenum target, GLuint index, const GLfloat *params); typedef void (APIENTRY * glProgramParameters4fvNVPROC) (GLenum target, GLuint index, GLuint num, const GLfloat *params); typedef void (APIENTRY * glTrackMatrixNVPROC) (GLenum target, GLuint address, GLenum matrix, GLenum transform); typedef void (APIENTRY * glVertexAttribPointerNVPROC) (GLuint index, GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); @@ -58,15 +56,6 @@ typedef void (APIENTRY * glVertexAttrib3fNVPROC) (GLuint index, GLfloat x, GLflo typedef void (APIENTRY * glVertexAttrib4sNVPROC) (GLuint index, GLshort x, GLshort y, GLshort z, GLshort w); typedef void (APIENTRY * glVertexAttrib4fNVPROC) (GLuint index, GLfloat x, GLfloat y, GLfloat z, GLfloat w); typedef void (APIENTRY * glVertexAttrib4ubNVPROC) (GLuint index, GLubyte x, GLubyte y, GLubyte z, GLubyte w); -typedef void (APIENTRY * glVertexAttrib1svNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib1fvNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib2svNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib2fvNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib3svNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib3fvNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib4svNVPROC) (GLuint index, const GLshort *v); -typedef void (APIENTRY * glVertexAttrib4fvNVPROC) (GLuint index, const GLfloat *v); -typedef void (APIENTRY * glVertexAttrib4ubvNVPROC) (GLuint index, const GLubyte *v); typedef void (APIENTRY * glVertexAttribs1svNVPROC) (GLuint index, GLsizei n, const GLshort *v); typedef void (APIENTRY * glVertexAttribs1fvNVPROC) (GLuint index, GLsizei n, const GLfloat *v); typedef void (APIENTRY * glVertexAttribs2svNVPROC) (GLuint index, GLsizei n, const GLshort *v); @@ -84,7 +73,6 @@ static glGetVertexAttribfvNVPROC glGetVertexAttribfvNV; static glGetVertexAttribivNVPROC glGetVertexAttribivNV; static glGetVertexAttribPointervNVPROC glGetVertexAttribPointervNV; static glProgramParameter4fNVPROC glProgramParameter4fNV; -static glProgramParameter4fvNVPROC glProgramParameter4fvNV; static glProgramParameters4fvNVPROC glProgramParameters4fvNV; static glTrackMatrixNVPROC glTrackMatrixNV; static glVertexAttribPointerNVPROC glVertexAttribPointerNV; @@ -97,15 +85,6 @@ static glVertexAttrib3fNVPROC glVertexAttrib3fNV; static glVertexAttrib4sNVPROC glVertexAttrib4sNV; static glVertexAttrib4fNVPROC glVertexAttrib4fNV; static glVertexAttrib4ubNVPROC glVertexAttrib4ubNV; -static glVertexAttrib1svNVPROC glVertexAttrib1svNV; -static glVertexAttrib1fvNVPROC glVertexAttrib1fvNV; -static glVertexAttrib2svNVPROC glVertexAttrib2svNV; -static glVertexAttrib2fvNVPROC glVertexAttrib2fvNV; -static glVertexAttrib3svNVPROC glVertexAttrib3svNV; -static glVertexAttrib3fvNVPROC glVertexAttrib3fvNV; -static glVertexAttrib4svNVPROC glVertexAttrib4svNV; -static glVertexAttrib4fvNVPROC glVertexAttrib4fvNV; -static glVertexAttrib4ubvNVPROC glVertexAttrib4ubvNV; static glVertexAttribs1svNVPROC glVertexAttribs1svNV; static glVertexAttribs1fvNVPROC glVertexAttribs1fvNV; static glVertexAttribs2svNVPROC glVertexAttribs2svNV; @@ -116,59 +95,13 @@ static glVertexAttribs4svNVPROC glVertexAttribs4svNV; static glVertexAttribs4fvNVPROC glVertexAttribs4fvNV; static glVertexAttribs4ubvNVPROC glVertexAttribs4ubvNV; -void extgl_InitNVVertexProgram(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.GL_NV_vertex_program) - return; - glExecuteProgramNV = (glExecuteProgramNVPROC) extgl_GetProcAddress("glExecuteProgramNV"); - glGetProgramParameterfvNV = (glGetProgramParameterfvNVPROC) extgl_GetProcAddress("glGetProgramParameterfvNV"); - glGetTrackMatrixivNV = (glGetTrackMatrixivNVPROC) extgl_GetProcAddress("glGetTrackMatrixivNV"); - glGetVertexAttribfvNV = (glGetVertexAttribfvNVPROC) extgl_GetProcAddress("glGetVertexAttribfvNV"); - glGetVertexAttribivNV = (glGetVertexAttribivNVPROC) extgl_GetProcAddress("glGetVertexAttribivNV"); - glGetVertexAttribPointervNV = (glGetVertexAttribPointervNVPROC) extgl_GetProcAddress("glGetVertexAttribPointervNV"); - glProgramParameter4fNV = (glProgramParameter4fNVPROC) extgl_GetProcAddress("glProgramParameter4fNV"); - glProgramParameter4fvNV = (glProgramParameter4fvNVPROC) extgl_GetProcAddress("glProgramParameter4fvNV"); - glProgramParameters4fvNV = (glProgramParameters4fvNVPROC) extgl_GetProcAddress("glProgramParameters4fvNV"); - glTrackMatrixNV = (glTrackMatrixNVPROC) extgl_GetProcAddress("glTrackMatrixNV"); - glVertexAttribPointerNV = (glVertexAttribPointerNVPROC) extgl_GetProcAddress("glVertexAttribPointerNV"); - glVertexAttrib1sNV = (glVertexAttrib1sNVPROC) extgl_GetProcAddress("glVertexAttrib1sNV"); - glVertexAttrib1fNV = (glVertexAttrib1fNVPROC) extgl_GetProcAddress("glVertexAttrib1fNV"); - glVertexAttrib2sNV = (glVertexAttrib2sNVPROC) extgl_GetProcAddress("glVertexAttrib2sNV"); - glVertexAttrib2fNV = (glVertexAttrib2fNVPROC) extgl_GetProcAddress("glVertexAttrib2fNV"); - glVertexAttrib3sNV = (glVertexAttrib3sNVPROC) extgl_GetProcAddress("glVertexAttrib3sNV"); - glVertexAttrib3fNV = (glVertexAttrib3fNVPROC) extgl_GetProcAddress("glVertexAttrib3fNV"); - glVertexAttrib4sNV = (glVertexAttrib4sNVPROC) extgl_GetProcAddress("glVertexAttrib4sNV"); - glVertexAttrib4fNV = (glVertexAttrib4fNVPROC) extgl_GetProcAddress("glVertexAttrib4fNV"); - glVertexAttrib4ubNV = (glVertexAttrib4ubNVPROC) extgl_GetProcAddress("glVertexAttrib4ubNV"); - glVertexAttrib1svNV = (glVertexAttrib1svNVPROC) extgl_GetProcAddress("glVertexAttrib1svNV"); - glVertexAttrib1fvNV = (glVertexAttrib1fvNVPROC) extgl_GetProcAddress("glVertexAttrib1fvNV"); - glVertexAttrib2svNV = (glVertexAttrib2svNVPROC) extgl_GetProcAddress("glVertexAttrib2svNV"); - glVertexAttrib2fvNV = (glVertexAttrib2fvNVPROC) extgl_GetProcAddress("glVertexAttrib2fvNV"); - glVertexAttrib3svNV = (glVertexAttrib3svNVPROC) extgl_GetProcAddress("glVertexAttrib3svNV"); - glVertexAttrib3fvNV = (glVertexAttrib3fvNVPROC) extgl_GetProcAddress("glVertexAttrib3fvNV"); - glVertexAttrib4svNV = (glVertexAttrib4svNVPROC) extgl_GetProcAddress("glVertexAttrib4svNV"); - glVertexAttrib4fvNV = (glVertexAttrib4fvNVPROC) extgl_GetProcAddress("glVertexAttrib4fvNV"); - glVertexAttrib4ubvNV = (glVertexAttrib4ubvNVPROC) extgl_GetProcAddress("glVertexAttrib4ubvNV"); - glVertexAttribs1svNV = (glVertexAttribs1svNVPROC) extgl_GetProcAddress("glVertexAttribs1svNV"); - glVertexAttribs1fvNV = (glVertexAttribs1fvNVPROC) extgl_GetProcAddress("glVertexAttribs1fvNV"); - glVertexAttribs2svNV = (glVertexAttribs2svNVPROC) extgl_GetProcAddress("glVertexAttribs2svNV"); - glVertexAttribs2fvNV = (glVertexAttribs2fvNVPROC) extgl_GetProcAddress("glVertexAttribs2fvNV"); - glVertexAttribs3svNV = (glVertexAttribs3svNVPROC) extgl_GetProcAddress("glVertexAttribs3svNV"); - glVertexAttribs3fvNV = (glVertexAttribs3fvNVPROC) extgl_GetProcAddress("glVertexAttribs3fvNV"); - glVertexAttribs4svNV = (glVertexAttribs4svNVPROC) extgl_GetProcAddress("glVertexAttribs4svNV"); - glVertexAttribs4fvNV = (glVertexAttribs4fvNVPROC) extgl_GetProcAddress("glVertexAttribs4fvNV"); - glVertexAttribs4ubvNV = (glVertexAttribs4ubvNVPROC) extgl_GetProcAddress("glVertexAttribs4ubvNV"); - EXTGL_SANITY_CHECK(env, ext_set, GL_NV_vertex_program) -} - /* * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglExecuteProgramNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglExecuteProgramNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglExecuteProgramNV (JNIEnv * env, jclass clazz, jint target, jint id, jobject params, jint paramsOffset) { - CHECK_EXISTS(glExecuteProgramNV) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glExecuteProgramNV(target, id, params_ptr); CHECK_GL_ERROR @@ -178,10 +111,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglExecuteProgramNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglGetProgramParameterfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetProgramParameterfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetProgramParameterfvNV (JNIEnv * env, jclass clazz, jint target, jint index, jint parameterName, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetProgramParameterfvNV) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetProgramParameterfvNV(target, index, parameterName, params_ptr); CHECK_GL_ERROR @@ -191,10 +123,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetProgramParame * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglGetTrackMatrixivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetTrackMatrixivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetTrackMatrixivNV (JNIEnv * env, jclass clazz, jint target, jint address, jint parameterName, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetTrackMatrixivNV) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetTrackMatrixivNV(target, address, parameterName, params_ptr); CHECK_GL_ERROR @@ -204,10 +135,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetTrackMatrixiv * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglGetVertexAttribfvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribfvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribfvNV (JNIEnv * env, jclass clazz, jint index, jint parameterName, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetVertexAttribfvNV) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glGetVertexAttribfvNV(index, parameterName, params_ptr); CHECK_GL_ERROR @@ -217,10 +147,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribf * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglGetVertexAttribivNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribivNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribivNV (JNIEnv * env, jclass clazz, jint index, jint parameterName, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetVertexAttribivNV) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetVertexAttribivNV(index, parameterName, params_ptr); CHECK_GL_ERROR @@ -230,10 +159,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribi * Class: org.lwjgl.opengl.NVVertexProgram * Method: glGetVertexAttribPointerNV */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glGetVertexAttribPointerNV +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glGetVertexAttribPointerNV (JNIEnv * env, jclass clazz, jint index, jint parameterName, jint size) { - CHECK_EXISTS(glGetVertexAttribPointervNV) void *address; glGetVertexAttribPointervNV((GLuint)index, (GLuint)parameterName, &address); CHECK_GL_ERROR @@ -244,10 +172,9 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glGetVertexAttri * Class: org.lwjgl.opengl.NVVertexProgram * Method: glProgramParameter4fNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glProgramParameter4fNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glProgramParameter4fNV (JNIEnv * env, jclass clazz, jint target, jint index, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glProgramParameter4fNV) glProgramParameter4fNV(target, index, x, y, z, w); CHECK_GL_ERROR } @@ -256,10 +183,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glProgramParameter4 * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglProgramParameters4fvNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameters4fvNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameters4fvNV (JNIEnv * env, jclass clazz, jint target, jint index, jint count, jobject params, jint paramsOffset) { - CHECK_EXISTS(glProgramParameters4fvNV) GLfloat *params_ptr = (GLfloat *)env->GetDirectBufferAddress(params) + paramsOffset; glProgramParameters4fvNV(target, index, count, params_ptr); CHECK_GL_ERROR @@ -269,10 +195,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameter * Class: org.lwjgl.opengl.NVVertexProgram * Method: glTrackMatrixNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glTrackMatrixNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glTrackMatrixNV (JNIEnv * env, jclass clazz, jint target, jint address, jint matrix, jint transform) { - CHECK_EXISTS(glTrackMatrixNV) glTrackMatrixNV(target, address, matrix, transform); CHECK_GL_ERROR } @@ -281,10 +206,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glTrackMatrixNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglVertexAttribPointerNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNV (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jint stride, jobject buffer, jint bufferOffset) { - CHECK_EXISTS(glVertexAttribPointerNV) GLvoid *buffer_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(buffer) + bufferOffset); glVertexAttribPointerNV(index, size, type, stride, buffer_ptr); CHECK_GL_ERROR @@ -294,10 +218,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPoin * Class: org.lwjgl.opengl.NVVertexProgram * Method: nglVertexAttribPointerNVVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNVVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNVVBO (JNIEnv * env, jclass clazz, jint index, jint size, jint type, jint stride, jint bufferOffset) { - CHECK_EXISTS(glVertexAttribPointerNV) glVertexAttribPointerNV(index, size, type, stride, (GLvoid *)bufferOffset); CHECK_GL_ERROR } @@ -306,10 +229,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPoin * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib1sNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1sNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1sNV (JNIEnv * env, jclass clazz, jint index, jshort x) { - CHECK_EXISTS(glVertexAttrib1sNV) glVertexAttrib1sNV(index, x); CHECK_GL_ERROR } @@ -318,10 +240,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1sNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib1fNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1fNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1fNV (JNIEnv * env, jclass clazz, jint index, jfloat x) { - CHECK_EXISTS(glVertexAttrib1fNV) glVertexAttrib1fNV(index, x); CHECK_GL_ERROR } @@ -330,10 +251,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1fNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib2sNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2sNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2sNV (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y) { - CHECK_EXISTS(glVertexAttrib2sNV) glVertexAttrib2sNV(index, x, y); CHECK_GL_ERROR } @@ -342,10 +262,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2sNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib2fNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2fNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2fNV (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y) { - CHECK_EXISTS(glVertexAttrib2fNV) glVertexAttrib2fNV(index, x, y); CHECK_GL_ERROR } @@ -354,10 +273,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2fNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib3sNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3sNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3sNV (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z) { - CHECK_EXISTS(glVertexAttrib3sNV) glVertexAttrib3sNV(index, x, y, z); CHECK_GL_ERROR } @@ -366,10 +284,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3sNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib3fNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3fNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3fNV (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z) { - CHECK_EXISTS(glVertexAttrib3fNV) glVertexAttrib3fNV(index, x, y, z); CHECK_GL_ERROR } @@ -378,10 +295,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3fNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib4sNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4sNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4sNV (JNIEnv * env, jclass clazz, jint index, jshort x, jshort y, jshort z, jshort w) { - CHECK_EXISTS(glVertexAttrib4sNV) glVertexAttrib4sNV(index, x, y, z, w); CHECK_GL_ERROR } @@ -390,10 +306,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4sNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib4fNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4fNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4fNV (JNIEnv * env, jclass clazz, jint index, jfloat x, jfloat y, jfloat z, jfloat w) { - CHECK_EXISTS(glVertexAttrib4fNV) glVertexAttrib4fNV(index, x, y, z, w); CHECK_GL_ERROR } @@ -402,10 +317,120 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4fNV * Class: org.lwjgl.opengl.NVVertexProgram * Method: glVertexAttrib4ubNV */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4ubNV +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4ubNV (JNIEnv * env, jclass clazz, jint index, jbyte x, jbyte y, jbyte z, jbyte w) { - CHECK_EXISTS(glVertexAttrib4ubNV) glVertexAttrib4ubNV(index, x, y, z, w); CHECK_GL_ERROR } + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1svNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLshort *v_ptr = (GLshort *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs1svNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1fvNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLfloat *v_ptr = (GLfloat *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs1fvNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2svNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLshort *v_ptr = (GLshort *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs2svNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2fvNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLfloat *v_ptr = (GLfloat *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs2fvNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3svNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLshort *v_ptr = (GLshort *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs3svNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3fvNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLfloat *v_ptr = (GLfloat *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs3fvNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4svNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLshort *v_ptr = (GLshort *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs4svNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4fvNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLfloat *v_ptr = (GLfloat *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs4fvNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4ubvNV + (JNIEnv * env, jclass clazz, jint index, jint n, jobject v, jint v_offset) +{ + GLubyte *v_ptr = (GLubyte *)env->GetDirectBufferAddress(v) + v_offset; + glVertexAttribs4ubvNV(index, n, v_ptr); + CHECK_GL_ERROR +} + +void extgl_InitNVVertexProgram(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglExecuteProgramNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglExecuteProgramNV, "glExecuteProgramNV", (void**)&glExecuteProgramNV}, + {"nglGetProgramParameterfvNV", "(IIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglGetProgramParameterfvNV, "glGetProgramParameterfvNV", (void**)&glGetProgramParameterfvNV}, + {"nglGetTrackMatrixivNV", "(IIILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglGetTrackMatrixivNV, "glGetTrackMatrixivNV", (void**)&glGetTrackMatrixivNV}, + {"nglGetVertexAttribfvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribfvNV, "glGetVertexAttribfvNV", (void**)&glGetVertexAttribfvNV}, + {"nglGetVertexAttribivNV", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribivNV, "glGetVertexAttribivNV", (void**)&glGetVertexAttribivNV}, + {"glGetVertexAttribPointerNV", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glGetVertexAttribPointerNV, "glGetVertexAttribPointervNV", (void**)&glGetVertexAttribPointervNV}, + {"glProgramParameter4fNV", "(IIFFFF)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glProgramParameter4fNV, "glProgramParameter4fNV", (void**)&glProgramParameter4fNV}, + {"nglProgramParameters4fvNV", "(IIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameters4fvNV, "glProgramParameters4fvNV", (void**)&glProgramParameters4fvNV}, + {"glTrackMatrixNV", "(IIII)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glTrackMatrixNV, "glTrackMatrixNV", (void**)&glTrackMatrixNV}, + {"nglVertexAttribPointerNV", "(IIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNV, "glVertexAttribPointerNV", (void**)&glVertexAttribPointerNV}, + {"nglVertexAttribPointerNVVBO", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNVVBO, NULL, NULL}, + {"glVertexAttrib1sNV", "(IS)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1sNV, "glVertexAttrib1sNV", (void**)&glVertexAttrib1sNV}, + {"glVertexAttrib1fNV", "(IF)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1fNV, "glVertexAttrib1fNV", (void**)&glVertexAttrib1fNV}, + {"glVertexAttrib2sNV", "(ISS)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2sNV, "glVertexAttrib2sNV", (void**)&glVertexAttrib2sNV}, + {"glVertexAttrib2fNV", "(IFF)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2fNV, "glVertexAttrib2fNV", (void**)&glVertexAttrib2fNV}, + {"glVertexAttrib3sNV", "(ISSS)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3sNV, "glVertexAttrib3sNV", (void**)&glVertexAttrib3sNV}, + {"glVertexAttrib3fNV", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3fNV, "glVertexAttrib3fNV", (void**)&glVertexAttrib3fNV}, + {"glVertexAttrib4sNV", "(ISSSS)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4sNV, "glVertexAttrib4sNV", (void**)&glVertexAttrib4sNV}, + {"glVertexAttrib4fNV", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4fNV, "glVertexAttrib4fNV", (void**)&glVertexAttrib4fNV}, + {"glVertexAttrib4ubNV", "(IBBBB)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4ubNV, "glVertexAttrib4ubNV", (void**)&glVertexAttrib4ubNV}, + {"nglVertexAttribs1svNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1svNV, "glVertexAttribs1svNV", (void**)&glVertexAttribs1svNV}, + {"nglVertexAttribs1fvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs1fvNV, "glVertexAttribs1fvNV", (void**)&glVertexAttribs1fvNV}, + {"nglVertexAttribs2svNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2svNV, "glVertexAttribs2svNV", (void**)&glVertexAttribs2svNV}, + {"nglVertexAttribs2fvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs2fvNV, "glVertexAttribs2fvNV", (void**)&glVertexAttribs2fvNV}, + {"nglVertexAttribs3svNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3svNV, "glVertexAttribs3svNV", (void**)&glVertexAttribs3svNV}, + {"nglVertexAttribs3fvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs3fvNV, "glVertexAttribs3fvNV", (void**)&glVertexAttribs3fvNV}, + {"nglVertexAttribs4svNV", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4svNV, "glVertexAttribs4svNV", (void**)&glVertexAttribs4svNV}, + {"nglVertexAttribs4fvNV", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4fvNV, "glVertexAttribs4fvNV", (void**)&glVertexAttribs4fvNV}, + {"nglVertexAttribs4ubvNV", "(IILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribs4ubvNV, "glVertexAttribs4ubvNV", (void**)&glVertexAttribs4ubvNV} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/NVVertexProgram"); + if (extgl_Extensions.GL_NV_vertex_program) + extgl_InitializeClass(env, clazz, ext_set, "GL_NV_vertex_program", num_functions, functions); +} diff --git a/src/native/common/nv/org_lwjgl_opengl_NVVertexProgram.h b/src/native/common/nv/org_lwjgl_opengl_NVVertexProgram.h deleted file mode 100644 index f78a1e0e..00000000 --- a/src/native/common/nv/org_lwjgl_opengl_NVVertexProgram.h +++ /dev/null @@ -1,190 +0,0 @@ -/* -* Copyright (c) 2002 Lightweight Java Game Library Project -* All rights reserved. -* -* Redistribution and use in source and binary forms, with or without -* modification, are permitted provided that the following conditions are -* met: -* -* * Redistributions of source code must retain the above copyright -* notice, this list of conditions and the following disclaimer. -* -* * Redistributions in binary form must reproduce the above copyright -* notice, this list of conditions and the following disclaimer in the -* documentation and/or other materials provided with the distribution. -* -* * Neither the name of 'Light Weight Java Game Library' nor the names of -* its contributors may be used to endorse or promote products derived -* from this software without specific prior written permission. -* -* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR -* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, -* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, -* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -*/ - -// ---------------------------------- -// MACHINE GENERATED HEADER OF CLASS: org.lwjgl.opengl.NVVertexProgram -// ---------------------------------- - -#include - -#ifndef _Included_org_lwjgl_opengl_NVVertexProgram -#define _Included_org_lwjgl_opengl_NVVertexProgram - -#ifdef __cplusplus -extern "C" { -#endif - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglExecuteProgramNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglExecuteProgramNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglGetProgramParameterfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetProgramParameterfvNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglGetTrackMatrixivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetTrackMatrixivNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglGetVertexAttribfvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribfvNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglGetVertexAttribivNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglGetVertexAttribivNV - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glGetVertexAttribPointerNV - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glGetVertexAttribPointerNV - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glProgramParameter4fNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glProgramParameter4fNV - (JNIEnv *, jclass, jint, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglProgramParameters4fvNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglProgramParameters4fvNV - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glTrackMatrixNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glTrackMatrixNV - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglVertexAttribPointerNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNV - (JNIEnv *, jclass, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: nglVertexAttribPointerNVVBO - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_nglVertexAttribPointerNVVBO - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib1sNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1sNV - (JNIEnv *, jclass, jint, jshort); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib1fNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib1fNV - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib2sNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2sNV - (JNIEnv *, jclass, jint, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib2fNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib2fNV - (JNIEnv *, jclass, jint, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib3sNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3sNV - (JNIEnv *, jclass, jint, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib3fNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib3fNV - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib4sNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4sNV - (JNIEnv *, jclass, jint, jshort, jshort, jshort, jshort); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib4fNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4fNV - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org.lwjgl.opengl.NVVertexProgram - * Method: glVertexAttrib4ubNV - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVVertexProgram_glVertexAttrib4ubNV - (JNIEnv *, jclass, jint, jbyte, jbyte, jbyte, jbyte); - -#ifdef __cplusplus -} -#endif - -#endif diff --git a/src/native/common/org_lwjgl_opengl_GL11.cpp b/src/native/common/org_lwjgl_opengl_GL11.cpp index 056a3db9..7d8a6bbb 100644 --- a/src/native/common/org_lwjgl_opengl_GL11.cpp +++ b/src/native/common/org_lwjgl_opengl_GL11.cpp @@ -39,13 +39,12 @@ * @version $Revision$ */ -#include "org_lwjgl_opengl_GL11.h" #include "checkGLerror.h" #include "extgl.h" typedef void (APIENTRY * glAccumPROC) (GLenum op, GLfloat value); typedef void (APIENTRY * glAlphaFuncPROC) (GLenum func, GLclampf ref); -typedef GLboolean (APIENTRY * glAreTexturesResidentPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); +//typedef GLboolean (APIENTRY * glAreTexturesResidentPROC) (GLsizei n, const GLuint *textures, GLboolean *residences); typedef void (APIENTRY * glArrayElementPROC) (GLint i); typedef void (APIENTRY * glBeginPROC) (GLenum mode); typedef void (APIENTRY * glBindTexturePROC) (GLenum target, GLuint texture); @@ -61,37 +60,11 @@ typedef void (APIENTRY * glClearIndexPROC) (GLfloat c); typedef void (APIENTRY * glClearStencilPROC) (GLint s); typedef void (APIENTRY * glClipPlanePROC) (GLenum plane, const GLdouble *equation); typedef void (APIENTRY * glColor3bPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRY * glColor3bvPROC) (const GLbyte *v); -typedef void (APIENTRY * glColor3dPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (APIENTRY * glColor3dvPROC) (const GLdouble *v); typedef void (APIENTRY * glColor3fPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRY * glColor3fvPROC) (const GLfloat *v); -typedef void (APIENTRY * glColor3iPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRY * glColor3ivPROC) (const GLint *v); -typedef void (APIENTRY * glColor3sPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (APIENTRY * glColor3svPROC) (const GLshort *v); typedef void (APIENTRY * glColor3ubPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRY * glColor3ubvPROC) (const GLubyte *v); -typedef void (APIENTRY * glColor3uiPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRY * glColor3uivPROC) (const GLuint *v); -typedef void (APIENTRY * glColor3usPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (APIENTRY * glColor3usvPROC) (const GLushort *v); typedef void (APIENTRY * glColor4bPROC) (GLbyte red, GLbyte green, GLbyte blue, GLbyte alpha); -typedef void (APIENTRY * glColor4bvPROC) (const GLbyte *v); -typedef void (APIENTRY * glColor4dPROC) (GLdouble red, GLdouble green, GLdouble blue, GLdouble alpha); -typedef void (APIENTRY * glColor4dvPROC) (const GLdouble *v); typedef void (APIENTRY * glColor4fPROC) (GLfloat red, GLfloat green, GLfloat blue, GLfloat alpha); -typedef void (APIENTRY * glColor4fvPROC) (const GLfloat *v); -typedef void (APIENTRY * glColor4iPROC) (GLint red, GLint green, GLint blue, GLint alpha); -typedef void (APIENTRY * glColor4ivPROC) (const GLint *v); -typedef void (APIENTRY * glColor4sPROC) (GLshort red, GLshort green, GLshort blue, GLshort alpha); -typedef void (APIENTRY * glColor4svPROC) (const GLshort *v); typedef void (APIENTRY * glColor4ubPROC) (GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha); -typedef void (APIENTRY * glColor4ubvPROC) (const GLubyte *v); -typedef void (APIENTRY * glColor4uiPROC) (GLuint red, GLuint green, GLuint blue, GLuint alpha); -typedef void (APIENTRY * glColor4uivPROC) (const GLuint *v); -typedef void (APIENTRY * glColor4usPROC) (GLushort red, GLushort green, GLushort blue, GLushort alpha); -typedef void (APIENTRY * glColor4usvPROC) (const GLushort *v); typedef void (APIENTRY * glColorMaskPROC) (GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha); typedef void (APIENTRY * glColorMaterialPROC) (GLenum face, GLenum mode); typedef void (APIENTRY * glColorPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); @@ -114,19 +87,12 @@ typedef void (APIENTRY * glDrawElementsPROC) (GLenum mode, GLsizei count, GLenum typedef void (APIENTRY * glDrawPixelsPROC) (GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRY * glEdgeFlagPROC) (GLboolean flag); typedef void (APIENTRY * glEdgeFlagPointerPROC) (GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRY * glEdgeFlagvPROC) (const GLboolean *flag); typedef void (APIENTRY * glEnablePROC) (GLenum cap); typedef void (APIENTRY * glEnableClientStatePROC) (GLenum array); typedef void (APIENTRY * glEndPROC) (void); typedef void (APIENTRY * glEndListPROC) (void); -typedef void (APIENTRY * glEvalCoord1dPROC) (GLdouble u); -typedef void (APIENTRY * glEvalCoord1dvPROC) (const GLdouble *u); typedef void (APIENTRY * glEvalCoord1fPROC) (GLfloat u); -typedef void (APIENTRY * glEvalCoord1fvPROC) (const GLfloat *u); -typedef void (APIENTRY * glEvalCoord2dPROC) (GLdouble u, GLdouble v); -typedef void (APIENTRY * glEvalCoord2dvPROC) (const GLdouble *u); typedef void (APIENTRY * glEvalCoord2fPROC) (GLfloat u, GLfloat v); -typedef void (APIENTRY * glEvalCoord2fvPROC) (const GLfloat *u); typedef void (APIENTRY * glEvalMesh1PROC) (GLenum mode, GLint i1, GLint i2); typedef void (APIENTRY * glEvalMesh2PROC) (GLenum mode, GLint i1, GLint i2, GLint j1, GLint j2); typedef void (APIENTRY * glEvalPoint1PROC) (GLint i); @@ -150,7 +116,6 @@ typedef void (APIENTRY * glGetFloatvPROC) (GLenum pname, GLfloat *params); typedef void (APIENTRY * glGetIntegervPROC) (GLenum pname, GLint *params); typedef void (APIENTRY * glGetLightfvPROC) (GLenum light, GLenum pname, GLfloat *params); typedef void (APIENTRY * glGetLightivPROC) (GLenum light, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetMapdvPROC) (GLenum target, GLenum query, GLdouble *v); typedef void (APIENTRY * glGetMapfvPROC) (GLenum target, GLenum query, GLfloat *v); typedef void (APIENTRY * glGetMapivPROC) (GLenum target, GLenum query, GLint *v); typedef void (APIENTRY * glGetMaterialfvPROC) (GLenum face, GLenum pname, GLfloat *params); @@ -163,7 +128,6 @@ typedef void (APIENTRY * glGetPolygonStipplePROC) (GLubyte *mask); //typedef const GLubyte * (APIENTRY * glGetStringPROC) (GLenum name); typedef void (APIENTRY * glGetTexEnvfvPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRY * glGetTexEnvivPROC) (GLenum target, GLenum pname, GLint *params); -typedef void (APIENTRY * glGetTexGendvPROC) (GLenum coord, GLenum pname, GLdouble *params); typedef void (APIENTRY * glGetTexGenfvPROC) (GLenum coord, GLenum pname, GLfloat *params); typedef void (APIENTRY * glGetTexGenivPROC) (GLenum coord, GLenum pname, GLint *params); typedef void (APIENTRY * glGetTexImagePROC) (GLenum target, GLint level, GLenum format, GLenum type, GLvoid *pixels); @@ -172,18 +136,6 @@ typedef void (APIENTRY * glGetTexLevelParameterivPROC) (GLenum target, GLint lev typedef void (APIENTRY * glGetTexParameterfvPROC) (GLenum target, GLenum pname, GLfloat *params); typedef void (APIENTRY * glGetTexParameterivPROC) (GLenum target, GLenum pname, GLint *params); typedef void (APIENTRY * glHintPROC) (GLenum target, GLenum mode); -typedef void (APIENTRY * glIndexMaskPROC) (GLuint mask); -typedef void (APIENTRY * glIndexPointerPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); -typedef void (APIENTRY * glIndexdPROC) (GLdouble c); -typedef void (APIENTRY * glIndexdvPROC) (const GLdouble *c); -typedef void (APIENTRY * glIndexfPROC) (GLfloat c); -typedef void (APIENTRY * glIndexfvPROC) (const GLfloat *c); -typedef void (APIENTRY * glIndexiPROC) (GLint c); -typedef void (APIENTRY * glIndexivPROC) (const GLint *c); -typedef void (APIENTRY * glIndexsPROC) (GLshort c); -typedef void (APIENTRY * glIndexsvPROC) (const GLshort *c); -typedef void (APIENTRY * glIndexubPROC) (GLubyte c); -typedef void (APIENTRY * glIndexubvPROC) (const GLubyte *c); typedef void (APIENTRY * glInitNamesPROC) (void); typedef void (APIENTRY * glInterleavedArraysPROC) (GLenum format, GLsizei stride, const GLvoid *pointer); typedef GLboolean (APIENTRY * glIsEnabledPROC) (GLenum cap); @@ -201,36 +153,23 @@ typedef void (APIENTRY * glLineStipplePROC) (GLint factor, GLushort pattern); typedef void (APIENTRY * glLineWidthPROC) (GLfloat width); typedef void (APIENTRY * glListBasePROC) (GLuint base); typedef void (APIENTRY * glLoadIdentityPROC) (void); -typedef void (APIENTRY * glLoadMatrixdPROC) (const GLdouble *m); typedef void (APIENTRY * glLoadMatrixfPROC) (const GLfloat *m); typedef void (APIENTRY * glLoadNamePROC) (GLuint name); typedef void (APIENTRY * glLogicOpPROC) (GLenum opcode); -typedef void (APIENTRY * glMap1dPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint stride, GLint order, const GLdouble *points); typedef void (APIENTRY * glMap1fPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint stride, GLint order, const GLfloat *points); -typedef void (APIENTRY * glMap2dPROC) (GLenum target, GLdouble u1, GLdouble u2, GLint ustride, GLint uorder, GLdouble v1, GLdouble v2, GLint vstride, GLint vorder, const GLdouble *points); typedef void (APIENTRY * glMap2fPROC) (GLenum target, GLfloat u1, GLfloat u2, GLint ustride, GLint uorder, GLfloat v1, GLfloat v2, GLint vstride, GLint vorder, const GLfloat *points); -typedef void (APIENTRY * glMapGrid1dPROC) (GLint un, GLdouble u1, GLdouble u2); typedef void (APIENTRY * glMapGrid1fPROC) (GLint un, GLfloat u1, GLfloat u2); -typedef void (APIENTRY * glMapGrid2dPROC) (GLint un, GLdouble u1, GLdouble u2, GLint vn, GLdouble v1, GLdouble v2); typedef void (APIENTRY * glMapGrid2fPROC) (GLint un, GLfloat u1, GLfloat u2, GLint vn, GLfloat v1, GLfloat v2); typedef void (APIENTRY * glMaterialfPROC) (GLenum face, GLenum pname, GLfloat param); typedef void (APIENTRY * glMaterialfvPROC) (GLenum face, GLenum pname, const GLfloat *params); typedef void (APIENTRY * glMaterialiPROC) (GLenum face, GLenum pname, GLint param); typedef void (APIENTRY * glMaterialivPROC) (GLenum face, GLenum pname, const GLint *params); typedef void (APIENTRY * glMatrixModePROC) (GLenum mode); -typedef void (APIENTRY * glMultMatrixdPROC) (const GLdouble *m); typedef void (APIENTRY * glMultMatrixfPROC) (const GLfloat *m); typedef void (APIENTRY * glNewListPROC) (GLuint list, GLenum mode); typedef void (APIENTRY * glNormal3bPROC) (GLbyte nx, GLbyte ny, GLbyte nz); -typedef void (APIENTRY * glNormal3bvPROC) (const GLbyte *v); -typedef void (APIENTRY * glNormal3dPROC) (GLdouble nx, GLdouble ny, GLdouble nz); -typedef void (APIENTRY * glNormal3dvPROC) (const GLdouble *v); typedef void (APIENTRY * glNormal3fPROC) (GLfloat nx, GLfloat ny, GLfloat nz); -typedef void (APIENTRY * glNormal3fvPROC) (const GLfloat *v); typedef void (APIENTRY * glNormal3iPROC) (GLint nx, GLint ny, GLint nz); -typedef void (APIENTRY * glNormal3ivPROC) (const GLint *v); -typedef void (APIENTRY * glNormal3sPROC) (GLshort nx, GLshort ny, GLshort nz); -typedef void (APIENTRY * glNormal3svPROC) (const GLshort *v); typedef void (APIENTRY * glNormalPointerPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRY * glOrthoPROC) (GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdouble zNear, GLdouble zFar); typedef void (APIENTRY * glPassThroughPROC) (GLfloat token); @@ -250,50 +189,23 @@ typedef void (APIENTRY * glPopAttribPROC) (void); typedef void (APIENTRY * glPopClientAttribPROC) (void); typedef void (APIENTRY * glPopMatrixPROC) (void); typedef void (APIENTRY * glPopNamePROC) (void); -typedef void (APIENTRY * glPrioritizeTexturesPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); +//typedef void (APIENTRY * glPrioritizeTexturesPROC) (GLsizei n, const GLuint *textures, const GLclampf *priorities); typedef void (APIENTRY * glPushAttribPROC) (GLbitfield mask); typedef void (APIENTRY * glPushClientAttribPROC) (GLbitfield mask); typedef void (APIENTRY * glPushMatrixPROC) (void); typedef void (APIENTRY * glPushNamePROC) (GLuint name); -typedef void (APIENTRY * glRasterPos2dPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRY * glRasterPos2dvPROC) (const GLdouble *v); typedef void (APIENTRY * glRasterPos2fPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRY * glRasterPos2fvPROC) (const GLfloat *v); typedef void (APIENTRY * glRasterPos2iPROC) (GLint x, GLint y); -typedef void (APIENTRY * glRasterPos2ivPROC) (const GLint *v); -typedef void (APIENTRY * glRasterPos2sPROC) (GLshort x, GLshort y); -typedef void (APIENTRY * glRasterPos2svPROC) (const GLshort *v); -typedef void (APIENTRY * glRasterPos3dPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRY * glRasterPos3dvPROC) (const GLdouble *v); typedef void (APIENTRY * glRasterPos3fPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * glRasterPos3fvPROC) (const GLfloat *v); typedef void (APIENTRY * glRasterPos3iPROC) (GLint x, GLint y, GLint z); - -typedef void (APIENTRY * glRasterPos3ivPROC) (const GLint *v); -typedef void (APIENTRY * glRasterPos3sPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRY * glRasterPos3svPROC) (const GLshort *v); -typedef void (APIENTRY * glRasterPos4dPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRY * glRasterPos4dvPROC) (const GLdouble *v); typedef void (APIENTRY * glRasterPos4fPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * glRasterPos4fvPROC) (const GLfloat *v); typedef void (APIENTRY * glRasterPos4iPROC) (GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRY * glRasterPos4ivPROC) (const GLint *v); -typedef void (APIENTRY * glRasterPos4sPROC) (GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRY * glRasterPos4svPROC) (const GLshort *v); typedef void (APIENTRY * glReadBufferPROC) (GLenum mode); typedef void (APIENTRY * glReadPixelsPROC) (GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, GLvoid *pixels); -typedef void (APIENTRY * glRectdPROC) (GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2); -typedef void (APIENTRY * glRectdvPROC) (const GLdouble *v1, const GLdouble *v2); typedef void (APIENTRY * glRectfPROC) (GLfloat x1, GLfloat y1, GLfloat x2, GLfloat y2); -typedef void (APIENTRY * glRectfvPROC) (const GLfloat *v1, const GLfloat *v2); typedef void (APIENTRY * glRectiPROC) (GLint x1, GLint y1, GLint x2, GLint y2); -typedef void (APIENTRY * glRectivPROC) (const GLint *v1, const GLint *v2); -typedef void (APIENTRY * glRectsPROC) (GLshort x1, GLshort y1, GLshort x2, GLshort y2); -typedef void (APIENTRY * glRectsvPROC) (const GLshort *v1, const GLshort *v2); typedef GLint (APIENTRY * glRenderModePROC) (GLenum mode); -typedef void (APIENTRY * glRotatedPROC) (GLdouble angle, GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRY * glRotatefPROC) (GLfloat angle, GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * glScaledPROC) (GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRY * glScalefPROC) (GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRY * glScissorPROC) (GLint x, GLint y, GLsizei width, GLsizei height); typedef void (APIENTRY * glSelectBufferPROC) (GLsizei size, GLuint *buffer); @@ -301,45 +213,15 @@ typedef void (APIENTRY * glShadeModelPROC) (GLenum mode); typedef void (APIENTRY * glStencilFuncPROC) (GLenum func, GLint ref, GLuint mask); typedef void (APIENTRY * glStencilMaskPROC) (GLuint mask); typedef void (APIENTRY * glStencilOpPROC) (GLenum fail, GLenum zfail, GLenum zpass); -typedef void (APIENTRY * glTexCoord1dPROC) (GLdouble s); -typedef void (APIENTRY * glTexCoord1dvPROC) (const GLdouble *v); typedef void (APIENTRY * glTexCoord1fPROC) (GLfloat s); -typedef void (APIENTRY * glTexCoord1fvPROC) (const GLfloat *v); -typedef void (APIENTRY * glTexCoord1iPROC) (GLint s); -typedef void (APIENTRY * glTexCoord1ivPROC) (const GLint *v); -typedef void (APIENTRY * glTexCoord1sPROC) (GLshort s); -typedef void (APIENTRY * glTexCoord1svPROC) (const GLshort *v); -typedef void (APIENTRY * glTexCoord2dPROC) (GLdouble s, GLdouble t); -typedef void (APIENTRY * glTexCoord2dvPROC) (const GLdouble *v); typedef void (APIENTRY * glTexCoord2fPROC) (GLfloat s, GLfloat t); -typedef void (APIENTRY * glTexCoord2fvPROC) (const GLfloat *v); -typedef void (APIENTRY * glTexCoord2iPROC) (GLint s, GLint t); -typedef void (APIENTRY * glTexCoord2ivPROC) (const GLint *v); -typedef void (APIENTRY * glTexCoord2sPROC) (GLshort s, GLshort t); -typedef void (APIENTRY * glTexCoord2svPROC) (const GLshort *v); -typedef void (APIENTRY * glTexCoord3dPROC) (GLdouble s, GLdouble t, GLdouble r); -typedef void (APIENTRY * glTexCoord3dvPROC) (const GLdouble *v); typedef void (APIENTRY * glTexCoord3fPROC) (GLfloat s, GLfloat t, GLfloat r); -typedef void (APIENTRY * glTexCoord3fvPROC) (const GLfloat *v); -typedef void (APIENTRY * glTexCoord3iPROC) (GLint s, GLint t, GLint r); -typedef void (APIENTRY * glTexCoord3ivPROC) (const GLint *v); -typedef void (APIENTRY * glTexCoord3sPROC) (GLshort s, GLshort t, GLshort r); -typedef void (APIENTRY * glTexCoord3svPROC) (const GLshort *v); -typedef void (APIENTRY * glTexCoord4dPROC) (GLdouble s, GLdouble t, GLdouble r, GLdouble q); -typedef void (APIENTRY * glTexCoord4dvPROC) (const GLdouble *v); typedef void (APIENTRY * glTexCoord4fPROC) (GLfloat s, GLfloat t, GLfloat r, GLfloat q); -typedef void (APIENTRY * glTexCoord4fvPROC) (const GLfloat *v); -typedef void (APIENTRY * glTexCoord4iPROC) (GLint s, GLint t, GLint r, GLint q); -typedef void (APIENTRY * glTexCoord4ivPROC) (const GLint *v); -typedef void (APIENTRY * glTexCoord4sPROC) (GLshort s, GLshort t, GLshort r, GLshort q); -typedef void (APIENTRY * glTexCoord4svPROC) (const GLshort *v); typedef void (APIENTRY * glTexCoordPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRY * glTexEnvfPROC) (GLenum target, GLenum pname, GLfloat param); typedef void (APIENTRY * glTexEnvfvPROC) (GLenum target, GLenum pname, const GLfloat *params); typedef void (APIENTRY * glTexEnviPROC) (GLenum target, GLenum pname, GLint param); typedef void (APIENTRY * glTexEnvivPROC) (GLenum target, GLenum pname, const GLint *params); -typedef void (APIENTRY * glTexGendPROC) (GLenum coord, GLenum pname, GLdouble param); -typedef void (APIENTRY * glTexGendvPROC) (GLenum coord, GLenum pname, const GLdouble *params); typedef void (APIENTRY * glTexGenfPROC) (GLenum coord, GLenum pname, GLfloat param); typedef void (APIENTRY * glTexGenfvPROC) (GLenum coord, GLenum pname, const GLfloat *params); typedef void (APIENTRY * glTexGeniPROC) (GLenum coord, GLenum pname, GLint param); @@ -352,38 +234,19 @@ typedef void (APIENTRY * glTexParameteriPROC) (GLenum target, GLenum pname, GLin typedef void (APIENTRY * glTexParameterivPROC) (GLenum target, GLenum pname, const GLint *params); typedef void (APIENTRY * glTexSubImage1DPROC) (GLenum target, GLint level, GLint xoffset, GLsizei width, GLenum format, GLenum type, const GLvoid *pixels); typedef void (APIENTRY * glTexSubImage2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, const GLvoid *pixels); -typedef void (APIENTRY * glTranslatedPROC) (GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRY * glTranslatefPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * glVertex2dPROC) (GLdouble x, GLdouble y); -typedef void (APIENTRY * glVertex2dvPROC) (const GLdouble *v); typedef void (APIENTRY * glVertex2fPROC) (GLfloat x, GLfloat y); -typedef void (APIENTRY * glVertex2fvPROC) (const GLfloat *v); typedef void (APIENTRY * glVertex2iPROC) (GLint x, GLint y); -typedef void (APIENTRY * glVertex2ivPROC) (const GLint *v); -typedef void (APIENTRY * glVertex2sPROC) (GLshort x, GLshort y); -typedef void (APIENTRY * glVertex2svPROC) (const GLshort *v); -typedef void (APIENTRY * glVertex3dPROC) (GLdouble x, GLdouble y, GLdouble z); -typedef void (APIENTRY * glVertex3dvPROC) (const GLdouble *v); typedef void (APIENTRY * glVertex3fPROC) (GLfloat x, GLfloat y, GLfloat z); -typedef void (APIENTRY * glVertex3fvPROC) (const GLfloat *v); typedef void (APIENTRY * glVertex3iPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRY * glVertex3ivPROC) (const GLint *v); -typedef void (APIENTRY * glVertex3sPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRY * glVertex3svPROC) (const GLshort *v); -typedef void (APIENTRY * glVertex4dPROC) (GLdouble x, GLdouble y, GLdouble z, GLdouble w); -typedef void (APIENTRY * glVertex4dvPROC) (const GLdouble *v); typedef void (APIENTRY * glVertex4fPROC) (GLfloat x, GLfloat y, GLfloat z, GLfloat w); -typedef void (APIENTRY * glVertex4fvPROC) (const GLfloat *v); typedef void (APIENTRY * glVertex4iPROC) (GLint x, GLint y, GLint z, GLint w); -typedef void (APIENTRY * glVertex4ivPROC) (const GLint *v); -typedef void (APIENTRY * glVertex4sPROC) (GLshort x, GLshort y, GLshort z, GLshort w); -typedef void (APIENTRY * glVertex4svPROC) (const GLshort *v); typedef void (APIENTRY * glVertexPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRY * glViewportPROC) (GLint x, GLint y, GLsizei width, GLsizei height); static glAccumPROC glAccum; static glAlphaFuncPROC glAlphaFunc; -static glAreTexturesResidentPROC glAreTexturesResident; +//static glAreTexturesResidentPROC glAreTexturesResident; static glArrayElementPROC glArrayElement; static glBeginPROC glBegin; static glBindTexturePROC glBindTexture; @@ -399,37 +262,11 @@ static glClearIndexPROC glClearIndex; static glClearStencilPROC glClearStencil; static glClipPlanePROC glClipPlane; static glColor3bPROC glColor3b; -static glColor3bvPROC glColor3bv; -static glColor3dPROC glColor3d; -static glColor3dvPROC glColor3dv; static glColor3fPROC glColor3f; -static glColor3fvPROC glColor3fv; -static glColor3iPROC glColor3i; -static glColor3ivPROC glColor3iv; -static glColor3sPROC glColor3s; -static glColor3svPROC glColor3sv; static glColor3ubPROC glColor3ub; -static glColor3ubvPROC glColor3ubv; -static glColor3uiPROC glColor3ui; -static glColor3uivPROC glColor3uiv; -static glColor3usPROC glColor3us; -static glColor3usvPROC glColor3usv; static glColor4bPROC glColor4b; -static glColor4bvPROC glColor4bv; -static glColor4dPROC glColor4d; -static glColor4dvPROC glColor4dv; static glColor4fPROC glColor4f; -static glColor4fvPROC glColor4fv; -static glColor4iPROC glColor4i; -static glColor4ivPROC glColor4iv; -static glColor4sPROC glColor4s; -static glColor4svPROC glColor4sv; static glColor4ubPROC glColor4ub; -static glColor4ubvPROC glColor4ubv; -static glColor4uiPROC glColor4ui; -static glColor4uivPROC glColor4uiv; -static glColor4usPROC glColor4us; -static glColor4usvPROC glColor4usv; static glColorMaskPROC glColorMask; static glColorMaterialPROC glColorMaterial; static glColorPointerPROC glColorPointer; @@ -452,19 +289,12 @@ static glDrawElementsPROC glDrawElements; static glDrawPixelsPROC glDrawPixels; static glEdgeFlagPROC glEdgeFlag; static glEdgeFlagPointerPROC glEdgeFlagPointer; -static glEdgeFlagvPROC glEdgeFlagv; static glEnablePROC glEnable; static glEnableClientStatePROC glEnableClientState; static glEndPROC glEnd; static glEndListPROC glEndList; -static glEvalCoord1dPROC glEvalCoord1d; -static glEvalCoord1dvPROC glEvalCoord1dv; static glEvalCoord1fPROC glEvalCoord1f; -static glEvalCoord1fvPROC glEvalCoord1fv; -static glEvalCoord2dPROC glEvalCoord2d; -static glEvalCoord2dvPROC glEvalCoord2dv; static glEvalCoord2fPROC glEvalCoord2f; -static glEvalCoord2fvPROC glEvalCoord2fv; static glEvalMesh1PROC glEvalMesh1; static glEvalMesh2PROC glEvalMesh2; static glEvalPoint1PROC glEvalPoint1; @@ -488,7 +318,6 @@ static glGetFloatvPROC glGetFloatv; static glGetIntegervPROC glGetIntegerv; static glGetLightfvPROC glGetLightfv; static glGetLightivPROC glGetLightiv; -static glGetMapdvPROC glGetMapdv; static glGetMapfvPROC glGetMapfv; static glGetMapivPROC glGetMapiv; static glGetMaterialfvPROC glGetMaterialfv; @@ -501,7 +330,6 @@ static glGetPolygonStipplePROC glGetPolygonStipple; glGetStringPROC glGetString; static glGetTexEnvfvPROC glGetTexEnvfv; static glGetTexEnvivPROC glGetTexEnviv; -static glGetTexGendvPROC glGetTexGendv; static glGetTexGenfvPROC glGetTexGenfv; static glGetTexGenivPROC glGetTexGeniv; static glGetTexImagePROC glGetTexImage; @@ -510,18 +338,6 @@ static glGetTexLevelParameterivPROC glGetTexLevelParameteriv; static glGetTexParameterfvPROC glGetTexParameterfv; static glGetTexParameterivPROC glGetTexParameteriv; static glHintPROC glHint; -static glIndexMaskPROC glIndexMask; -static glIndexPointerPROC glIndexPointer; -static glIndexdPROC glIndexd; -static glIndexdvPROC glIndexdv; -static glIndexfPROC glIndexf; -static glIndexfvPROC glIndexfv; -static glIndexiPROC glIndexi; -static glIndexivPROC glIndexiv; -static glIndexsPROC glIndexs; -static glIndexsvPROC glIndexsv; -static glIndexubPROC glIndexub; -static glIndexubvPROC glIndexubv; static glInitNamesPROC glInitNames; static glInterleavedArraysPROC glInterleavedArrays; static glIsEnabledPROC glIsEnabled; @@ -539,36 +355,23 @@ static glLineStipplePROC glLineStipple; static glLineWidthPROC glLineWidth; static glListBasePROC glListBase; static glLoadIdentityPROC glLoadIdentity; -static glLoadMatrixdPROC glLoadMatrixd; static glLoadMatrixfPROC glLoadMatrixf; static glLoadNamePROC glLoadName; static glLogicOpPROC glLogicOp; -static glMap1dPROC glMap1d; static glMap1fPROC glMap1f; -static glMap2dPROC glMap2d; static glMap2fPROC glMap2f; -static glMapGrid1dPROC glMapGrid1d; static glMapGrid1fPROC glMapGrid1f; -static glMapGrid2dPROC glMapGrid2d; static glMapGrid2fPROC glMapGrid2f; static glMaterialfPROC glMaterialf; static glMaterialfvPROC glMaterialfv; static glMaterialiPROC glMateriali; static glMaterialivPROC glMaterialiv; static glMatrixModePROC glMatrixMode; -static glMultMatrixdPROC glMultMatrixd; static glMultMatrixfPROC glMultMatrixf; static glNewListPROC glNewList; static glNormal3bPROC glNormal3b; -static glNormal3bvPROC glNormal3bv; -static glNormal3dPROC glNormal3d; -static glNormal3dvPROC glNormal3dv; static glNormal3fPROC glNormal3f; -static glNormal3fvPROC glNormal3fv; static glNormal3iPROC glNormal3i; -static glNormal3ivPROC glNormal3iv; -static glNormal3sPROC glNormal3s; -static glNormal3svPROC glNormal3sv; static glNormalPointerPROC glNormalPointer; static glOrthoPROC glOrtho; static glPassThroughPROC glPassThrough; @@ -588,50 +391,24 @@ static glPopAttribPROC glPopAttrib; static glPopClientAttribPROC glPopClientAttrib; static glPopMatrixPROC glPopMatrix; static glPopNamePROC glPopName; -static glPrioritizeTexturesPROC glPrioritizeTextures; +//static glPrioritizeTexturesPROC glPrioritizeTextures; static glPushAttribPROC glPushAttrib; static glPushClientAttribPROC glPushClientAttrib; static glPushMatrixPROC glPushMatrix; static glPushNamePROC glPushName; -static glRasterPos2dPROC glRasterPos2d; -static glRasterPos2dvPROC glRasterPos2dv; static glRasterPos2fPROC glRasterPos2f; -static glRasterPos2fvPROC glRasterPos2fv; static glRasterPos2iPROC glRasterPos2i; -static glRasterPos2ivPROC glRasterPos2iv; -static glRasterPos2sPROC glRasterPos2s; -static glRasterPos2svPROC glRasterPos2sv; -static glRasterPos3dPROC glRasterPos3d; -static glRasterPos3dvPROC glRasterPos3dv; static glRasterPos3fPROC glRasterPos3f; -static glRasterPos3fvPROC glRasterPos3fv; static glRasterPos3iPROC glRasterPos3i; -static glRasterPos3ivPROC glRasterPos3iv; -static glRasterPos3sPROC glRasterPos3s; -static glRasterPos3svPROC glRasterPos3sv; -static glRasterPos4dPROC glRasterPos4d; -static glRasterPos4dvPROC glRasterPos4dv; static glRasterPos4fPROC glRasterPos4f; -static glRasterPos4fvPROC glRasterPos4fv; static glRasterPos4iPROC glRasterPos4i; -static glRasterPos4ivPROC glRasterPos4iv; -static glRasterPos4sPROC glRasterPos4s; -static glRasterPos4svPROC glRasterPos4sv; static glReadBufferPROC glReadBuffer; static glReadPixelsPROC glReadPixels; -static glRectdPROC glRectd; -static glRectdvPROC glRectdv; static glRectfPROC glRectf; -static glRectfvPROC glRectfv; static glRectiPROC glRecti; -static glRectivPROC glRectiv; -static glRectsPROC glRects; -static glRectsvPROC glRectsv; static glRenderModePROC glRenderMode; -static glRotatedPROC glRotated; static glRotatefPROC glRotatef; -static glScaledPROC glScaled; static glScalefPROC glScalef; static glScissorPROC glScissor; static glSelectBufferPROC glSelectBuffer; @@ -639,45 +416,15 @@ static glShadeModelPROC glShadeModel; static glStencilFuncPROC glStencilFunc; static glStencilMaskPROC glStencilMask; static glStencilOpPROC glStencilOp; -static glTexCoord1dPROC glTexCoord1d; -static glTexCoord1dvPROC glTexCoord1dv; static glTexCoord1fPROC glTexCoord1f; -static glTexCoord1fvPROC glTexCoord1fv; -static glTexCoord1iPROC glTexCoord1i; -static glTexCoord1ivPROC glTexCoord1iv; -static glTexCoord1sPROC glTexCoord1s; -static glTexCoord1svPROC glTexCoord1sv; -static glTexCoord2dPROC glTexCoord2d; -static glTexCoord2dvPROC glTexCoord2dv; static glTexCoord2fPROC glTexCoord2f; -static glTexCoord2fvPROC glTexCoord2fv; -static glTexCoord2iPROC glTexCoord2i; -static glTexCoord2ivPROC glTexCoord2iv; -static glTexCoord2sPROC glTexCoord2s; -static glTexCoord2svPROC glTexCoord2sv; -static glTexCoord3dPROC glTexCoord3d; -static glTexCoord3dvPROC glTexCoord3dv; static glTexCoord3fPROC glTexCoord3f; -static glTexCoord3fvPROC glTexCoord3fv; -static glTexCoord3iPROC glTexCoord3i; -static glTexCoord3ivPROC glTexCoord3iv; -static glTexCoord3sPROC glTexCoord3s; -static glTexCoord3svPROC glTexCoord3sv; -static glTexCoord4dPROC glTexCoord4d; -static glTexCoord4dvPROC glTexCoord4dv; static glTexCoord4fPROC glTexCoord4f; -static glTexCoord4fvPROC glTexCoord4fv; -static glTexCoord4iPROC glTexCoord4i; -static glTexCoord4ivPROC glTexCoord4iv; -static glTexCoord4sPROC glTexCoord4s; -static glTexCoord4svPROC glTexCoord4sv; static glTexCoordPointerPROC glTexCoordPointer; static glTexEnvfPROC glTexEnvf; static glTexEnvfvPROC glTexEnvfv; static glTexEnviPROC glTexEnvi; static glTexEnvivPROC glTexEnviv; -static glTexGendPROC glTexGend; -static glTexGendvPROC glTexGendv; static glTexGenfPROC glTexGenf; static glTexGenfvPROC glTexGenfv; static glTexGeniPROC glTexGeni; @@ -690,381 +437,21 @@ static glTexParameteriPROC glTexParameteri; static glTexParameterivPROC glTexParameteriv; static glTexSubImage1DPROC glTexSubImage1D; static glTexSubImage2DPROC glTexSubImage2D; -static glTranslatedPROC glTranslated; static glTranslatefPROC glTranslatef; -static glVertex2dPROC glVertex2d; -static glVertex2dvPROC glVertex2dv; static glVertex2fPROC glVertex2f; -static glVertex2fvPROC glVertex2fv; static glVertex2iPROC glVertex2i; -static glVertex2ivPROC glVertex2iv; -static glVertex2sPROC glVertex2s; -static glVertex2svPROC glVertex2sv; -static glVertex3dPROC glVertex3d; -static glVertex3dvPROC glVertex3dv; static glVertex3fPROC glVertex3f; -static glVertex3fvPROC glVertex3fv; static glVertex3iPROC glVertex3i; -static glVertex3ivPROC glVertex3iv; -static glVertex3sPROC glVertex3s; -static glVertex3svPROC glVertex3sv; -static glVertex4dPROC glVertex4d; -static glVertex4dvPROC glVertex4dv; static glVertex4fPROC glVertex4f; -static glVertex4fvPROC glVertex4fv; static glVertex4iPROC glVertex4i; -static glVertex4ivPROC glVertex4iv; -static glVertex4sPROC glVertex4s; -static glVertex4svPROC glVertex4sv; static glVertexPointerPROC glVertexPointer; static glViewportPROC glViewport; -void extgl_InitOpenGL1_1(void) -{ - glAccum = (glAccumPROC) extgl_GetProcAddress("glAccum"); - glAlphaFunc = (glAlphaFuncPROC) extgl_GetProcAddress("glAlphaFunc"); - glAreTexturesResident = (glAreTexturesResidentPROC) extgl_GetProcAddress("glAreTexturesResident"); - glArrayElement = (glArrayElementPROC) extgl_GetProcAddress("glArrayElement"); - glBegin = (glBeginPROC) extgl_GetProcAddress("glBegin"); - glBindTexture = (glBindTexturePROC) extgl_GetProcAddress("glBindTexture"); - glBitmap = (glBitmapPROC) extgl_GetProcAddress("glBitmap"); - glBlendFunc = (glBlendFuncPROC) extgl_GetProcAddress("glBlendFunc"); - glCallList = (glCallListPROC) extgl_GetProcAddress("glCallList"); - glCallLists = (glCallListsPROC) extgl_GetProcAddress("glCallLists"); - glClear = (glClearPROC) extgl_GetProcAddress("glClear"); - glClearAccum = (glClearAccumPROC) extgl_GetProcAddress("glClearAccum"); - glClearColor = (glClearColorPROC) extgl_GetProcAddress("glClearColor"); - glClearDepth = (glClearDepthPROC) extgl_GetProcAddress("glClearDepth"); - glClearIndex = (glClearIndexPROC) extgl_GetProcAddress("glClearIndex"); - glClearStencil = (glClearStencilPROC) extgl_GetProcAddress("glClearStencil"); - glClipPlane = (glClipPlanePROC) extgl_GetProcAddress("glClipPlane"); - glColor3b = (glColor3bPROC) extgl_GetProcAddress("glColor3b"); - glColor3bv = (glColor3bvPROC) extgl_GetProcAddress("glColor3bv"); - glColor3d = (glColor3dPROC) extgl_GetProcAddress("glColor3d"); - glColor3dv = (glColor3dvPROC) extgl_GetProcAddress("glColor3dv"); - glColor3f = (glColor3fPROC) extgl_GetProcAddress("glColor3f"); - glColor3fv = (glColor3fvPROC) extgl_GetProcAddress("glColor3fv"); - glColor3i = (glColor3iPROC) extgl_GetProcAddress("glColor3i"); - glColor3iv = (glColor3ivPROC) extgl_GetProcAddress("glColor3iv"); - glColor3s = (glColor3sPROC) extgl_GetProcAddress("glColor3s"); - glColor3sv = (glColor3svPROC) extgl_GetProcAddress("glColor3sv"); - glColor3ub = (glColor3ubPROC) extgl_GetProcAddress("glColor3ub"); - glColor3ubv = (glColor3ubvPROC) extgl_GetProcAddress("glColor3ubv"); - glColor3ui = (glColor3uiPROC) extgl_GetProcAddress("glColor3ui"); - glColor3uiv = (glColor3uivPROC) extgl_GetProcAddress("glColor3uiv"); - glColor3us = (glColor3usPROC) extgl_GetProcAddress("glColor3us"); - glColor3usv = (glColor3usvPROC) extgl_GetProcAddress("glColor3usv"); - glColor4b = (glColor4bPROC) extgl_GetProcAddress("glColor4b"); - glColor4bv = (glColor4bvPROC) extgl_GetProcAddress("glColor4bv"); - glColor4d = (glColor4dPROC) extgl_GetProcAddress("glColor4d"); - glColor4dv = (glColor4dvPROC) extgl_GetProcAddress("glColor4dv"); - glColor4f = (glColor4fPROC) extgl_GetProcAddress("glColor4f"); - glColor4fv = (glColor4fvPROC) extgl_GetProcAddress("glColor4fv"); - glColor4i = (glColor4iPROC) extgl_GetProcAddress("glColor4i"); - glColor4iv = (glColor4ivPROC) extgl_GetProcAddress("glColor4iv"); - glColor4s = (glColor4sPROC) extgl_GetProcAddress("glColor4s"); - glColor4sv = (glColor4svPROC) extgl_GetProcAddress("glColor4sv"); - glColor4ub = (glColor4ubPROC) extgl_GetProcAddress("glColor4ub"); - glColor4ubv = (glColor4ubvPROC) extgl_GetProcAddress("glColor4ubv"); - glColor4ui = (glColor4uiPROC) extgl_GetProcAddress("glColor4ui"); - glColor4uiv = (glColor4uivPROC) extgl_GetProcAddress("glColor4uiv"); - glColor4us = (glColor4usPROC) extgl_GetProcAddress("glColor4us"); - glColor4usv = (glColor4usvPROC) extgl_GetProcAddress("glColor4usv"); - glColorMask = (glColorMaskPROC) extgl_GetProcAddress("glColorMask"); - glColorMaterial = (glColorMaterialPROC) extgl_GetProcAddress("glColorMaterial"); - glColorPointer = (glColorPointerPROC) extgl_GetProcAddress("glColorPointer"); - glCopyPixels = (glCopyPixelsPROC) extgl_GetProcAddress("glCopyPixels"); - glCopyTexImage1D = (glCopyTexImage1DPROC) extgl_GetProcAddress("glCopyTexImage1D"); - glCopyTexImage2D = (glCopyTexImage2DPROC) extgl_GetProcAddress("glCopyTexImage2D"); - glCopyTexSubImage1D = (glCopyTexSubImage1DPROC) extgl_GetProcAddress("glCopyTexSubImage1D"); - glCopyTexSubImage2D = (glCopyTexSubImage2DPROC) extgl_GetProcAddress("glCopyTexSubImage2D"); - glCullFace = (glCullFacePROC) extgl_GetProcAddress("glCullFace"); - glDeleteLists = (glDeleteListsPROC) extgl_GetProcAddress("glDeleteLists"); - glDeleteTextures = (glDeleteTexturesPROC) extgl_GetProcAddress("glDeleteTextures"); - glDepthFunc = (glDepthFuncPROC) extgl_GetProcAddress("glDepthFunc"); - glDepthMask = (glDepthMaskPROC) extgl_GetProcAddress("glDepthMask"); - glDepthRange = (glDepthRangePROC) extgl_GetProcAddress("glDepthRange"); - glDisable = (glDisablePROC) extgl_GetProcAddress("glDisable"); - glDisableClientState = (glDisableClientStatePROC) extgl_GetProcAddress("glDisableClientState"); - glDrawArrays = (glDrawArraysPROC) extgl_GetProcAddress("glDrawArrays"); - glDrawBuffer = (glDrawBufferPROC) extgl_GetProcAddress("glDrawBuffer"); - glDrawElements = (glDrawElementsPROC) extgl_GetProcAddress("glDrawElements"); - glDrawPixels = (glDrawPixelsPROC) extgl_GetProcAddress("glDrawPixels"); - glEdgeFlag = (glEdgeFlagPROC) extgl_GetProcAddress("glEdgeFlag"); - glEdgeFlagPointer = (glEdgeFlagPointerPROC) extgl_GetProcAddress("glEdgeFlagPointer"); - glEdgeFlagv = (glEdgeFlagvPROC) extgl_GetProcAddress("glEdgeFlagv"); - glEnable = (glEnablePROC) extgl_GetProcAddress("glEnable"); - glEnableClientState = (glEnableClientStatePROC) extgl_GetProcAddress("glEnableClientState"); - glEnd = (glEndPROC) extgl_GetProcAddress("glEnd"); - glEndList = (glEndListPROC) extgl_GetProcAddress("glEndList"); - glEvalCoord1d = (glEvalCoord1dPROC) extgl_GetProcAddress("glEvalCoord1d"); - glEvalCoord1dv = (glEvalCoord1dvPROC) extgl_GetProcAddress("glEvalCoord1dv"); - glEvalCoord1f = (glEvalCoord1fPROC) extgl_GetProcAddress("glEvalCoord1f"); - glEvalCoord1fv = (glEvalCoord1fvPROC) extgl_GetProcAddress("glEvalCoord1fv"); - glEvalCoord2d = (glEvalCoord2dPROC) extgl_GetProcAddress("glEvalCoord2d"); - glEvalCoord2dv = (glEvalCoord2dvPROC) extgl_GetProcAddress("glEvalCoord2dv"); - glEvalCoord2f = (glEvalCoord2fPROC) extgl_GetProcAddress("glEvalCoord2f"); - glEvalCoord2fv = (glEvalCoord2fvPROC) extgl_GetProcAddress("glEvalCoord2fv"); - glEvalMesh1 = (glEvalMesh1PROC) extgl_GetProcAddress("glEvalMesh1"); - glEvalMesh2 = (glEvalMesh2PROC) extgl_GetProcAddress("glEvalMesh2"); - glEvalPoint1 = (glEvalPoint1PROC) extgl_GetProcAddress("glEvalPoint1"); - glEvalPoint2 = (glEvalPoint2PROC) extgl_GetProcAddress("glEvalPoint2"); - glFeedbackBuffer = (glFeedbackBufferPROC) extgl_GetProcAddress("glFeedbackBuffer"); - glFinish = (glFinishPROC) extgl_GetProcAddress("glFinish"); - glFlush = (glFlushPROC) extgl_GetProcAddress("glFlush"); - glFogf = (glFogfPROC) extgl_GetProcAddress("glFogf"); - glFogfv = (glFogfvPROC) extgl_GetProcAddress("glFogfv"); - glFogi = (glFogiPROC) extgl_GetProcAddress("glFogi"); - glFogiv = (glFogivPROC) extgl_GetProcAddress("glFogiv"); - glFrontFace = (glFrontFacePROC) extgl_GetProcAddress("glFrontFace"); - glFrustum = (glFrustumPROC) extgl_GetProcAddress("glFrustum"); - glGenLists = (glGenListsPROC) extgl_GetProcAddress("glGenLists"); - glGenTextures = (glGenTexturesPROC) extgl_GetProcAddress("glGenTextures"); - glGetBooleanv = (glGetBooleanvPROC) extgl_GetProcAddress("glGetBooleanv"); - glGetClipPlane = (glGetClipPlanePROC) extgl_GetProcAddress("glGetClipPlane"); - glGetDoublev = (glGetDoublevPROC) extgl_GetProcAddress("glGetDoublev"); - glGetError = (glGetErrorPROC) extgl_GetProcAddress("glGetError"); - glGetFloatv = (glGetFloatvPROC) extgl_GetProcAddress("glGetFloatv"); - glGetIntegerv = (glGetIntegervPROC) extgl_GetProcAddress("glGetIntegerv"); - glGetLightfv = (glGetLightfvPROC) extgl_GetProcAddress("glGetLightfv"); - glGetLightiv = (glGetLightivPROC) extgl_GetProcAddress("glGetLightiv"); - glGetMapdv = (glGetMapdvPROC) extgl_GetProcAddress("glGetMapdv"); - glGetMapfv = (glGetMapfvPROC) extgl_GetProcAddress("glGetMapfv"); - glGetMapiv = (glGetMapivPROC) extgl_GetProcAddress("glGetMapiv"); - glGetMaterialfv = (glGetMaterialfvPROC) extgl_GetProcAddress("glGetMaterialfv"); - glGetMaterialiv = (glGetMaterialivPROC) extgl_GetProcAddress("glGetMaterialiv"); - glGetPixelMapfv = (glGetPixelMapfvPROC) extgl_GetProcAddress("glGetPixelMapfv"); - glGetPixelMapuiv = (glGetPixelMapuivPROC) extgl_GetProcAddress("glGetPixelMapuiv"); - glGetPixelMapusv = (glGetPixelMapusvPROC) extgl_GetProcAddress("glGetPixelMapusv"); - glGetPointerv = (glGetPointervPROC) extgl_GetProcAddress("glGetPointerv"); - glGetPolygonStipple = (glGetPolygonStipplePROC) extgl_GetProcAddress("glGetPolygonStipple"); - glGetString = (glGetStringPROC) extgl_GetProcAddress("glGetString"); - glGetTexEnvfv = (glGetTexEnvfvPROC) extgl_GetProcAddress("glGetTexEnvfv"); - glGetTexEnviv = (glGetTexEnvivPROC) extgl_GetProcAddress("glGetTexEnviv"); - glGetTexGendv = (glGetTexGendvPROC) extgl_GetProcAddress("glGetTexGendv"); - glGetTexGenfv = (glGetTexGenfvPROC) extgl_GetProcAddress("glGetTexGenfv"); - glGetTexGeniv = (glGetTexGenivPROC) extgl_GetProcAddress("glGetTexGeniv"); - glGetTexImage = (glGetTexImagePROC) extgl_GetProcAddress("glGetTexImage"); - glGetTexLevelParameterfv = (glGetTexLevelParameterfvPROC) extgl_GetProcAddress("glGetTexLevelParameterfv"); - glGetTexLevelParameteriv = (glGetTexLevelParameterivPROC) extgl_GetProcAddress("glGetTexLevelParameteriv"); - glGetTexParameterfv = (glGetTexParameterfvPROC) extgl_GetProcAddress("glGetTexParameterfv"); - glGetTexParameteriv = (glGetTexParameterivPROC) extgl_GetProcAddress("glGetTexParameteriv"); - glHint = (glHintPROC) extgl_GetProcAddress("glHint"); - glIndexMask = (glIndexMaskPROC) extgl_GetProcAddress("glIndexMask"); - glIndexPointer = (glIndexPointerPROC) extgl_GetProcAddress("glIndexPointer"); - glIndexd = (glIndexdPROC) extgl_GetProcAddress("glIndexd"); - glIndexdv = (glIndexdvPROC) extgl_GetProcAddress("glIndexdv"); - glIndexf = (glIndexfPROC) extgl_GetProcAddress("glIndexf"); - glIndexfv = (glIndexfvPROC) extgl_GetProcAddress("glIndexfv"); - glIndexi = (glIndexiPROC) extgl_GetProcAddress("glIndexi"); - glIndexiv = (glIndexivPROC) extgl_GetProcAddress("glIndexiv"); - glIndexs = (glIndexsPROC) extgl_GetProcAddress("glIndexs"); - glIndexsv = (glIndexsvPROC) extgl_GetProcAddress("glIndexsv"); - glIndexub = (glIndexubPROC) extgl_GetProcAddress("glIndexub"); - glIndexubv = (glIndexubvPROC) extgl_GetProcAddress("glIndexubv"); - glInitNames = (glInitNamesPROC) extgl_GetProcAddress("glInitNames"); - glInterleavedArrays = (glInterleavedArraysPROC) extgl_GetProcAddress("glInterleavedArrays"); - glIsEnabled = (glIsEnabledPROC) extgl_GetProcAddress("glIsEnabled"); - glIsList = (glIsListPROC) extgl_GetProcAddress("glIsList"); - glIsTexture = (glIsTexturePROC) extgl_GetProcAddress("glIsTexture"); - glLightModelf = (glLightModelfPROC) extgl_GetProcAddress("glLightModelf"); - glLightModelfv = (glLightModelfvPROC) extgl_GetProcAddress("glLightModelfv"); - glLightModeli = (glLightModeliPROC) extgl_GetProcAddress("glLightModeli"); - glLightModeliv = (glLightModelivPROC) extgl_GetProcAddress("glLightModeliv"); - glLightf = (glLightfPROC) extgl_GetProcAddress("glLightf"); - glLightfv = (glLightfvPROC) extgl_GetProcAddress("glLightfv"); - glLighti = (glLightiPROC) extgl_GetProcAddress("glLighti"); - glLightiv = (glLightivPROC) extgl_GetProcAddress("glLightiv"); - glLineStipple = (glLineStipplePROC) extgl_GetProcAddress("glLineStipple"); - glLineWidth = (glLineWidthPROC) extgl_GetProcAddress("glLineWidth"); - glListBase = (glListBasePROC) extgl_GetProcAddress("glListBase"); - glLoadIdentity = (glLoadIdentityPROC) extgl_GetProcAddress("glLoadIdentity"); - glLoadMatrixd = (glLoadMatrixdPROC) extgl_GetProcAddress("glLoadMatrixd"); - glLoadMatrixf = (glLoadMatrixfPROC) extgl_GetProcAddress("glLoadMatrixf"); - glLoadName = (glLoadNamePROC) extgl_GetProcAddress("glLoadName"); - glLogicOp = (glLogicOpPROC) extgl_GetProcAddress("glLogicOp"); - glMap1d = (glMap1dPROC) extgl_GetProcAddress("glMap1d"); - glMap1f = (glMap1fPROC) extgl_GetProcAddress("glMap1f"); - glMap2d = (glMap2dPROC) extgl_GetProcAddress("glMap2d"); - glMap2f = (glMap2fPROC) extgl_GetProcAddress("glMap2f"); - glMapGrid1d = (glMapGrid1dPROC) extgl_GetProcAddress("glMapGrid1d"); - glMapGrid1f = (glMapGrid1fPROC) extgl_GetProcAddress("glMapGrid1f"); - glMapGrid2d = (glMapGrid2dPROC) extgl_GetProcAddress("glMapGrid2d"); - glMapGrid2f = (glMapGrid2fPROC) extgl_GetProcAddress("glMapGrid2f"); - glMaterialf = (glMaterialfPROC) extgl_GetProcAddress("glMaterialf"); - glMaterialfv = (glMaterialfvPROC) extgl_GetProcAddress("glMaterialfv"); - glMateriali = (glMaterialiPROC) extgl_GetProcAddress("glMateriali"); - glMaterialiv = (glMaterialivPROC) extgl_GetProcAddress("glMaterialiv"); - glMatrixMode = (glMatrixModePROC) extgl_GetProcAddress("glMatrixMode"); - glMultMatrixd = (glMultMatrixdPROC) extgl_GetProcAddress("glMultMatrixd"); - glMultMatrixf = (glMultMatrixfPROC) extgl_GetProcAddress("glMultMatrixf"); - glNewList = (glNewListPROC) extgl_GetProcAddress("glNewList"); - glNormal3b = (glNormal3bPROC) extgl_GetProcAddress("glNormal3b"); - glNormal3bv = (glNormal3bvPROC) extgl_GetProcAddress("glNormal3bv"); - glNormal3d = (glNormal3dPROC) extgl_GetProcAddress("glNormal3d"); - glNormal3dv = (glNormal3dvPROC) extgl_GetProcAddress("glNormal3dv"); - glNormal3f = (glNormal3fPROC) extgl_GetProcAddress("glNormal3f"); - glNormal3fv = (glNormal3fvPROC) extgl_GetProcAddress("glNormal3fv"); - glNormal3i = (glNormal3iPROC) extgl_GetProcAddress("glNormal3i"); - glNormal3iv = (glNormal3ivPROC) extgl_GetProcAddress("glNormal3iv"); - glNormal3s = (glNormal3sPROC) extgl_GetProcAddress("glNormal3s"); - glNormal3sv = (glNormal3svPROC) extgl_GetProcAddress("glNormal3sv"); - glNormalPointer = (glNormalPointerPROC) extgl_GetProcAddress("glNormalPointer"); - glOrtho = (glOrthoPROC) extgl_GetProcAddress("glOrtho"); - glPassThrough = (glPassThroughPROC) extgl_GetProcAddress("glPassThrough"); - glPixelMapfv = (glPixelMapfvPROC) extgl_GetProcAddress("glPixelMapfv"); - glPixelMapuiv = (glPixelMapuivPROC) extgl_GetProcAddress("glPixelMapuiv"); - glPixelMapusv = (glPixelMapusvPROC) extgl_GetProcAddress("glPixelMapusv"); - glPixelStoref = (glPixelStorefPROC) extgl_GetProcAddress("glPixelStoref"); - glPixelStorei = (glPixelStoreiPROC) extgl_GetProcAddress("glPixelStorei"); - glPixelTransferf = (glPixelTransferfPROC) extgl_GetProcAddress("glPixelTransferf"); - glPixelTransferi = (glPixelTransferiPROC) extgl_GetProcAddress("glPixelTransferi"); - glPixelZoom = (glPixelZoomPROC) extgl_GetProcAddress("glPixelZoom"); - glPointSize = (glPointSizePROC) extgl_GetProcAddress("glPointSize"); - glPolygonMode = (glPolygonModePROC) extgl_GetProcAddress("glPolygonMode"); - glPolygonOffset = (glPolygonOffsetPROC) extgl_GetProcAddress("glPolygonOffset"); - glPolygonStipple = (glPolygonStipplePROC) extgl_GetProcAddress("glPolygonStipple"); - glPopAttrib = (glPopAttribPROC) extgl_GetProcAddress("glPopAttrib"); - glPopClientAttrib = (glPopClientAttribPROC) extgl_GetProcAddress("glPopClientAttrib"); - glPopMatrix = (glPopMatrixPROC) extgl_GetProcAddress("glPopMatrix"); - glPopName = (glPopNamePROC) extgl_GetProcAddress("glPopName"); - glPrioritizeTextures = (glPrioritizeTexturesPROC) extgl_GetProcAddress("glPrioritizeTextures"); - glPushAttrib = (glPushAttribPROC) extgl_GetProcAddress("glPushAttrib"); - glPushClientAttrib = (glPushClientAttribPROC) extgl_GetProcAddress("glPushClientAttrib"); - glPushMatrix = (glPushMatrixPROC) extgl_GetProcAddress("glPushMatrix"); - glPushName = (glPushNamePROC) extgl_GetProcAddress("glPushName"); - glRasterPos2d = (glRasterPos2dPROC) extgl_GetProcAddress("glRasterPos2d"); - glRasterPos2dv = (glRasterPos2dvPROC) extgl_GetProcAddress("glRasterPos2dv"); - glRasterPos2f = (glRasterPos2fPROC) extgl_GetProcAddress("glRasterPos2f"); - glRasterPos2fv = (glRasterPos2fvPROC) extgl_GetProcAddress("glRasterPos2fv"); - glRasterPos2i = (glRasterPos2iPROC) extgl_GetProcAddress("glRasterPos2i"); - glRasterPos2iv = (glRasterPos2ivPROC) extgl_GetProcAddress("glRasterPos2iv"); - glRasterPos2s = (glRasterPos2sPROC) extgl_GetProcAddress("glRasterPos2s"); - glRasterPos2sv = (glRasterPos2svPROC) extgl_GetProcAddress("glRasterPos2sv"); - glRasterPos3d = (glRasterPos3dPROC) extgl_GetProcAddress("glRasterPos3d"); - glRasterPos3dv = (glRasterPos3dvPROC) extgl_GetProcAddress("glRasterPos3dv"); - glRasterPos3f = (glRasterPos3fPROC) extgl_GetProcAddress("glRasterPos3f"); - glRasterPos3fv = (glRasterPos3fvPROC) extgl_GetProcAddress("glRasterPos3fv"); - glRasterPos3i = (glRasterPos3iPROC) extgl_GetProcAddress("glRasterPos3i"); - - glRasterPos3iv = (glRasterPos3ivPROC) extgl_GetProcAddress("glRasterPos3iv"); - glRasterPos3s = (glRasterPos3sPROC) extgl_GetProcAddress("glRasterPos3s"); - glRasterPos3sv = (glRasterPos3svPROC) extgl_GetProcAddress("glRasterPos3sv"); - glRasterPos4d = (glRasterPos4dPROC) extgl_GetProcAddress("glRasterPos4d"); - glRasterPos4dv = (glRasterPos4dvPROC) extgl_GetProcAddress("glRasterPos4dv"); - glRasterPos4f = (glRasterPos4fPROC) extgl_GetProcAddress("glRasterPos4f"); - glRasterPos4fv = (glRasterPos4fvPROC) extgl_GetProcAddress("glRasterPos4fv"); - glRasterPos4i = (glRasterPos4iPROC) extgl_GetProcAddress("glRasterPos4i"); - glRasterPos4iv = (glRasterPos4ivPROC) extgl_GetProcAddress("glRasterPos4iv"); - glRasterPos4s = (glRasterPos4sPROC) extgl_GetProcAddress("glRasterPos4s"); - glRasterPos4sv = (glRasterPos4svPROC) extgl_GetProcAddress("glRasterPos4sv"); - glReadBuffer = (glReadBufferPROC) extgl_GetProcAddress("glReadBuffer"); - glReadPixels = (glReadPixelsPROC) extgl_GetProcAddress("glReadPixels"); - glRectd = (glRectdPROC) extgl_GetProcAddress("glRectd"); - glRectdv = (glRectdvPROC) extgl_GetProcAddress("glRectdv"); - glRectf = (glRectfPROC) extgl_GetProcAddress("glRectf"); - glRectfv = (glRectfvPROC) extgl_GetProcAddress("glRectfv"); - glRecti = (glRectiPROC) extgl_GetProcAddress("glRecti"); - glRectiv = (glRectivPROC) extgl_GetProcAddress("glRectiv"); - glRects = (glRectsPROC) extgl_GetProcAddress("glRects"); - glRectsv = (glRectsvPROC) extgl_GetProcAddress("glRectsv"); - glRenderMode = (glRenderModePROC) extgl_GetProcAddress("glRenderMode"); - glRotated = (glRotatedPROC) extgl_GetProcAddress("glRotated"); - glRotatef = (glRotatefPROC) extgl_GetProcAddress("glRotatef"); - glScaled = (glScaledPROC) extgl_GetProcAddress("glScaled"); - glScalef = (glScalefPROC) extgl_GetProcAddress("glScalef"); - glScissor = (glScissorPROC) extgl_GetProcAddress("glScissor"); - glSelectBuffer = (glSelectBufferPROC) extgl_GetProcAddress("glSelectBuffer"); - glShadeModel = (glShadeModelPROC) extgl_GetProcAddress("glShadeModel"); - glStencilFunc = (glStencilFuncPROC) extgl_GetProcAddress("glStencilFunc"); - glStencilMask = (glStencilMaskPROC) extgl_GetProcAddress("glStencilMask"); - glStencilOp = (glStencilOpPROC) extgl_GetProcAddress("glStencilOp"); - glTexCoord1d = (glTexCoord1dPROC) extgl_GetProcAddress("glTexCoord1d"); - glTexCoord1dv = (glTexCoord1dvPROC) extgl_GetProcAddress("glTexCoord1dv"); - glTexCoord1f = (glTexCoord1fPROC) extgl_GetProcAddress("glTexCoord1f"); - glTexCoord1fv = (glTexCoord1fvPROC) extgl_GetProcAddress("glTexCoord1fv"); - glTexCoord1i = (glTexCoord1iPROC) extgl_GetProcAddress("glTexCoord1i"); - glTexCoord1iv = (glTexCoord1ivPROC) extgl_GetProcAddress("glTexCoord1iv"); - glTexCoord1s = (glTexCoord1sPROC) extgl_GetProcAddress("glTexCoord1s"); - glTexCoord1sv = (glTexCoord1svPROC) extgl_GetProcAddress("glTexCoord1sv"); - glTexCoord2d = (glTexCoord2dPROC) extgl_GetProcAddress("glTexCoord2d"); - glTexCoord2dv = (glTexCoord2dvPROC) extgl_GetProcAddress("glTexCoord2dv"); - glTexCoord2f = (glTexCoord2fPROC) extgl_GetProcAddress("glTexCoord2f"); - glTexCoord2fv = (glTexCoord2fvPROC) extgl_GetProcAddress("glTexCoord2fv"); - glTexCoord2i = (glTexCoord2iPROC) extgl_GetProcAddress("glTexCoord2i"); - glTexCoord2iv = (glTexCoord2ivPROC) extgl_GetProcAddress("glTexCoord2iv"); - glTexCoord2s = (glTexCoord2sPROC) extgl_GetProcAddress("glTexCoord2s"); - glTexCoord2sv = (glTexCoord2svPROC) extgl_GetProcAddress("glTexCoord2sv"); - glTexCoord3d = (glTexCoord3dPROC) extgl_GetProcAddress("glTexCoord3d"); - glTexCoord3dv = (glTexCoord3dvPROC) extgl_GetProcAddress("glTexCoord3dv"); - glTexCoord3f = (glTexCoord3fPROC) extgl_GetProcAddress("glTexCoord3f"); - glTexCoord3fv = (glTexCoord3fvPROC) extgl_GetProcAddress("glTexCoord3fv"); - glTexCoord3i = (glTexCoord3iPROC) extgl_GetProcAddress("glTexCoord3i"); - glTexCoord3iv = (glTexCoord3ivPROC) extgl_GetProcAddress("glTexCoord3iv"); - glTexCoord3s = (glTexCoord3sPROC) extgl_GetProcAddress("glTexCoord3s"); - glTexCoord3sv = (glTexCoord3svPROC) extgl_GetProcAddress("glTexCoord3sv"); - glTexCoord4d = (glTexCoord4dPROC) extgl_GetProcAddress("glTexCoord4d"); - glTexCoord4dv = (glTexCoord4dvPROC) extgl_GetProcAddress("glTexCoord4dv"); - glTexCoord4f = (glTexCoord4fPROC) extgl_GetProcAddress("glTexCoord4f"); - glTexCoord4fv = (glTexCoord4fvPROC) extgl_GetProcAddress("glTexCoord4fv"); - glTexCoord4i = (glTexCoord4iPROC) extgl_GetProcAddress("glTexCoord4i"); - glTexCoord4iv = (glTexCoord4ivPROC) extgl_GetProcAddress("glTexCoord4iv"); - glTexCoord4s = (glTexCoord4sPROC) extgl_GetProcAddress("glTexCoord4s"); - glTexCoord4sv = (glTexCoord4svPROC) extgl_GetProcAddress("glTexCoord4sv"); - glTexCoordPointer = (glTexCoordPointerPROC) extgl_GetProcAddress("glTexCoordPointer"); - glTexEnvf = (glTexEnvfPROC) extgl_GetProcAddress("glTexEnvf"); - glTexEnvfv = (glTexEnvfvPROC) extgl_GetProcAddress("glTexEnvfv"); - glTexEnvi = (glTexEnviPROC) extgl_GetProcAddress("glTexEnvi"); - glTexEnviv = (glTexEnvivPROC) extgl_GetProcAddress("glTexEnviv"); - glTexGend = (glTexGendPROC) extgl_GetProcAddress("glTexGend"); - glTexGendv = (glTexGendvPROC) extgl_GetProcAddress("glTexGendv"); - glTexGenf = (glTexGenfPROC) extgl_GetProcAddress("glTexGenf"); - glTexGenfv = (glTexGenfvPROC) extgl_GetProcAddress("glTexGenfv"); - glTexGeni = (glTexGeniPROC) extgl_GetProcAddress("glTexGeni"); - glTexGeniv = (glTexGenivPROC) extgl_GetProcAddress("glTexGeniv"); - glTexImage1D = (glTexImage1DPROC) extgl_GetProcAddress("glTexImage1D"); - glTexImage2D = (glTexImage2DPROC) extgl_GetProcAddress("glTexImage2D"); - glTexParameterf = (glTexParameterfPROC) extgl_GetProcAddress("glTexParameterf"); - glTexParameterfv = (glTexParameterfvPROC) extgl_GetProcAddress("glTexParameterfv"); - glTexParameteri = (glTexParameteriPROC) extgl_GetProcAddress("glTexParameteri"); - glTexParameteriv = (glTexParameterivPROC) extgl_GetProcAddress("glTexParameteriv"); - glTexSubImage1D = (glTexSubImage1DPROC) extgl_GetProcAddress("glTexSubImage1D"); - glTexSubImage2D = (glTexSubImage2DPROC) extgl_GetProcAddress("glTexSubImage2D"); - glTranslated = (glTranslatedPROC) extgl_GetProcAddress("glTranslated"); - glTranslatef = (glTranslatefPROC) extgl_GetProcAddress("glTranslatef"); - glVertex2d = (glVertex2dPROC) extgl_GetProcAddress("glVertex2d"); - glVertex2dv = (glVertex2dvPROC) extgl_GetProcAddress("glVertex2dv"); - glVertex2f = (glVertex2fPROC) extgl_GetProcAddress("glVertex2f"); - glVertex2fv = (glVertex2fvPROC) extgl_GetProcAddress("glVertex2fv"); - glVertex2i = (glVertex2iPROC) extgl_GetProcAddress("glVertex2i"); - glVertex2iv = (glVertex2ivPROC) extgl_GetProcAddress("glVertex2iv"); - glVertex2s = (glVertex2sPROC) extgl_GetProcAddress("glVertex2s"); - glVertex2sv = (glVertex2svPROC) extgl_GetProcAddress("glVertex2sv"); - glVertex3d = (glVertex3dPROC) extgl_GetProcAddress("glVertex3d"); - glVertex3dv = (glVertex3dvPROC) extgl_GetProcAddress("glVertex3dv"); - glVertex3f = (glVertex3fPROC) extgl_GetProcAddress("glVertex3f"); - glVertex3fv = (glVertex3fvPROC) extgl_GetProcAddress("glVertex3fv"); - glVertex3i = (glVertex3iPROC) extgl_GetProcAddress("glVertex3i"); - glVertex3iv = (glVertex3ivPROC) extgl_GetProcAddress("glVertex3iv"); - glVertex3s = (glVertex3sPROC) extgl_GetProcAddress("glVertex3s"); - glVertex3sv = (glVertex3svPROC) extgl_GetProcAddress("glVertex3sv"); - glVertex4d = (glVertex4dPROC) extgl_GetProcAddress("glVertex4d"); - glVertex4dv = (glVertex4dvPROC) extgl_GetProcAddress("glVertex4dv"); - glVertex4f = (glVertex4fPROC) extgl_GetProcAddress("glVertex4f"); - glVertex4fv = (glVertex4fvPROC) extgl_GetProcAddress("glVertex4fv"); - glVertex4i = (glVertex4iPROC) extgl_GetProcAddress("glVertex4i"); - glVertex4iv = (glVertex4ivPROC) extgl_GetProcAddress("glVertex4iv"); - glVertex4s = (glVertex4sPROC) extgl_GetProcAddress("glVertex4s"); - glVertex4sv = (glVertex4svPROC) extgl_GetProcAddress("glVertex4sv"); - glVertexPointer = (glVertexPointerPROC) extgl_GetProcAddress("glVertexPointer"); - glViewport = (glViewportPROC) extgl_GetProcAddress("glViewport"); -} - /* * Class: org_lwjgl_opengl_GL11 * Method: glAccum */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAccum(JNIEnv * env, jclass clazz, jint p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAccum(JNIEnv * env, jclass clazz, jint p0, jfloat p1) { glAccum((GLint) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -1074,7 +461,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAccum(JNIEnv * env, jclass c * Class: org_lwjgl_opengl_GL11 * Method: glAlphaFunc */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAlphaFunc(JNIEnv * env, jclass clazz, jint p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAlphaFunc(JNIEnv * env, jclass clazz, jint p0, jfloat p1) { glAlphaFunc((GLint) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -1084,7 +471,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAlphaFunc(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glClearColor */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glClearColor((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); CHECK_GL_ERROR @@ -1094,7 +481,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearColor(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glClearAccum */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearAccum(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearAccum(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glClearAccum((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); CHECK_GL_ERROR @@ -1104,7 +491,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearAccum(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glClear */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClear(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClear(JNIEnv * env, jclass clazz, jint p0) { glClear((GLint) p0); CHECK_GL_ERROR @@ -1114,7 +501,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClear(JNIEnv * env, jclass c * Class: org_lwjgl_opengl_GL11 * Method: glCallLists */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglCallLists(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject lists_buffer, jint lists_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglCallLists(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject lists_buffer, jint lists_offset) { GLbyte *lists = (GLbyte *)env->GetDirectBufferAddress(lists_buffer); glCallLists((GLint) p0, (GLint) p1, (const void *)(lists + lists_offset)); @@ -1125,7 +512,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglCallLists(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glCallList */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCallList(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCallList(JNIEnv * env, jclass clazz, jint p0) { glCallList((GLint) p0); CHECK_GL_ERROR @@ -1135,7 +522,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCallList(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glBlendFunc */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBlendFunc(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBlendFunc(JNIEnv * env, jclass clazz, jint p0, jint p1) { glBlendFunc((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -1145,7 +532,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBlendFunc(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glBitmap */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglBitmap(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2, jfloat p3, jfloat p4, jfloat p5, jobject image_buffer, jint image_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglBitmap(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2, jfloat p3, jfloat p4, jfloat p5, jobject image_buffer, jint image_offset) { const GLubyte *image = (const GLubyte *)env->GetDirectBufferAddress(image_buffer); glBitmap((GLint) p0, (GLint) p1, (GLfloat) p2, (GLfloat) p3, (GLfloat) p4, (GLfloat) p5, image + image_offset); @@ -1156,7 +543,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglBitmap(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glBindTexture */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBindTexture(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBindTexture(JNIEnv * env, jclass clazz, jint p0, jint p1) { glBindTexture((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -1166,7 +553,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBindTexture(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glBegin */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBegin(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBegin(JNIEnv * env, jclass clazz, jint p0) { glBegin((GLint) p0); } @@ -1175,7 +562,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBegin(JNIEnv * env, jclass c * Class: org_lwjgl_opengl_GL11 * Method: glEnd */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnd(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnd(JNIEnv * env, jclass clazz) { glEnd(); CHECK_GL_ERROR @@ -1185,7 +572,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnd(JNIEnv * env, jclass cla * Class: org_lwjgl_opengl_GL11 * Method: glArrayElement */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glArrayElement(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glArrayElement(JNIEnv * env, jclass clazz, jint p0) { glArrayElement((GLint) p0); } @@ -1194,7 +581,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glArrayElement(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glClearDepth */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearDepth(JNIEnv * env, jclass clazz, jdouble p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearDepth(JNIEnv * env, jclass clazz, jdouble p0) { glClearDepth((GLdouble) p0); CHECK_GL_ERROR @@ -1204,7 +591,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearDepth(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glDeleteLists */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDeleteLists(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDeleteLists(JNIEnv * env, jclass clazz, jint p0, jint p1) { glDeleteLists((GLuint) p0, (GLint) p1); CHECK_GL_ERROR @@ -1214,7 +601,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDeleteLists(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glDeleteTextures */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDeleteTextures(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDeleteTextures(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { const GLuint *address = (const GLuint *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glDeleteTextures((GLint) p0, address); @@ -1225,7 +612,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDeleteTextures(JNIEnv * env * Class: org_lwjgl_opengl_GL11 * Method: glCullFace */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCullFace(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCullFace(JNIEnv * env, jclass clazz, jint p0) { glCullFace((GLint) p0); CHECK_GL_ERROR @@ -1235,7 +622,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCullFace(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glCopyTexSubImage2D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7) { glCopyTexSubImage2D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, (GLint) p6, (GLint) p7); CHECK_GL_ERROR @@ -1245,7 +632,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage2D(JNIEnv * e * Class: org_lwjgl_opengl_GL11 * Method: glCopyTexSubImage1D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5) { glCopyTexSubImage1D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5); CHECK_GL_ERROR @@ -1255,7 +642,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage1D(JNIEnv * e * Class: org_lwjgl_opengl_GL11 * Method: glCopyTexImage2D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7) { glCopyTexImage2D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, (GLint) p6, (GLint) p7); CHECK_GL_ERROR @@ -1265,7 +652,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage2D(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glCopyTexImage1D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6) { glCopyTexImage1D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, (GLint) p6); CHECK_GL_ERROR @@ -1275,7 +662,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage1D(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glCopyPixels */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyPixels(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyPixels(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4) { glCopyPixels((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4); CHECK_GL_ERROR @@ -1285,7 +672,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyPixels(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: nglColorPointer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint buffer_offset) { const GLbyte *address = (const GLbyte *)env->GetDirectBufferAddress(buffer); glColorPointer((GLint) p0, (GLint) p1, (GLint) p2, (const void *) (address + buffer_offset)); @@ -1296,7 +683,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointer(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: nglColorPointerVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) { glColorPointer((GLint) p0, (GLint) p1, (GLint) p2, offsetToPointer(buffer_offset)); CHECK_GL_ERROR @@ -1306,7 +693,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointerVBO(JNIEnv * en * Class: org_lwjgl_opengl_GL11 * Method: glColorMaterial */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMaterial(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMaterial(JNIEnv * env, jclass clazz, jint p0, jint p1) { glColorMaterial((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -1316,7 +703,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMaterial(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glColorMask */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMask(JNIEnv * env, jclass clazz, jboolean p0, jboolean p1, jboolean p2, jboolean p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMask(JNIEnv * env, jclass clazz, jboolean p0, jboolean p1, jboolean p2, jboolean p3) { glColorMask((GLboolean) p0, (GLboolean) p1, (GLboolean) p2, (GLboolean) p3); CHECK_GL_ERROR @@ -1326,7 +713,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMask(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glColor3b */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3b(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3b(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2) { glColor3b((GLbyte) p0, (GLbyte) p1, (GLbyte) p2); } @@ -1335,7 +722,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3b(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glColor3f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) { glColor3f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2); } @@ -1344,7 +731,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3f(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glColor3ub */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3ub(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3ub(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2) { glColor3ub((GLbyte) p0, (GLbyte) p1, (GLbyte) p2); } @@ -1353,7 +740,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3ub(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glColor4b */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4b(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2, jbyte p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4b(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2, jbyte p3) { glColor4b((GLbyte) p0, (GLbyte) p1, (GLbyte) p2, (GLbyte) p3); } @@ -1362,7 +749,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4b(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glColor4f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glColor4f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); } @@ -1371,7 +758,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4f(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glColor4ub */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4ub(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2, jbyte p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4ub(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2, jbyte p3) { glColor4ub((GLbyte) p0, (GLbyte) p1, (GLbyte) p2, (GLbyte) p3); } @@ -1380,7 +767,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4ub(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glClipPlane */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglClipPlane(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglClipPlane(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { const GLdouble *address = offset + (const GLdouble *)env->GetDirectBufferAddress(buffer); glClipPlane((GLint) p0, address + offset); @@ -1391,7 +778,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglClipPlane(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glClearStencil */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearStencil(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearStencil(JNIEnv * env, jclass clazz, jint p0) { glClearStencil((GLint) p0); CHECK_GL_ERROR @@ -1401,7 +788,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearStencil(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glClearIndex */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearIndex(JNIEnv * env, jclass clazz, jfloat p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearIndex(JNIEnv * env, jclass clazz, jfloat p0) { glClearIndex((GLfloat) p0); CHECK_GL_ERROR @@ -1411,7 +798,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearIndex(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glEvalPoint1 */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint1(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint1(JNIEnv * env, jclass clazz, jint p0) { glEvalPoint1((GLint) p0); CHECK_GL_ERROR @@ -1421,7 +808,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint1(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glEvalPoint2 */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint2(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint2(JNIEnv * env, jclass clazz, jint p0, jint p1) { glEvalPoint2((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -1431,7 +818,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint2(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glEvalMesh1 */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh1(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh1(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glEvalMesh1((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -1441,7 +828,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh1(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glEvalMesh2 */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh2(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh2(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4) { glEvalMesh2((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4); CHECK_GL_ERROR @@ -1451,7 +838,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh2(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glEvalCoord1f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord1f(JNIEnv * env, jclass clazz, jfloat p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord1f(JNIEnv * env, jclass clazz, jfloat p0) { glEvalCoord1f((GLfloat) p0); CHECK_GL_ERROR @@ -1461,7 +848,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord1f(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glEvalCoord2f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) { glEvalCoord2f((GLfloat) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -1471,7 +858,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord2f(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glEnableClientState */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnableClientState(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnableClientState(JNIEnv * env, jclass clazz, jint p0) { glEnableClientState((GLint) p0); CHECK_GL_ERROR @@ -1481,7 +868,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnableClientState(JNIEnv * e * Class: org_lwjgl_opengl_GL11 * Method: glDisableClientState */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisableClientState(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisableClientState(JNIEnv * env, jclass clazz, jint p0) { glDisableClientState((GLint) p0); CHECK_GL_ERROR @@ -1491,7 +878,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisableClientState(JNIEnv * * Class: org_lwjgl_opengl_GL11 * Method: glEnable */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnable(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnable(JNIEnv * env, jclass clazz, jint p0) { glEnable((GLint) p0); CHECK_GL_ERROR @@ -1501,7 +888,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnable(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glDisable */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisable(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisable(JNIEnv * env, jclass clazz, jint p0) { glDisable((GLint) p0); CHECK_GL_ERROR @@ -1511,7 +898,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisable(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: nglEdgeFlagPointer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointer(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointer(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { const GLbyte *address = offset + (const GLbyte *)env->GetDirectBufferAddress(buffer); glEdgeFlagPointer((GLint) p0, (const void *)address); @@ -1522,7 +909,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointer(JNIEnv * en * Class: org_lwjgl_opengl_GL11 * Method: nglEdgeFlagPointerVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint buffer_offset) { glEdgeFlagPointer((GLint) p0, offsetToPointer(buffer_offset)); CHECK_GL_ERROR @@ -1532,7 +919,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointerVBO(JNIEnv * * Class: org_lwjgl_opengl_GL11 * Method: glEdgeFlag */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEdgeFlag(JNIEnv * env, jclass clazz, jboolean p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEdgeFlag(JNIEnv * env, jclass clazz, jboolean p0) { glEdgeFlag((GLboolean) p0); } @@ -1541,7 +928,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEdgeFlag(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glDrawPixels */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawPixels(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawPixels(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jobject buffer, jint offset) { const GLbyte *address = (const GLbyte *)env->GetDirectBufferAddress(buffer); glDrawPixels((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (const void *)(address + offset)); @@ -1552,7 +939,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawPixels(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: nglDrawElements */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElements(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElements(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) { const GLbyte *address = (const GLbyte *)env->GetDirectBufferAddress(buffer); glDrawElements((GLint) p0, (GLint) p1, (GLint) p2, (const void *)(address + offset)); @@ -1563,7 +950,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElements(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: nglDrawElementsVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElementsVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElementsVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) { glDrawElements((GLint) p0, (GLint) p1, (GLint) p2, offsetToPointer(buffer_offset)); CHECK_GL_ERROR @@ -1573,7 +960,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElementsVBO(JNIEnv * en * Class: org_lwjgl_opengl_GL11 * Method: glDrawBuffer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawBuffer(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawBuffer(JNIEnv * env, jclass clazz, jint p0) { glDrawBuffer((GLint) p0); CHECK_GL_ERROR @@ -1583,7 +970,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawBuffer(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glDrawArrays */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawArrays(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawArrays(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glDrawArrays((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -1593,7 +980,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawArrays(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glDepthRange */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthRange(JNIEnv * env, jclass clazz, jdouble p0, jdouble p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthRange(JNIEnv * env, jclass clazz, jdouble p0, jdouble p1) { glDepthRange((GLdouble) p0, (GLdouble) p1); CHECK_GL_ERROR @@ -1603,7 +990,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthRange(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glDepthMask */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthMask(JNIEnv * env, jclass clazz, jboolean p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthMask(JNIEnv * env, jclass clazz, jboolean p0) { glDepthMask((GLboolean) p0); CHECK_GL_ERROR @@ -1613,7 +1000,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthMask(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glDepthFunc */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthFunc(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthFunc(JNIEnv * env, jclass clazz, jint p0) { glDepthFunc((GLint) p0); CHECK_GL_ERROR @@ -1623,7 +1010,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthFunc(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glFeedbackBuffer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFeedbackBuffer(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFeedbackBuffer(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glFeedbackBuffer((GLint) p0, (GLint) p1, address); @@ -1634,7 +1021,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFeedbackBuffer(JNIEnv * env * Class: org_lwjgl_opengl_GL11 * Method: glGetPixelMapfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapfv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapfv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetPixelMapfv((GLint) p0, address); @@ -1645,7 +1032,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapfv(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glGetPixelMapuiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapuiv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapuiv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLuint *address = offset + (GLuint *)env->GetDirectBufferAddress(buffer); glGetPixelMapuiv((GLint) p0, address); @@ -1656,7 +1043,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapuiv(JNIEnv * env * Class: org_lwjgl_opengl_GL11 * Method: glGetPixelMapusv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapusv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapusv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLushort *address = (GLushort *)env->GetDirectBufferAddress(buffer); glGetPixelMapusv((GLint) p0, address); @@ -1667,7 +1054,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapusv(JNIEnv * env * Class: org_lwjgl_opengl_GL11 * Method: glGetMaterialfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetMaterialfv((GLint) p0, (GLint) p1, address); @@ -1678,7 +1065,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialfv(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glGetMaterialiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetMaterialiv((GLint) p0, (GLint) p1, address); @@ -1689,7 +1076,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialiv(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glGetMapfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetMapfv((GLint) p0, (GLint) p1, address); @@ -1700,7 +1087,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapfv(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glGetMapiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetMapiv((GLint) p0, (GLint) p1, address); @@ -1711,7 +1098,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapiv(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glGetLightfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetLightfv((GLint) p0, (GLint) p1, address); @@ -1722,7 +1109,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightfv(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glGetLightiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetLightiv((GLint) p0, (GLint) p1, address); @@ -1733,7 +1120,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightiv(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glGetError */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGetError(JNIEnv * env, jclass clazz) +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGetError(JNIEnv * env, jclass clazz) { jint ret = (jint) glGetError(); CHECK_GL_ERROR @@ -1744,7 +1131,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGetError(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glGetClipPlane */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetClipPlane(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetClipPlane(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLdouble *address = offset + (GLdouble *)env->GetDirectBufferAddress(buffer); glGetClipPlane((GLint) p0, address); @@ -1755,7 +1142,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetClipPlane(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glGetBooleanv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetBooleanv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetBooleanv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLubyte *address = offset + (GLubyte *)env->GetDirectBufferAddress(buffer); glGetBooleanv((GLint) p0, address); @@ -1766,7 +1153,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetBooleanv(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glGetDoublev */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetDoublev(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetDoublev(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLdouble *address = offset + (GLdouble *)env->GetDirectBufferAddress(buffer); glGetDoublev((GLint) p0, address); @@ -1777,7 +1164,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetDoublev(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glGetFloatv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetFloatv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetFloatv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetFloatv((GLint) p0, address); @@ -1788,7 +1175,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetFloatv(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glGetIntegerv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetIntegerv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetIntegerv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetIntegerv((GLint) p0, address); @@ -1799,7 +1186,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetIntegerv(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glGenTextures */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGenTextures(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGenTextures(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLuint *address = offset + (GLuint *)env->GetDirectBufferAddress(buffer); glGenTextures((GLint) p0, address); @@ -1810,7 +1197,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGenTextures(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glGenLists */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGenLists(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGenLists(JNIEnv * env, jclass clazz, jint p0) { jint ret = (jint) glGenLists((GLint) p0); CHECK_GL_ERROR @@ -1821,7 +1208,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGenLists(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glFrustum */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrustum(JNIEnv * env, jclass clazz, jdouble p0, jdouble p1, jdouble p2, jdouble p3, jdouble p4, jdouble p5) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrustum(JNIEnv * env, jclass clazz, jdouble p0, jdouble p1, jdouble p2, jdouble p3, jdouble p4, jdouble p5) { glFrustum((GLdouble) p0, (GLdouble) p1, (GLdouble) p2, (GLdouble) p3, (GLdouble) p4, (GLdouble) p5); CHECK_GL_ERROR @@ -1831,7 +1218,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrustum(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glFrontFace */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrontFace(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrontFace(JNIEnv * env, jclass clazz, jint p0) { glFrontFace((GLint) p0); CHECK_GL_ERROR @@ -1841,7 +1228,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrontFace(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glFogf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogf(JNIEnv * env, jclass clazz, jint p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogf(JNIEnv * env, jclass clazz, jint p0, jfloat p1) { glFogf((GLint) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -1851,7 +1238,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogf(JNIEnv * env, jclass cl * Class: org_lwjgl_opengl_GL11 * Method: glFogi */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogi(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogi(JNIEnv * env, jclass clazz, jint p0, jint p1) { glFogi((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -1861,7 +1248,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogi(JNIEnv * env, jclass cl * Class: org_lwjgl_opengl_GL11 * Method: glFogfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogfv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogfv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glFogfv((GLint) p0, address); @@ -1872,7 +1259,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogfv(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glFogiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogiv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogiv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glFogiv((GLint) p0, address); @@ -1883,7 +1270,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogiv(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glFlush */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFlush(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFlush(JNIEnv * env, jclass clazz) { glFlush(); CHECK_GL_ERROR @@ -1893,7 +1280,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFlush(JNIEnv * env, jclass c * Class: org_lwjgl_opengl_GL11 * Method: glFinish */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFinish(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFinish(JNIEnv * env, jclass clazz) { glFinish(); CHECK_GL_ERROR @@ -1903,7 +1290,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFinish(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glGetPointerv */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL11_glGetPointerv(JNIEnv * env, jclass clazz, jint p0, int size) +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL11_glGetPointerv(JNIEnv * env, jclass clazz, jint p0, int size) { void *pointer; glGetPointerv((GLint) p0, &pointer); @@ -1915,7 +1302,7 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL11_glGetPointerv(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glIsEnabled */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsEnabled(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsEnabled(JNIEnv * env, jclass clazz, jint p0) { jboolean ret = (jboolean) glIsEnabled((GLint) p0); CHECK_GL_ERROR @@ -1926,7 +1313,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsEnabled(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: nglInterleavedArrays */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArrays(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArrays(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glInterleavedArrays((GLint) p0, (GLint) p1, address); @@ -1937,7 +1324,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArrays(JNIEnv * * Class: org_lwjgl_opengl_GL11 * Method: nglInterleavedArraysVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArraysVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArraysVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint buffer_offset) { glInterleavedArrays((GLint) p0, (GLint) p1, offsetToPointer(buffer_offset)); CHECK_GL_ERROR @@ -1947,7 +1334,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArraysVBO(JNIEnv * Class: org_lwjgl_opengl_GL11 * Method: glInitNames */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glInitNames(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glInitNames(JNIEnv * env, jclass clazz) { glInitNames(); CHECK_GL_ERROR @@ -1958,7 +1345,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glInitNames(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glHint */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glHint(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glHint(JNIEnv * env, jclass clazz, jint p0, jint p1) { glHint((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -1968,7 +1355,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glHint(JNIEnv * env, jclass cl * Class: org_lwjgl_opengl_GL11 * Method: glGetTexParameterfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameterfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameterfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetTexParameterfv((GLint) p0, (GLint) p1, address); @@ -1979,7 +1366,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameterfv(JNIEnv * * Class: org_lwjgl_opengl_GL11 * Method: glGetTexParameteriv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameteriv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameteriv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetTexParameteriv((GLint) p0, (GLint) p1, address); @@ -1990,7 +1377,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameteriv(JNIEnv * * Class: org_lwjgl_opengl_GL11 * Method: glGetTexLevelParameterfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameterfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameterfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetTexLevelParameterfv((GLint) p0, (GLint) p1, (GLint) p2, address); @@ -2001,7 +1388,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameterfv(JNIE * Class: org_lwjgl_opengl_GL11 * Method: glGetTexLevelParameteriv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameteriv(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameteriv(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) { GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetTexLevelParameteriv((GLint) p0, (GLint) p1, (GLint) p2, address); @@ -2012,7 +1399,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameteriv(JNIE * Class: org_lwjgl_opengl_GL11 * Method: glGetTexImage */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexImage(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexImage(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jobject buffer, jint offset) { void *address = (void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glGetTexImage((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, address); @@ -2020,23 +1407,25 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexImage(JNIEnv * env, j } -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glGetTexGenfv - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexGenfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexGenfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetTexGenfv((GLint) p0, (GLint) p1, address); CHECK_GL_ERROR } +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexGeniv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +{ + GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); + glGetTexGeniv((GLint) p0, (GLint) p1, address); + CHECK_GL_ERROR +} /* * Class: org_lwjgl_opengl_GL11 * Method: glGetTexEnvfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnvfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnvfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glGetTexEnvfv((GLint) p0, (GLint) p1, address); @@ -2047,7 +1436,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnvfv(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glGetTexEnviv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnviv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnviv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { GLint *address = offset + (GLint *)env->GetDirectBufferAddress(buffer); glGetTexEnviv((GLint) p0, (GLint) p1, address); @@ -2058,7 +1447,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnviv(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glGetString */ -JNIEXPORT jstring JNICALL Java_org_lwjgl_opengl_GL11_glGetString(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT jstring JNICALL Java_org_lwjgl_opengl_GL11_glGetString(JNIEnv * env, jclass clazz, jint p0) { const GLubyte * string = glGetString((GLenum) p0); return env->NewStringUTF((const char *) string); @@ -2068,7 +1457,7 @@ JNIEXPORT jstring JNICALL Java_org_lwjgl_opengl_GL11_glGetString(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glGetPolygonStipple */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPolygonStipple(JNIEnv * env, jclass clazz, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPolygonStipple(JNIEnv * env, jclass clazz, jobject buffer, jint offset) { GLubyte *address = offset + (GLubyte *)env->GetDirectBufferAddress(buffer); glGetPolygonStipple(address); @@ -2079,7 +1468,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPolygonStipple(JNIEnv * * Class: org_lwjgl_opengl_GL11 * Method: glIsList */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsList(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsList(JNIEnv * env, jclass clazz, jint p0) { jboolean ret = (jboolean) glIsList((GLint) p0); CHECK_GL_ERROR @@ -2090,7 +1479,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsList(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glMaterialf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMaterialf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMaterialf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) { glMaterialf((GLint) p0, (GLint) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -2100,7 +1489,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMaterialf(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glMateriali */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMateriali(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMateriali(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glMateriali((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -2110,7 +1499,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMateriali(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glMaterialfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glMaterialfv((GLint) p0, (GLint) p1, address); @@ -2121,7 +1510,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialfv(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glMaterialiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glMaterialiv((GLint) p0, (GLint) p1, address); @@ -2134,7 +1523,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialiv(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glMapGrid1f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid1f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid1f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2) { glMapGrid1f((GLint) p0, (GLfloat) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -2145,7 +1534,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid1f(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glMapGrid2f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid2f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2, jint p3, jfloat p4, jfloat p5) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid2f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2, jint p3, jfloat p4, jfloat p5) { glMapGrid2f((GLint) p0, (GLfloat) p1, (GLfloat) p2, (GLint) p3, (GLfloat) p4, (GLfloat) p5); CHECK_GL_ERROR @@ -2156,7 +1545,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid2f(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glMap2f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap2f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2, jint p3, jint p4, jfloat p5, jfloat p6, jint p7, jint p8, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap2f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2, jint p3, jint p4, jfloat p5, jfloat p6, jint p7, jint p8, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glMap2f((GLint) p0, (GLfloat) p1, (GLfloat) p2, (GLint) p3, (GLint) p4, (GLfloat) p5, (GLfloat) p6, (GLint) p7, (GLint) p8, address); @@ -2168,7 +1557,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap2f(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glMap1f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap1f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2, jint p3, jint p4, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap1f(JNIEnv * env, jclass clazz, jint p0, jfloat p1, jfloat p2, jint p3, jint p4, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glMap1f((GLint) p0, (GLfloat) p1, (GLfloat) p2, (GLint) p3, (GLint) p4, address); @@ -2179,7 +1568,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap1f(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glLogicOp */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLogicOp(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLogicOp(JNIEnv * env, jclass clazz, jint p0) { glLogicOp((GLint) p0); CHECK_GL_ERROR @@ -2189,7 +1578,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLogicOp(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glLoadName */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadName(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadName(JNIEnv * env, jclass clazz, jint p0) { glLoadName((GLint) p0); CHECK_GL_ERROR @@ -2200,7 +1589,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadName(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glLoadMatrixf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLoadMatrixf(JNIEnv * env, jclass clazz, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLoadMatrixf(JNIEnv * env, jclass clazz, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glLoadMatrixf(address); @@ -2211,7 +1600,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLoadMatrixf(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glLoadIdentity */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadIdentity(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadIdentity(JNIEnv * env, jclass clazz) { glLoadIdentity(); CHECK_GL_ERROR @@ -2221,7 +1610,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadIdentity(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glListBase */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glListBase(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glListBase(JNIEnv * env, jclass clazz, jint p0) { glListBase((GLint) p0); CHECK_GL_ERROR @@ -2231,7 +1620,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glListBase(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glLineWidth */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineWidth(JNIEnv * env, jclass clazz, jfloat p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineWidth(JNIEnv * env, jclass clazz, jfloat p0) { glLineWidth((GLfloat) p0); CHECK_GL_ERROR @@ -2241,7 +1630,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineWidth(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glLineStipple */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineStipple(JNIEnv * env, jclass clazz, jint p0, jshort p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineStipple(JNIEnv * env, jclass clazz, jint p0, jshort p1) { glLineStipple((GLint) p0, (GLshort) p1); CHECK_GL_ERROR @@ -2251,7 +1640,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineStipple(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glLightModelf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModelf(JNIEnv * env, jclass clazz, jint p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModelf(JNIEnv * env, jclass clazz, jint p0, jfloat p1) { glLightModelf((GLint) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -2261,7 +1650,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModelf(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glLightModeli */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModeli(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModeli(JNIEnv * env, jclass clazz, jint p0, jint p1) { glLightModeli((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -2271,7 +1660,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModeli(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glLightModelfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModelfv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModelfv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glLightModelfv((GLint) p0, address); @@ -2282,7 +1671,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModelfv(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glLightModeliv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModeliv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModeliv(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glLightModeliv((GLint) p0, address); @@ -2293,7 +1682,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModeliv(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glLightf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) { glLightf((GLint) p0, (GLint) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -2303,7 +1692,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightf(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glLighti */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLighti(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLighti(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glLighti((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -2313,7 +1702,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLighti(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glLightfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glLightfv((GLint) p0, (GLint) p1, address); @@ -2324,7 +1713,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightfv(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glLightiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glLightiv((GLint) p0, (GLint) p1, address); @@ -2335,7 +1724,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightiv(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glIsTexture */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsTexture(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsTexture(JNIEnv * env, jclass clazz, jint p0) { jboolean ret = (jboolean) glIsTexture((GLint) p0); CHECK_GL_ERROR @@ -2346,7 +1735,7 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsTexture(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glMatrixMode */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMatrixMode(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMatrixMode(JNIEnv * env, jclass clazz, jint p0) { glMatrixMode((GLint) p0); CHECK_GL_ERROR @@ -2356,7 +1745,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMatrixMode(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glPolygonStipple */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPolygonStipple(JNIEnv * env, jclass clazz, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPolygonStipple(JNIEnv * env, jclass clazz, jobject buffer, jint offset) { const GLubyte *address = offset + (const GLubyte *)env->GetDirectBufferAddress(buffer); glPolygonStipple(address); @@ -2367,7 +1756,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPolygonStipple(JNIEnv * env * Class: org_lwjgl_opengl_GL11 * Method: glPolygonOffset */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonOffset(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonOffset(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) { glPolygonOffset((GLfloat) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -2377,7 +1766,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonOffset(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glPolygonMode */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonMode(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonMode(JNIEnv * env, jclass clazz, jint p0, jint p1) { glPolygonMode((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -2387,7 +1776,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonMode(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glPointSize */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPointSize(JNIEnv * env, jclass clazz, jfloat p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPointSize(JNIEnv * env, jclass clazz, jfloat p0) { glPointSize((GLfloat) p0); CHECK_GL_ERROR @@ -2397,7 +1786,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPointSize(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glPixelZoom */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelZoom(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelZoom(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) { glPixelZoom((GLfloat) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -2407,7 +1796,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelZoom(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glPixelTransferf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferf(JNIEnv * env, jclass clazz, jint p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferf(JNIEnv * env, jclass clazz, jint p0, jfloat p1) { glPixelTransferf((GLint) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -2417,7 +1806,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferf(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glPixelTransferi */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferi(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferi(JNIEnv * env, jclass clazz, jint p0, jint p1) { glPixelTransferi((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -2427,7 +1816,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferi(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glPixelStoref */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStoref(JNIEnv * env, jclass clazz, jint p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStoref(JNIEnv * env, jclass clazz, jint p0, jfloat p1) { glPixelStoref((GLint) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -2437,7 +1826,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStoref(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glPixelStorei */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStorei(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStorei(JNIEnv * env, jclass clazz, jint p0, jint p1) { glPixelStorei((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -2447,7 +1836,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStorei(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glPixelMapfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glPixelMapfv((GLint) p0, (GLint) p1, address); @@ -2458,7 +1847,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapfv(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glPixelMapuiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapuiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapuiv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLuint *address = (const GLuint *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glPixelMapuiv((GLint) p0, (GLint) p1, address); @@ -2469,7 +1858,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapuiv(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glPixelMapusv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapusv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapusv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLushort *address = (const GLushort *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glPixelMapusv((GLint) p0, (GLint) p1, address); @@ -2480,7 +1869,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapusv(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glPassThrough */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPassThrough(JNIEnv * env, jclass clazz, jfloat p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPassThrough(JNIEnv * env, jclass clazz, jfloat p0) { glPassThrough((GLfloat) p0); CHECK_GL_ERROR @@ -2490,7 +1879,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPassThrough(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glOrtho */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glOrtho(JNIEnv * env, jclass clazz, jdouble p0, jdouble p1, jdouble p2, jdouble p3, jdouble p4, jdouble p5) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glOrtho(JNIEnv * env, jclass clazz, jdouble p0, jdouble p1, jdouble p2, jdouble p3, jdouble p4, jdouble p5) { glOrtho((GLdouble) p0, (GLdouble) p1, (GLdouble) p2, (GLdouble) p3, (GLdouble) p4, (GLdouble) p5); CHECK_GL_ERROR @@ -2500,7 +1889,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glOrtho(JNIEnv * env, jclass c * Class: org_lwjgl_opengl_GL11 * Method: nglNormalPointer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glNormalPointer((GLint) p0, (GLint) p1, address); @@ -2511,7 +1900,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointer(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: nglNormalPointerVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint buffer_offset) { glNormalPointer((GLint) p0, (GLint) p1, offsetToPointer(buffer_offset)); CHECK_GL_ERROR @@ -2521,7 +1910,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointerVBO(JNIEnv * e * Class: org_lwjgl_opengl_GL11 * Method: glNormal3b */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3b(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3b(JNIEnv * env, jclass clazz, jbyte p0, jbyte p1, jbyte p2) { glNormal3b((GLbyte) p0, (GLbyte) p1, (GLbyte) p2); } @@ -2530,7 +1919,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3b(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glNormal3f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) { glNormal3f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2); } @@ -2539,7 +1928,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3f(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glNormal3i */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glNormal3i((GLint) p0, (GLint) p1, (GLint) p2); } @@ -2549,7 +1938,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3i(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glNewList */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNewList(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNewList(JNIEnv * env, jclass clazz, jint p0, jint p1) { glNewList((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -2559,7 +1948,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNewList(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glEndList */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEndList(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEndList(JNIEnv * env, jclass clazz) { glEndList(); CHECK_GL_ERROR @@ -2570,7 +1959,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEndList(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glMultMatrixf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMultMatrixf(JNIEnv * env, jclass clazz, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMultMatrixf(JNIEnv * env, jclass clazz, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glMultMatrixf(address); @@ -2581,7 +1970,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMultMatrixf(JNIEnv * env, j * Class: org_lwjgl_opengl_GL11 * Method: glShadeModel */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glShadeModel(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glShadeModel(JNIEnv * env, jclass clazz, jint p0) { glShadeModel((GLint) p0); CHECK_GL_ERROR @@ -2591,7 +1980,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glShadeModel(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glSelectBuffer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglSelectBuffer(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglSelectBuffer(JNIEnv * env, jclass clazz, jint p0, jobject buffer, jint offset) { GLuint *address = offset + (GLuint *)env->GetDirectBufferAddress(buffer); glSelectBuffer((GLint) p0, address); @@ -2602,7 +1991,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglSelectBuffer(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glScissor */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScissor(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScissor(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) { glScissor((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3); CHECK_GL_ERROR @@ -2612,7 +2001,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScissor(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glScalef */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScalef(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScalef(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) { glScalef((GLfloat) p0, (GLfloat) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -2623,7 +2012,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScalef(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glRotatef */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRotatef(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRotatef(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glRotatef((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); CHECK_GL_ERROR @@ -2633,7 +2022,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRotatef(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glRenderMode */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glRenderMode(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glRenderMode(JNIEnv * env, jclass clazz, jint p0) { jint ret = (jint) glRenderMode((GLint) p0); CHECK_GL_ERROR @@ -2645,7 +2034,7 @@ JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glRenderMode(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glRectf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRectf(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRectf(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glRectf((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); CHECK_GL_ERROR @@ -2655,7 +2044,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRectf(JNIEnv * env, jclass c * Class: org_lwjgl_opengl_GL11 * Method: glRecti */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRecti(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRecti(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) { glRecti((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3); CHECK_GL_ERROR @@ -2666,7 +2055,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRecti(JNIEnv * env, jclass c * Class: org_lwjgl_opengl_GL11 * Method: glReadPixels */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglReadPixels(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglReadPixels(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jobject buffer, jint offset) { void *address = (void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glReadPixels((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, address); @@ -2677,7 +2066,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglReadPixels(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glReadBuffer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glReadBuffer(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glReadBuffer(JNIEnv * env, jclass clazz, jint p0) { glReadBuffer((GLint) p0); CHECK_GL_ERROR @@ -2689,7 +2078,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glReadBuffer(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glRasterPos2f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) { glRasterPos2f((GLfloat) p0, (GLfloat) p1); CHECK_GL_ERROR @@ -2699,7 +2088,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2f(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glRasterPos2i */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2i(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2i(JNIEnv * env, jclass clazz, jint p0, jint p1) { glRasterPos2i((GLint) p0, (GLint) p1); CHECK_GL_ERROR @@ -2710,7 +2099,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2i(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glRasterPos3f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) { glRasterPos3f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -2720,7 +2109,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3f(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glRasterPos3i */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glRasterPos3i((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -2732,7 +2121,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3i(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glRasterPos4f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glRasterPos4f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); CHECK_GL_ERROR @@ -2742,7 +2131,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4f(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glRasterPos4i */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) { glRasterPos4i((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3); CHECK_GL_ERROR @@ -2753,7 +2142,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4i(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glPushName */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushName(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushName(JNIEnv * env, jclass clazz, jint p0) { glPushName((GLint) p0); CHECK_GL_ERROR @@ -2763,7 +2152,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushName(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glPopName */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopName(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopName(JNIEnv * env, jclass clazz) { glPopName(); CHECK_GL_ERROR @@ -2773,7 +2162,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopName(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glPushMatrix */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushMatrix(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushMatrix(JNIEnv * env, jclass clazz) { glPushMatrix(); CHECK_GL_ERROR @@ -2783,7 +2172,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushMatrix(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glPopMatrix */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopMatrix(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopMatrix(JNIEnv * env, jclass clazz) { glPopMatrix(); CHECK_GL_ERROR @@ -2793,7 +2182,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopMatrix(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: nglPushClientAttrib */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPushClientAttrib(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPushClientAttrib(JNIEnv * env, jclass clazz, jint p0) { glPushClientAttrib((GLint) p0); CHECK_GL_ERROR @@ -2803,7 +2192,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPushClientAttrib(JNIEnv * e * Class: org_lwjgl_opengl_GL11 * Method: nglPopClientAttrib */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPopClientAttrib(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPopClientAttrib(JNIEnv * env, jclass clazz) { glPopClientAttrib(); CHECK_GL_ERROR @@ -2813,7 +2202,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPopClientAttrib(JNIEnv * en * Class: org_lwjgl_opengl_GL11 * Method: glPushAttrib */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushAttrib(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushAttrib(JNIEnv * env, jclass clazz, jint p0) { glPushAttrib((GLint) p0); CHECK_GL_ERROR @@ -2823,7 +2212,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushAttrib(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glPopAttrib */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopAttrib(JNIEnv * env, jclass clazz) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopAttrib(JNIEnv * env, jclass clazz) { glPopAttrib(); CHECK_GL_ERROR @@ -2833,7 +2222,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopAttrib(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glStencilFunc */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilFunc(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilFunc(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glStencilFunc((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -2843,7 +2232,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilFunc(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: nglVertexPointer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glVertexPointer((GLint) p0, (GLint) p1, (GLint) p2, address); @@ -2854,7 +2243,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointer(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: nglVertexPointerVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) { glVertexPointer((GLint) p0, (GLint) p1, (GLint) p2, offsetToPointer(buffer_offset)); CHECK_GL_ERROR @@ -2864,7 +2253,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointerVBO(JNIEnv * e * Class: org_lwjgl_opengl_GL11 * Method: glVertex2f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) { glVertex2f((GLfloat) p0, (GLfloat) p1); } @@ -2873,7 +2262,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2f(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glVertex2i */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2i(JNIEnv * env, jclass clazz, jint p0, jint p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2i(JNIEnv * env, jclass clazz, jint p0, jint p1) { glVertex2i((GLint) p0, (GLint) p1); } @@ -2882,7 +2271,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2i(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glVertex3f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) { glVertex3f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2); } @@ -2891,7 +2280,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3f(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glVertex3i */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glVertex3i((GLint) p0, (GLint) p1, (GLint) p2); } @@ -2902,7 +2291,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3i(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glVertex4f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glVertex4f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); } @@ -2911,7 +2300,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4f(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glVertex4i */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4i(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) { glVertex4i((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3); } @@ -2921,7 +2310,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4i(JNIEnv * env, jclas * Class: org_lwjgl_opengl_GL11 * Method: glTranslatef */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTranslatef(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTranslatef(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) { glTranslatef((GLfloat) p0, (GLfloat) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -2931,7 +2320,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTranslatef(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glTexSubImage2D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexSubImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexSubImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glTexSubImage2D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, (GLint) p6, (GLint) p7, address); @@ -2942,20 +2331,20 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexSubImage2D(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glTexSubImage1D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexSubImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexSubImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glTexSubImage1D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, address); CHECK_GL_ERROR } -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexParameterfv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject param, jint param_offset) { GLfloat *address = param_offset + (GLfloat *)env->GetDirectBufferAddress(param); glTexParameterfv(target, pname, address); } -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexParameteriv (JNIEnv *env, jclass clazz, jint target, jint pname, jobject param, jint param_offset) { GLint *address = param_offset + (GLint *)env->GetDirectBufferAddress(param); glTexParameteriv(target, pname, address); @@ -2965,7 +2354,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexParameteriv * Class: org_lwjgl_opengl_GL11 * Method: glTexParameterf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameterf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameterf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) { glTexParameterf((GLint) p0, (GLint) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -2975,7 +2364,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameterf(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glTexParameteri */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameteri(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameteri(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glTexParameteri((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -2985,7 +2374,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameteri(JNIEnv * env, * Class: org_lwjgl_opengl_GL11 * Method: glTexImage2D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage2D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jint p7, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glTexImage2D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, (GLint) p6, (GLint) p7, address); @@ -2996,7 +2385,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage2D(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glTexImage1D */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage1D(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3, jint p4, jint p5, jint p6, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glTexImage1D((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3, (GLint) p4, (GLint) p5, (GLint) p6, address); @@ -3008,7 +2397,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage1D(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glTexGenf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGenf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGenf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) { glTexGenf((GLint) p0, (GLint) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -3019,7 +2408,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGenf(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: nglTexGenfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGenfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGenfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glTexGenfv((GLint) p0, (GLint) p1, address); @@ -3030,7 +2419,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGenfv(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glTexGeni */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGeni(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGeni(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glTexGeni((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -3041,7 +2430,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGeni(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: nglTexGeniv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGeniv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGeniv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glTexGeniv((GLint) p0, (GLint) p1, address); @@ -3054,7 +2443,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGeniv(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glTexEnvf */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvf(JNIEnv * env, jclass clazz, jint p0, jint p1, jfloat p2) { glTexEnvf((GLint) p0, (GLint) p1, (GLfloat) p2); CHECK_GL_ERROR @@ -3064,7 +2453,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvf(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glTexEnvi */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvi(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvi(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glTexEnvi((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -3074,7 +2463,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvi(JNIEnv * env, jclass * Class: org_lwjgl_opengl_GL11 * Method: glTexEnvfv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnvfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnvfv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLfloat *address = offset + (const GLfloat *)env->GetDirectBufferAddress(buffer); glTexEnvfv((GLint) p0, (GLint) p1, address); @@ -3085,7 +2474,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnvfv(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glTexEnviv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnviv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnviv(JNIEnv * env, jclass clazz, jint p0, jint p1, jobject buffer, jint offset) { const GLint *address = offset + (const GLint *)env->GetDirectBufferAddress(buffer); glTexEnviv((GLint) p0, (GLint) p1, address); @@ -3096,7 +2485,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnviv(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: nglTexCoordPointer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointer(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jobject buffer, jint offset) { const void *address = (const void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glTexCoordPointer((GLint) p0, (GLint) p1, (GLint) p2, address); @@ -3107,7 +2496,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointer(JNIEnv * en * Class: org_lwjgl_opengl_GL11 * Method: nglTexCoordPointerVBO */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointerVBO(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint buffer_offset) { glTexCoordPointer((GLint) p0, (GLint) p1, (GLint) p2, offsetToPointer(buffer_offset)); CHECK_GL_ERROR @@ -3117,7 +2506,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointerVBO(JNIEnv * * Class: org_lwjgl_opengl_GL11 * Method: glTexCoord1f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord1f(JNIEnv * env, jclass clazz, jfloat p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord1f(JNIEnv * env, jclass clazz, jfloat p0) { glTexCoord1f((GLfloat) p0); } @@ -3127,7 +2516,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord1f(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glTexCoord2f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord2f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1) { glTexCoord2f((GLfloat) p0, (GLfloat) p1); } @@ -3137,7 +2526,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord2f(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glTexCoord3f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord3f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2) { glTexCoord3f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2); } @@ -3147,7 +2536,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord3f(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glTexCoord4f */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord4f(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { glTexCoord4f((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); } @@ -3157,7 +2546,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord4f(JNIEnv * env, jcl * Class: org_lwjgl_opengl_GL11 * Method: glStencilOp */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilOp(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilOp(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2) { glStencilOp((GLint) p0, (GLint) p1, (GLint) p2); CHECK_GL_ERROR @@ -3167,7 +2556,7 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilOp(JNIEnv * env, jcla * Class: org_lwjgl_opengl_GL11 * Method: glStencilMask */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilMask(JNIEnv * env, jclass clazz, jint p0) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilMask(JNIEnv * env, jclass clazz, jint p0) { glStencilMask((GLint) p0); CHECK_GL_ERROR @@ -3177,9 +2566,225 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilMask(JNIEnv * env, jc * Class: org_lwjgl_opengl_GL11 * Method: glViewport */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glViewport(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glViewport(JNIEnv * env, jclass clazz, jint p0, jint p1, jint p2, jint p3) { glViewport((GLint) p0, (GLint) p1, (GLint) p2, (GLint) p3); CHECK_GL_ERROR } +void extgl_InitOpenGL1_1(JNIEnv *env) +{ + JavaMethodAndGLFunction functions[] = { + {"glAccum", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL11_glAccum, "glAccum", (void**)&glAccum}, + {"glAlphaFunc", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL11_glAlphaFunc, "glAlphaFunc", (void**)&glAlphaFunc}, + {"glClearColor", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glClearColor, "glClearColor", (void**)&glClearColor}, + {"glClearAccum", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glClearAccum, "glClearAccum", (void**)&glClearAccum}, + {"glClear", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glClear, "glClear", (void**)&glClear}, + {"nglCallLists", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglCallLists, "glCallLists", (void**)&glCallLists}, + {"glCallList", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glCallList, "glCallList", (void**)&glCallList}, + {"glBlendFunc", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glBlendFunc, "glBlendFunc", (void**)&glBlendFunc}, + {"nglBitmap", "(IIFFFFLjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglBitmap, "glBitmap", (void**)&glBitmap}, + {"glBindTexture", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glBindTexture, "glBindTexture", (void**)&glBindTexture}, + {"glBegin", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glBegin, "glBegin", (void**)&glBegin}, + {"glEnd", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glEnd, "glEnd", (void**)&glEnd}, + {"glArrayElement", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glArrayElement, "glArrayElement", (void**)&glArrayElement}, + {"glClearDepth", "(D)V", (void*)&Java_org_lwjgl_opengl_GL11_glClearDepth, "glClearDepth", (void**)&glClearDepth}, + {"glDeleteLists", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glDeleteLists, "glDeleteLists", (void**)&glDeleteLists}, + {"nglDeleteTextures", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglDeleteTextures, "glDeleteTextures", (void**)&glDeleteTextures}, + {"glCullFace", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glCullFace, "glCullFace", (void**)&glCullFace}, + {"glCopyTexSubImage2D", "(IIIIIIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glCopyTexSubImage2D, "glCopyTexSubImage2D", (void**)&glCopyTexSubImage2D}, + {"glCopyTexSubImage1D", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glCopyTexSubImage1D, "glCopyTexSubImage1D", (void**)&glCopyTexSubImage1D}, + {"glCopyTexImage2D", "(IIIIIIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glCopyTexImage2D, "glCopyTexImage2D", (void**)&glCopyTexImage2D}, + {"glCopyTexImage1D", "(IIIIIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glCopyTexImage1D, "glCopyTexImage1D", (void**)&glCopyTexImage1D}, + {"glCopyPixels", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glCopyPixels, "glCopyPixels", (void**)&glCopyPixels}, + {"nglColorPointer", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglColorPointer, "glColorPointer", (void**)&glColorPointer}, + {"nglColorPointerVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_nglColorPointerVBO, NULL, NULL}, + {"glColorMaterial", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glColorMaterial, "glColorMaterial", (void**)&glColorMaterial}, + {"glColorMask", "(ZZZZ)V", (void*)&Java_org_lwjgl_opengl_GL11_glColorMask, "glColorMask", (void**)&glColorMask}, + {"glColor3b", "(BBB)V", (void*)&Java_org_lwjgl_opengl_GL11_glColor3b, "glColor3b", (void**)&glColor3b}, + {"glColor3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glColor3f, "glColor3f", (void**)&glColor3f}, + {"glColor3ub", "(BBB)V", (void*)&Java_org_lwjgl_opengl_GL11_glColor3ub, "glColor3ub", (void**)&glColor3ub}, + {"glColor4b", "(BBBB)V", (void*)&Java_org_lwjgl_opengl_GL11_glColor4b, "glColor4b", (void**)&glColor4b}, + {"glColor4f", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glColor4f, "glColor4f", (void**)&glColor4f}, + {"glColor4ub", "(BBBB)V", (void*)&Java_org_lwjgl_opengl_GL11_glColor4ub, "glColor4ub", (void**)&glColor4ub}, + {"nglClipPlane", "(ILjava/nio/DoubleBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglClipPlane, "glClipPlane", (void**)&glClipPlane}, + {"glClearStencil", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glClearStencil, "glClearStencil", (void**)&glClearStencil}, + {"glClearIndex", "(F)V", (void*)&Java_org_lwjgl_opengl_GL11_glClearIndex, "glClearIndex", (void**)&glClearIndex}, + {"glEvalPoint1", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glEvalPoint1, "glEvalPoint1", (void**)&glEvalPoint1}, + {"glEvalPoint2", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glEvalPoint2, "glEvalPoint2", (void**)&glEvalPoint2}, + {"glEvalMesh1", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glEvalMesh1, "glEvalMesh1", (void**)&glEvalMesh1}, + {"glEvalMesh2", "(IIIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glEvalMesh2, "glEvalMesh2", (void**)&glEvalMesh2}, + {"glEvalCoord1f", "(F)V", (void*)&Java_org_lwjgl_opengl_GL11_glEvalCoord1f, "glEvalCoord1f", (void**)&glEvalCoord1f}, + {"glEvalCoord2f", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL11_glEvalCoord2f, "glEvalCoord2f", (void**)&glEvalCoord2f}, + {"glEnableClientState", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glEnableClientState, "glEnableClientState", (void**)&glEnableClientState}, + {"glDisableClientState", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glDisableClientState, "glDisableClientState", (void**)&glDisableClientState}, + {"glEnable", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glEnable, "glEnable", (void**)&glEnable}, + {"glDisable", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glDisable, "glDisable", (void**)&glDisable}, + {"nglEdgeFlagPointer", "(ILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointer, "glEdgeFlagPointer", (void**)&glEdgeFlagPointer}, + {"nglEdgeFlagPointerVBO", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointerVBO, NULL, NULL}, + {"glEdgeFlag", "(Z)V", (void*)&Java_org_lwjgl_opengl_GL11_glEdgeFlag, "glEdgeFlag", (void**)&glEdgeFlag}, + {"nglDrawPixels", "(IIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglDrawPixels, "glDrawPixels", (void**)&glDrawPixels}, + {"nglDrawElements", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglDrawElements, "glDrawElements", (void**)&glDrawElements}, + {"nglDrawElementsVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_nglDrawElementsVBO, NULL, NULL}, + {"glDrawBuffer", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glDrawBuffer, "glDrawBuffer", (void**)&glDrawBuffer}, + {"glDrawArrays", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glDrawArrays, "glDrawArrays", (void**)&glDrawArrays}, + {"glDepthRange", "(DD)V", (void*)&Java_org_lwjgl_opengl_GL11_glDepthRange, "glDepthRange", (void**)&glDepthRange}, + {"glDepthMask", "(Z)V", (void*)&Java_org_lwjgl_opengl_GL11_glDepthMask, "glDepthMask", (void**)&glDepthMask}, + {"glDepthFunc", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glDepthFunc, "glDepthFunc", (void**)&glDepthFunc}, + {"nglFeedbackBuffer", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglFeedbackBuffer, "glFeedbackBuffer", (void**)&glFeedbackBuffer}, + {"nglGetPixelMapfv", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetPixelMapfv, "glGetPixelMapfv", (void**)&glGetPixelMapfv}, + {"nglGetPixelMapuiv", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetPixelMapuiv, "glGetPixelMapuiv", (void**)&glGetPixelMapuiv}, + {"nglGetPixelMapusv", "(ILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetPixelMapusv, "glGetPixelMapusv", (void**)&glGetPixelMapusv}, + {"nglGetMaterialfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetMaterialfv, "glGetMaterialfv", (void**)&glGetMaterialfv}, + {"nglGetMaterialiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetMaterialiv, "glGetMaterialiv", (void**)&glGetMaterialiv}, + {"nglGetMapfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetMapfv, "glGetMapfv", (void**)&glGetMapfv}, + {"nglGetMapiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetMapiv, "glGetMapiv", (void**)&glGetMapiv}, + {"nglGetLightfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetLightfv, "glGetLightfv", (void**)&glGetLightfv}, + {"nglGetLightiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetLightiv, "glGetLightiv", (void**)&glGetLightiv}, + {"glGetError", "()I", (void*)&Java_org_lwjgl_opengl_GL11_glGetError, "glGetError", (void**)&glGetError}, + {"nglGetClipPlane", "(ILjava/nio/DoubleBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetClipPlane, "glGetClipPlane", (void**)&glGetClipPlane}, + {"nglGetBooleanv", "(ILjava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetBooleanv, "glGetBooleanv", (void**)&glGetBooleanv}, + {"nglGetDoublev", "(ILjava/nio/DoubleBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetDoublev, "glGetDoublev", (void**)&glGetDoublev}, + {"nglGetFloatv", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetFloatv, "glGetFloatv", (void**)&glGetFloatv}, + {"nglGetIntegerv", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetIntegerv, "glGetIntegerv", (void**)&glGetIntegerv}, + {"nglGenTextures", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGenTextures, "glGenTextures", (void**)&glGenTextures}, + {"glGenLists", "(I)I", (void*)&Java_org_lwjgl_opengl_GL11_glGenLists, "glGenLists", (void**)&glGenLists}, + {"glFrustum", "(DDDDDD)V", (void*)&Java_org_lwjgl_opengl_GL11_glFrustum, "glFrustum", (void**)&glFrustum}, + {"glFrontFace", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glFrontFace, "glFrontFace", (void**)&glFrontFace}, + {"glFogf", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL11_glFogf, "glFogf", (void**)&glFogf}, + {"glFogi", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glFogi, "glFogi", (void**)&glFogi}, + {"nglFogfv", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglFogfv, "glFogfv", (void**)&glFogfv}, + {"nglFogiv", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglFogiv, "glFogiv", (void**)&glFogiv}, + {"glFlush", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glFlush, "glFlush", (void**)&glFlush}, + {"glFinish", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glFinish, "glFinish", (void**)&glFinish}, + {"glGetPointerv", "(II)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_GL11_glGetPointerv, "glGetPointerv", (void**)&glGetPointerv}, + {"glIsEnabled", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL11_glIsEnabled, "glIsEnabled", (void**)&glIsEnabled}, + {"nglInterleavedArrays", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglInterleavedArrays, "glInterleavedArrays", (void**)&glInterleavedArrays}, + {"nglInterleavedArraysVBO", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_nglInterleavedArraysVBO, NULL, NULL}, + {"glInitNames", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glInitNames, "glInitNames", (void**)&glInitNames}, + {"glHint", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glHint, "glHint", (void**)&glHint}, + {"nglGetTexParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexParameterfv, "glGetTexParameterfv", (void**)&glGetTexParameterfv}, + {"nglGetTexParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexParameteriv, "glGetTexParameteriv", (void**)&glGetTexParameteriv}, + {"nglGetTexLevelParameterfv", "(IIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameterfv, "glGetTexLevelParameterfv", (void**)&glGetTexLevelParameterfv}, + {"nglGetTexLevelParameteriv", "(IIILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameteriv, "glGetTexLevelParameteriv", (void**)&glGetTexLevelParameteriv}, + {"nglGetTexImage", "(IIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexImage, "glGetTexImage", (void**)&glGetTexImage}, + {"nglGetTexGeniv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexGeniv, "glGetTexGeniv", (void**)&glGetTexGeniv}, + {"nglGetTexGenfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexGenfv, "glGetTexGenfv", (void**)&glGetTexGenfv}, + {"nglGetTexEnviv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexEnviv, "glGetTexEnviv", (void**)&glGetTexEnviv}, + {"nglGetTexEnvfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetTexEnvfv, "glGetTexEnvfv", (void**)&glGetTexEnvfv}, + {"glGetString", "(I)Ljava/lang/String;", (void*)&Java_org_lwjgl_opengl_GL11_glGetString, "glGetString", (void**)&glGetString}, + {"nglGetPolygonStipple", "(Ljava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglGetPolygonStipple, "glGetPolygonStipple", (void**)&glGetPolygonStipple}, + {"glIsList", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL11_glIsList, "glIsList", (void**)&glIsList}, + {"glMaterialf", "(IIF)V", (void*)&Java_org_lwjgl_opengl_GL11_glMaterialf, "glMaterialf", (void**)&glMaterialf}, + {"glMateriali", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glMateriali, "glMateriali", (void**)&glMateriali}, + {"nglMaterialfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglMaterialfv, "glMaterialfv", (void**)&glMaterialfv}, + {"nglMaterialiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglMaterialiv, "glMaterialiv", (void**)&glMaterialiv}, + {"glMapGrid1f", "(IFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glMapGrid1f, "glMapGrid1f", (void**)&glMapGrid1f}, + {"glMapGrid2f", "(IFFIFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glMapGrid2f, "glMapGrid2f", (void**)&glMapGrid2f}, + {"nglMap2f", "(IFFIIFFIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglMap2f, "glMap2f", (void**)&glMap2f}, + {"nglMap1f", "(IFFIILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglMap1f, "glMap1f", (void**)&glMap1f}, + {"glLogicOp", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glLogicOp, "glLogicOp", (void**)&glLogicOp}, + {"glLoadName", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glLoadName, "glLoadName", (void**)&glLoadName}, + {"nglLoadMatrixf", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglLoadMatrixf, "glLoadMatrixf", (void**)&glLoadMatrixf}, + {"glLoadIdentity", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glLoadIdentity, "glLoadIdentity", (void**)&glLoadIdentity}, + {"glListBase", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glListBase, "glListBase", (void**)&glListBase}, + {"glLineWidth", "(F)V", (void*)&Java_org_lwjgl_opengl_GL11_glLineWidth, "glLineWidth", (void**)&glLineWidth}, + {"glLineStipple", "(IS)V", (void*)&Java_org_lwjgl_opengl_GL11_glLineStipple, "glLineStipple", (void**)&glLineStipple}, + {"glLightModelf", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL11_glLightModelf, "glLightModelf", (void**)&glLightModelf}, + {"glLightModeli", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glLightModeli, "glLightModeli", (void**)&glLightModeli}, + {"nglLightModelfv", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglLightModelfv, "glLightModelfv", (void**)&glLightModelfv}, + {"nglLightModeliv", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglLightModeliv, "glLightModeliv", (void**)&glLightModeliv}, + {"glLightf", "(IIF)V", (void*)&Java_org_lwjgl_opengl_GL11_glLightf, "glLightf", (void**)&glLightf}, + {"glLighti", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glLighti, "glLighti", (void**)&glLighti}, + {"nglLightfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglLightfv, "glLightfv", (void**)&glLightfv}, + {"nglLightiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglLightiv, "glLightiv", (void**)&glLightiv}, + {"glIsTexture", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL11_glIsTexture, "glIsTexture", (void**)&glIsTexture}, + {"glMatrixMode", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glMatrixMode, "glMatrixMode", (void**)&glMatrixMode}, + {"nglPolygonStipple", "(Ljava/nio/ByteBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglPolygonStipple, "glPolygonStipple", (void**)&glPolygonStipple}, + {"glPolygonOffset", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL11_glPolygonOffset, "glPolygonOffset", (void**)&glPolygonOffset}, + {"glPolygonMode", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glPolygonMode, "glPolygonMode", (void**)&glPolygonMode}, + {"glPointSize", "(F)V", (void*)&Java_org_lwjgl_opengl_GL11_glPointSize, "glPointSize", (void**)&glPointSize}, + {"glPixelZoom", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL11_glPixelZoom, "glPixelZoom", (void**)&glPixelZoom}, + {"glPixelTransferf", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL11_glPixelTransferf, "glPixelTransferf", (void**)&glPixelTransferf}, + {"glPixelTransferi", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glPixelTransferi, "glPixelTransferi", (void**)&glPixelTransferi}, + {"glPixelStoref", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL11_glPixelStoref, "glPixelStoref", (void**)&glPixelStoref}, + {"glPixelStorei", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glPixelStorei, "glPixelStorei", (void**)&glPixelStorei}, + {"nglPixelMapfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglPixelMapfv, "glPixelMapfv", (void**)&glPixelMapfv}, + {"nglPixelMapuiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglPixelMapuiv, "glPixelMapuiv", (void**)&glPixelMapuiv}, + {"nglPixelMapusv", "(IILjava/nio/ShortBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglPixelMapusv, "glPixelMapusv", (void**)&glPixelMapusv}, + {"glPassThrough", "(F)V", (void*)&Java_org_lwjgl_opengl_GL11_glPassThrough, "glPassThrough", (void**)&glPassThrough}, + {"glOrtho", "(DDDDDD)V", (void*)&Java_org_lwjgl_opengl_GL11_glOrtho, "glOrtho", (void**)&glOrtho}, + {"nglNormalPointer", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglNormalPointer, "glNormalPointer", (void**)&glNormalPointer}, + {"nglNormalPointerVBO", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_nglNormalPointerVBO, NULL, NULL}, + {"glNormal3b", "(BBB)V", (void*)&Java_org_lwjgl_opengl_GL11_glNormal3b, "glNormal3b", (void**)&glNormal3b}, + {"glNormal3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glNormal3f, "glNormal3f", (void**)&glNormal3f}, + {"glNormal3i", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glNormal3i, "glNormal3i", (void**)&glNormal3i}, + {"glNewList", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glNewList, "glNewList", (void**)&glNewList}, + {"glEndList", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glEndList, "glEndList", (void**)&glEndList}, + {"nglMultMatrixf", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglMultMatrixf, "glMultMatrixf", (void**)&glMultMatrixf}, + {"glShadeModel", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glShadeModel, "glShadeModel", (void**)&glShadeModel}, + {"nglSelectBuffer", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglSelectBuffer, "glSelectBuffer", (void**)&glSelectBuffer}, + {"glScissor", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glScissor, "glScissor", (void**)&glScissor}, + {"glScalef", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glScalef, "glScalef", (void**)&glScalef}, + {"glRotatef", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glRotatef, "glRotatef", (void**)&glRotatef}, + {"glRenderMode", "(I)I", (void*)&Java_org_lwjgl_opengl_GL11_glRenderMode, "glRenderMode", (void**)&glRenderMode}, + {"glRectf", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glRectf, "glRectf", (void**)&glRectf}, + {"glRecti", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glRecti, "glRecti", (void**)&glRecti}, + {"nglReadPixels", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglReadPixels, "glReadPixels", (void**)&glReadPixels}, + {"glReadBuffer", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glReadBuffer, "glReadBuffer", (void**)&glReadBuffer}, + {"glRasterPos2f", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL11_glRasterPos2f, "glRasterPos2f", (void**)&glRasterPos2f}, + {"glRasterPos2i", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glRasterPos2i, "glRasterPos2i", (void**)&glRasterPos2i}, + {"glRasterPos3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glRasterPos3f, "glRasterPos3f", (void**)&glRasterPos3f}, + {"glRasterPos3i", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glRasterPos3i, "glRasterPos3i", (void**)&glRasterPos3i}, + {"glRasterPos4f", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glRasterPos4f, "glRasterPos4f", (void**)&glRasterPos4f}, + {"glRasterPos4i", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glRasterPos4i, "glRasterPos4i", (void**)&glRasterPos4i}, + {"glPushName", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glPushName, "glPushName", (void**)&glPushName}, + {"glPopName", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glPopName, "glPopName", (void**)&glPopName}, + {"glPushMatrix", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glPushMatrix, "glPushMatrix", (void**)&glPushMatrix}, + {"glPopMatrix", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glPopMatrix, "glPopMatrix", (void**)&glPopMatrix}, + {"nglPushClientAttrib", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglPushClientAttrib, "glPushClientAttrib", (void**)&glPushClientAttrib}, + {"nglPopClientAttrib", "()V", (void*)&Java_org_lwjgl_opengl_GL11_nglPopClientAttrib, "glPopClientAttrib", (void**)&glPopClientAttrib}, + {"glPushAttrib", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glPushAttrib, "glPushAttrib", (void**)&glPushAttrib}, + {"glPopAttrib", "()V", (void*)&Java_org_lwjgl_opengl_GL11_glPopAttrib, "glPopAttrib", (void**)&glPopAttrib}, + {"glStencilFunc", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glStencilFunc, "glStencilFunc", (void**)&glStencilFunc}, + {"nglVertexPointer", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglVertexPointer, "glVertexPointer", (void**)&glVertexPointer}, + {"nglVertexPointerVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_nglVertexPointerVBO, NULL, NULL}, + {"glVertex2f", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL11_glVertex2f, "glVertex2f", (void**)&glVertex2f}, + {"glVertex2i", "(II)V", (void*)&Java_org_lwjgl_opengl_GL11_glVertex2i, "glVertex2i", (void**)&glVertex2i}, + {"glVertex3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glVertex3f, "glVertex3f", (void**)&glVertex3f}, + {"glVertex3i", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glVertex3i, "glVertex3i", (void**)&glVertex3i}, + {"glVertex4f", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glVertex4f, "glVertex4f", (void**)&glVertex4f}, + {"glVertex4i", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glVertex4i, "glVertex4i", (void**)&glVertex4i}, + {"glTranslatef", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glTranslatef, "glTranslatef", (void**)&glTranslatef}, + {"nglTexSubImage2D", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexSubImage2D, "glTexSubImage2D", (void**)&glTexSubImage2D}, + {"nglTexSubImage1D", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexSubImage1D, "glTexSubImage1D", (void**)&glTexSubImage1D}, + {"glTexParameterf", "(IIF)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexParameterf, "glTexParameterf", (void**)&glTexParameterf}, + {"glTexParameteri", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexParameteri, "glTexParameteri", (void**)&glTexParameteri}, + {"nglTexParameterfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexParameterfv, "glTexParameterfv", (void**)&glTexParameterfv}, + {"nglTexParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexParameteriv, "glTexParameteriv", (void**)&glTexParameteriv}, + {"nglTexImage2D", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexImage2D, "glTexImage2D", (void**)&glTexImage2D}, + {"nglTexImage1D", "(IIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexImage1D, "glTexImage1D", (void**)&glTexImage1D}, + {"glTexGenf", "(IIF)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexGenf, "glTexGenf", (void**)&glTexGenf}, + {"nglTexGenfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexGenfv, "glTexGenfv", (void**)&glTexGenfv}, + {"glTexGeni", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexGeni, "glTexGeni", (void**)&glTexGeni}, + {"nglTexGeniv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexGeniv, "glTexGeniv", (void**)&glTexGeniv}, + {"glTexEnvf", "(IIF)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexEnvf, "glTexEnvf", (void**)&glTexEnvf}, + {"glTexEnvi", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexEnvi, "glTexEnvi", (void**)&glTexEnvi}, + {"nglTexEnvfv", "(IILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexEnvfv, "glTexEnvfv", (void**)&glTexEnvfv}, + {"nglTexEnviv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexEnviv, "glTexEnviv", (void**)&glTexEnviv}, + {"nglTexCoordPointer", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexCoordPointer, "glTexCoordPointer", (void**)&glTexCoordPointer}, + {"nglTexCoordPointerVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_nglTexCoordPointerVBO, NULL, NULL}, + {"glTexCoord1f", "(F)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexCoord1f, "glTexCoord1f", (void**)&glTexCoord1f}, + {"glTexCoord2f", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexCoord2f, "glTexCoord2f", (void**)&glTexCoord2f}, + {"glTexCoord3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexCoord3f, "glTexCoord3f", (void**)&glTexCoord3f}, + {"glTexCoord4f", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL11_glTexCoord4f, "glTexCoord4f", (void**)&glTexCoord4f}, + {"glStencilOp", "(III)V", (void*)&Java_org_lwjgl_opengl_GL11_glStencilOp, "glStencilOp", (void**)&glStencilOp}, + {"glStencilMask", "(I)V", (void*)&Java_org_lwjgl_opengl_GL11_glStencilMask, "glStencilMask", (void**)&glStencilMask}, + {"glViewport", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL11_glViewport, "glViewport", (void**)&glViewport} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/GL11"); + if (true) + extgl_InitializeClass(env, clazz, NULL, "GL11", num_functions, functions); +} + diff --git a/src/native/common/org_lwjgl_opengl_GL11.h b/src/native/common/org_lwjgl_opengl_GL11.h deleted file mode 100644 index 68935c12..00000000 --- a/src/native/common/org_lwjgl_opengl_GL11.h +++ /dev/null @@ -1,2717 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_GL11 */ - -#ifndef _Included_org_lwjgl_opengl_GL11 -#define _Included_org_lwjgl_opengl_GL11 -#ifdef __cplusplus -extern "C" { -#endif -#undef org_lwjgl_opengl_GL11_GL_ACCUM -#define org_lwjgl_opengl_GL11_GL_ACCUM 256L -#undef org_lwjgl_opengl_GL11_GL_LOAD -#define org_lwjgl_opengl_GL11_GL_LOAD 257L -#undef org_lwjgl_opengl_GL11_GL_RETURN -#define org_lwjgl_opengl_GL11_GL_RETURN 258L -#undef org_lwjgl_opengl_GL11_GL_MULT -#define org_lwjgl_opengl_GL11_GL_MULT 259L -#undef org_lwjgl_opengl_GL11_GL_ADD -#define org_lwjgl_opengl_GL11_GL_ADD 260L -#undef org_lwjgl_opengl_GL11_GL_NEVER -#define org_lwjgl_opengl_GL11_GL_NEVER 512L -#undef org_lwjgl_opengl_GL11_GL_LESS -#define org_lwjgl_opengl_GL11_GL_LESS 513L -#undef org_lwjgl_opengl_GL11_GL_EQUAL -#define org_lwjgl_opengl_GL11_GL_EQUAL 514L -#undef org_lwjgl_opengl_GL11_GL_LEQUAL -#define org_lwjgl_opengl_GL11_GL_LEQUAL 515L -#undef org_lwjgl_opengl_GL11_GL_GREATER -#define org_lwjgl_opengl_GL11_GL_GREATER 516L -#undef org_lwjgl_opengl_GL11_GL_NOTEQUAL -#define org_lwjgl_opengl_GL11_GL_NOTEQUAL 517L -#undef org_lwjgl_opengl_GL11_GL_GEQUAL -#define org_lwjgl_opengl_GL11_GL_GEQUAL 518L -#undef org_lwjgl_opengl_GL11_GL_ALWAYS -#define org_lwjgl_opengl_GL11_GL_ALWAYS 519L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_BIT -#define org_lwjgl_opengl_GL11_GL_CURRENT_BIT 1L -#undef org_lwjgl_opengl_GL11_GL_POINT_BIT -#define org_lwjgl_opengl_GL11_GL_POINT_BIT 2L -#undef org_lwjgl_opengl_GL11_GL_LINE_BIT -#define org_lwjgl_opengl_GL11_GL_LINE_BIT 4L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_BIT -#define org_lwjgl_opengl_GL11_GL_POLYGON_BIT 8L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_STIPPLE_BIT -#define org_lwjgl_opengl_GL11_GL_POLYGON_STIPPLE_BIT 16L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MODE_BIT -#define org_lwjgl_opengl_GL11_GL_PIXEL_MODE_BIT 32L -#undef org_lwjgl_opengl_GL11_GL_LIGHTING_BIT -#define org_lwjgl_opengl_GL11_GL_LIGHTING_BIT 64L -#undef org_lwjgl_opengl_GL11_GL_FOG_BIT -#define org_lwjgl_opengl_GL11_GL_FOG_BIT 128L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_BUFFER_BIT -#define org_lwjgl_opengl_GL11_GL_DEPTH_BUFFER_BIT 256L -#undef org_lwjgl_opengl_GL11_GL_ACCUM_BUFFER_BIT -#define org_lwjgl_opengl_GL11_GL_ACCUM_BUFFER_BIT 512L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_BUFFER_BIT -#define org_lwjgl_opengl_GL11_GL_STENCIL_BUFFER_BIT 1024L -#undef org_lwjgl_opengl_GL11_GL_VIEWPORT_BIT -#define org_lwjgl_opengl_GL11_GL_VIEWPORT_BIT 2048L -#undef org_lwjgl_opengl_GL11_GL_TRANSFORM_BIT -#define org_lwjgl_opengl_GL11_GL_TRANSFORM_BIT 4096L -#undef org_lwjgl_opengl_GL11_GL_ENABLE_BIT -#define org_lwjgl_opengl_GL11_GL_ENABLE_BIT 8192L -#undef org_lwjgl_opengl_GL11_GL_COLOR_BUFFER_BIT -#define org_lwjgl_opengl_GL11_GL_COLOR_BUFFER_BIT 16384L -#undef org_lwjgl_opengl_GL11_GL_HINT_BIT -#define org_lwjgl_opengl_GL11_GL_HINT_BIT 32768L -#undef org_lwjgl_opengl_GL11_GL_EVAL_BIT -#define org_lwjgl_opengl_GL11_GL_EVAL_BIT 65536L -#undef org_lwjgl_opengl_GL11_GL_LIST_BIT -#define org_lwjgl_opengl_GL11_GL_LIST_BIT 131072L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_BIT -#define org_lwjgl_opengl_GL11_GL_TEXTURE_BIT 262144L -#undef org_lwjgl_opengl_GL11_GL_SCISSOR_BIT -#define org_lwjgl_opengl_GL11_GL_SCISSOR_BIT 524288L -#undef org_lwjgl_opengl_GL11_GL_ALL_ATTRIB_BITS -#define org_lwjgl_opengl_GL11_GL_ALL_ATTRIB_BITS 1048575L -#undef org_lwjgl_opengl_GL11_GL_POINTS -#define org_lwjgl_opengl_GL11_GL_POINTS 0L -#undef org_lwjgl_opengl_GL11_GL_LINES -#define org_lwjgl_opengl_GL11_GL_LINES 1L -#undef org_lwjgl_opengl_GL11_GL_LINE_LOOP -#define org_lwjgl_opengl_GL11_GL_LINE_LOOP 2L -#undef org_lwjgl_opengl_GL11_GL_LINE_STRIP -#define org_lwjgl_opengl_GL11_GL_LINE_STRIP 3L -#undef org_lwjgl_opengl_GL11_GL_TRIANGLES -#define org_lwjgl_opengl_GL11_GL_TRIANGLES 4L -#undef org_lwjgl_opengl_GL11_GL_TRIANGLE_STRIP -#define org_lwjgl_opengl_GL11_GL_TRIANGLE_STRIP 5L -#undef org_lwjgl_opengl_GL11_GL_TRIANGLE_FAN -#define org_lwjgl_opengl_GL11_GL_TRIANGLE_FAN 6L -#undef org_lwjgl_opengl_GL11_GL_QUADS -#define org_lwjgl_opengl_GL11_GL_QUADS 7L -#undef org_lwjgl_opengl_GL11_GL_QUAD_STRIP -#define org_lwjgl_opengl_GL11_GL_QUAD_STRIP 8L -#undef org_lwjgl_opengl_GL11_GL_POLYGON -#define org_lwjgl_opengl_GL11_GL_POLYGON 9L -#undef org_lwjgl_opengl_GL11_GL_ZERO -#define org_lwjgl_opengl_GL11_GL_ZERO 0L -#undef org_lwjgl_opengl_GL11_GL_ONE -#define org_lwjgl_opengl_GL11_GL_ONE 1L -#undef org_lwjgl_opengl_GL11_GL_SRC_COLOR -#define org_lwjgl_opengl_GL11_GL_SRC_COLOR 768L -#undef org_lwjgl_opengl_GL11_GL_ONE_MINUS_SRC_COLOR -#define org_lwjgl_opengl_GL11_GL_ONE_MINUS_SRC_COLOR 769L -#undef org_lwjgl_opengl_GL11_GL_SRC_ALPHA -#define org_lwjgl_opengl_GL11_GL_SRC_ALPHA 770L -#undef org_lwjgl_opengl_GL11_GL_ONE_MINUS_SRC_ALPHA -#define org_lwjgl_opengl_GL11_GL_ONE_MINUS_SRC_ALPHA 771L -#undef org_lwjgl_opengl_GL11_GL_DST_ALPHA -#define org_lwjgl_opengl_GL11_GL_DST_ALPHA 772L -#undef org_lwjgl_opengl_GL11_GL_ONE_MINUS_DST_ALPHA -#define org_lwjgl_opengl_GL11_GL_ONE_MINUS_DST_ALPHA 773L -#undef org_lwjgl_opengl_GL11_GL_DST_COLOR -#define org_lwjgl_opengl_GL11_GL_DST_COLOR 774L -#undef org_lwjgl_opengl_GL11_GL_ONE_MINUS_DST_COLOR -#define org_lwjgl_opengl_GL11_GL_ONE_MINUS_DST_COLOR 775L -#undef org_lwjgl_opengl_GL11_GL_SRC_ALPHA_SATURATE -#define org_lwjgl_opengl_GL11_GL_SRC_ALPHA_SATURATE 776L -#undef org_lwjgl_opengl_GL11_GL_CONSTANT_COLOR -#define org_lwjgl_opengl_GL11_GL_CONSTANT_COLOR 32769L -#undef org_lwjgl_opengl_GL11_GL_ONE_MINUS_CONSTANT_COLOR -#define org_lwjgl_opengl_GL11_GL_ONE_MINUS_CONSTANT_COLOR 32770L -#undef org_lwjgl_opengl_GL11_GL_CONSTANT_ALPHA -#define org_lwjgl_opengl_GL11_GL_CONSTANT_ALPHA 32771L -#undef org_lwjgl_opengl_GL11_GL_ONE_MINUS_CONSTANT_ALPHA -#define org_lwjgl_opengl_GL11_GL_ONE_MINUS_CONSTANT_ALPHA 32772L -#undef org_lwjgl_opengl_GL11_GL_TRUE -#define org_lwjgl_opengl_GL11_GL_TRUE 1L -#undef org_lwjgl_opengl_GL11_GL_FALSE -#define org_lwjgl_opengl_GL11_GL_FALSE 0L -#undef org_lwjgl_opengl_GL11_GL_CLIP_PLANE0 -#define org_lwjgl_opengl_GL11_GL_CLIP_PLANE0 12288L -#undef org_lwjgl_opengl_GL11_GL_CLIP_PLANE1 -#define org_lwjgl_opengl_GL11_GL_CLIP_PLANE1 12289L -#undef org_lwjgl_opengl_GL11_GL_CLIP_PLANE2 -#define org_lwjgl_opengl_GL11_GL_CLIP_PLANE2 12290L -#undef org_lwjgl_opengl_GL11_GL_CLIP_PLANE3 -#define org_lwjgl_opengl_GL11_GL_CLIP_PLANE3 12291L -#undef org_lwjgl_opengl_GL11_GL_CLIP_PLANE4 -#define org_lwjgl_opengl_GL11_GL_CLIP_PLANE4 12292L -#undef org_lwjgl_opengl_GL11_GL_CLIP_PLANE5 -#define org_lwjgl_opengl_GL11_GL_CLIP_PLANE5 12293L -#undef org_lwjgl_opengl_GL11_GL_BYTE -#define org_lwjgl_opengl_GL11_GL_BYTE 5120L -#undef org_lwjgl_opengl_GL11_GL_UNSIGNED_BYTE -#define org_lwjgl_opengl_GL11_GL_UNSIGNED_BYTE 5121L -#undef org_lwjgl_opengl_GL11_GL_SHORT -#define org_lwjgl_opengl_GL11_GL_SHORT 5122L -#undef org_lwjgl_opengl_GL11_GL_UNSIGNED_SHORT -#define org_lwjgl_opengl_GL11_GL_UNSIGNED_SHORT 5123L -#undef org_lwjgl_opengl_GL11_GL_INT -#define org_lwjgl_opengl_GL11_GL_INT 5124L -#undef org_lwjgl_opengl_GL11_GL_UNSIGNED_INT -#define org_lwjgl_opengl_GL11_GL_UNSIGNED_INT 5125L -#undef org_lwjgl_opengl_GL11_GL_FLOAT -#define org_lwjgl_opengl_GL11_GL_FLOAT 5126L -#undef org_lwjgl_opengl_GL11_GL_2_BYTES -#define org_lwjgl_opengl_GL11_GL_2_BYTES 5127L -#undef org_lwjgl_opengl_GL11_GL_3_BYTES -#define org_lwjgl_opengl_GL11_GL_3_BYTES 5128L -#undef org_lwjgl_opengl_GL11_GL_4_BYTES -#define org_lwjgl_opengl_GL11_GL_4_BYTES 5129L -#undef org_lwjgl_opengl_GL11_GL_DOUBLE -#define org_lwjgl_opengl_GL11_GL_DOUBLE 5130L -#undef org_lwjgl_opengl_GL11_GL_NONE -#define org_lwjgl_opengl_GL11_GL_NONE 0L -#undef org_lwjgl_opengl_GL11_GL_FRONT_LEFT -#define org_lwjgl_opengl_GL11_GL_FRONT_LEFT 1024L -#undef org_lwjgl_opengl_GL11_GL_FRONT_RIGHT -#define org_lwjgl_opengl_GL11_GL_FRONT_RIGHT 1025L -#undef org_lwjgl_opengl_GL11_GL_BACK_LEFT -#define org_lwjgl_opengl_GL11_GL_BACK_LEFT 1026L -#undef org_lwjgl_opengl_GL11_GL_BACK_RIGHT -#define org_lwjgl_opengl_GL11_GL_BACK_RIGHT 1027L -#undef org_lwjgl_opengl_GL11_GL_FRONT -#define org_lwjgl_opengl_GL11_GL_FRONT 1028L -#undef org_lwjgl_opengl_GL11_GL_BACK -#define org_lwjgl_opengl_GL11_GL_BACK 1029L -#undef org_lwjgl_opengl_GL11_GL_LEFT -#define org_lwjgl_opengl_GL11_GL_LEFT 1030L -#undef org_lwjgl_opengl_GL11_GL_RIGHT -#define org_lwjgl_opengl_GL11_GL_RIGHT 1031L -#undef org_lwjgl_opengl_GL11_GL_FRONT_AND_BACK -#define org_lwjgl_opengl_GL11_GL_FRONT_AND_BACK 1032L -#undef org_lwjgl_opengl_GL11_GL_AUX0 -#define org_lwjgl_opengl_GL11_GL_AUX0 1033L -#undef org_lwjgl_opengl_GL11_GL_AUX1 -#define org_lwjgl_opengl_GL11_GL_AUX1 1034L -#undef org_lwjgl_opengl_GL11_GL_AUX2 -#define org_lwjgl_opengl_GL11_GL_AUX2 1035L -#undef org_lwjgl_opengl_GL11_GL_AUX3 -#define org_lwjgl_opengl_GL11_GL_AUX3 1036L -#undef org_lwjgl_opengl_GL11_GL_NO_ERROR -#define org_lwjgl_opengl_GL11_GL_NO_ERROR 0L -#undef org_lwjgl_opengl_GL11_GL_INVALID_ENUM -#define org_lwjgl_opengl_GL11_GL_INVALID_ENUM 1280L -#undef org_lwjgl_opengl_GL11_GL_INVALID_VALUE -#define org_lwjgl_opengl_GL11_GL_INVALID_VALUE 1281L -#undef org_lwjgl_opengl_GL11_GL_INVALID_OPERATION -#define org_lwjgl_opengl_GL11_GL_INVALID_OPERATION 1282L -#undef org_lwjgl_opengl_GL11_GL_STACK_OVERFLOW -#define org_lwjgl_opengl_GL11_GL_STACK_OVERFLOW 1283L -#undef org_lwjgl_opengl_GL11_GL_STACK_UNDERFLOW -#define org_lwjgl_opengl_GL11_GL_STACK_UNDERFLOW 1284L -#undef org_lwjgl_opengl_GL11_GL_OUT_OF_MEMORY -#define org_lwjgl_opengl_GL11_GL_OUT_OF_MEMORY 1285L -#undef org_lwjgl_opengl_GL11_GL_2D -#define org_lwjgl_opengl_GL11_GL_2D 1536L -#undef org_lwjgl_opengl_GL11_GL_3D -#define org_lwjgl_opengl_GL11_GL_3D 1537L -#undef org_lwjgl_opengl_GL11_GL_3D_COLOR -#define org_lwjgl_opengl_GL11_GL_3D_COLOR 1538L -#undef org_lwjgl_opengl_GL11_GL_3D_COLOR_TEXTURE -#define org_lwjgl_opengl_GL11_GL_3D_COLOR_TEXTURE 1539L -#undef org_lwjgl_opengl_GL11_GL_4D_COLOR_TEXTURE -#define org_lwjgl_opengl_GL11_GL_4D_COLOR_TEXTURE 1540L -#undef org_lwjgl_opengl_GL11_GL_PASS_THROUGH_TOKEN -#define org_lwjgl_opengl_GL11_GL_PASS_THROUGH_TOKEN 1792L -#undef org_lwjgl_opengl_GL11_GL_POINT_TOKEN -#define org_lwjgl_opengl_GL11_GL_POINT_TOKEN 1793L -#undef org_lwjgl_opengl_GL11_GL_LINE_TOKEN -#define org_lwjgl_opengl_GL11_GL_LINE_TOKEN 1794L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_TOKEN -#define org_lwjgl_opengl_GL11_GL_POLYGON_TOKEN 1795L -#undef org_lwjgl_opengl_GL11_GL_BITMAP_TOKEN -#define org_lwjgl_opengl_GL11_GL_BITMAP_TOKEN 1796L -#undef org_lwjgl_opengl_GL11_GL_DRAW_PIXEL_TOKEN -#define org_lwjgl_opengl_GL11_GL_DRAW_PIXEL_TOKEN 1797L -#undef org_lwjgl_opengl_GL11_GL_COPY_PIXEL_TOKEN -#define org_lwjgl_opengl_GL11_GL_COPY_PIXEL_TOKEN 1798L -#undef org_lwjgl_opengl_GL11_GL_LINE_RESET_TOKEN -#define org_lwjgl_opengl_GL11_GL_LINE_RESET_TOKEN 1799L -#undef org_lwjgl_opengl_GL11_GL_EXP -#define org_lwjgl_opengl_GL11_GL_EXP 2048L -#undef org_lwjgl_opengl_GL11_GL_EXP2 -#define org_lwjgl_opengl_GL11_GL_EXP2 2049L -#undef org_lwjgl_opengl_GL11_GL_CW -#define org_lwjgl_opengl_GL11_GL_CW 2304L -#undef org_lwjgl_opengl_GL11_GL_CCW -#define org_lwjgl_opengl_GL11_GL_CCW 2305L -#undef org_lwjgl_opengl_GL11_GL_COEFF -#define org_lwjgl_opengl_GL11_GL_COEFF 2560L -#undef org_lwjgl_opengl_GL11_GL_ORDER -#define org_lwjgl_opengl_GL11_GL_ORDER 2561L -#undef org_lwjgl_opengl_GL11_GL_DOMAIN -#define org_lwjgl_opengl_GL11_GL_DOMAIN 2562L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_COLOR -#define org_lwjgl_opengl_GL11_GL_CURRENT_COLOR 2816L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_INDEX -#define org_lwjgl_opengl_GL11_GL_CURRENT_INDEX 2817L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_NORMAL -#define org_lwjgl_opengl_GL11_GL_CURRENT_NORMAL 2818L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_TEXTURE_COORDS -#define org_lwjgl_opengl_GL11_GL_CURRENT_TEXTURE_COORDS 2819L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_COLOR -#define org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_COLOR 2820L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_INDEX -#define org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_INDEX 2821L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_TEXTURE_COORDS -#define org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_TEXTURE_COORDS 2822L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_POSITION -#define org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_POSITION 2823L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_POSITION_VALID -#define org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_POSITION_VALID 2824L -#undef org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_DISTANCE -#define org_lwjgl_opengl_GL11_GL_CURRENT_RASTER_DISTANCE 2825L -#undef org_lwjgl_opengl_GL11_GL_POINT_SMOOTH -#define org_lwjgl_opengl_GL11_GL_POINT_SMOOTH 2832L -#undef org_lwjgl_opengl_GL11_GL_POINT_SIZE -#define org_lwjgl_opengl_GL11_GL_POINT_SIZE 2833L -#undef org_lwjgl_opengl_GL11_GL_POINT_SIZE_RANGE -#define org_lwjgl_opengl_GL11_GL_POINT_SIZE_RANGE 2834L -#undef org_lwjgl_opengl_GL11_GL_POINT_SIZE_GRANULARITY -#define org_lwjgl_opengl_GL11_GL_POINT_SIZE_GRANULARITY 2835L -#undef org_lwjgl_opengl_GL11_GL_LINE_SMOOTH -#define org_lwjgl_opengl_GL11_GL_LINE_SMOOTH 2848L -#undef org_lwjgl_opengl_GL11_GL_LINE_WIDTH -#define org_lwjgl_opengl_GL11_GL_LINE_WIDTH 2849L -#undef org_lwjgl_opengl_GL11_GL_LINE_WIDTH_RANGE -#define org_lwjgl_opengl_GL11_GL_LINE_WIDTH_RANGE 2850L -#undef org_lwjgl_opengl_GL11_GL_LINE_WIDTH_GRANULARITY -#define org_lwjgl_opengl_GL11_GL_LINE_WIDTH_GRANULARITY 2851L -#undef org_lwjgl_opengl_GL11_GL_LINE_STIPPLE -#define org_lwjgl_opengl_GL11_GL_LINE_STIPPLE 2852L -#undef org_lwjgl_opengl_GL11_GL_LINE_STIPPLE_PATTERN -#define org_lwjgl_opengl_GL11_GL_LINE_STIPPLE_PATTERN 2853L -#undef org_lwjgl_opengl_GL11_GL_LINE_STIPPLE_REPEAT -#define org_lwjgl_opengl_GL11_GL_LINE_STIPPLE_REPEAT 2854L -#undef org_lwjgl_opengl_GL11_GL_LIST_MODE -#define org_lwjgl_opengl_GL11_GL_LIST_MODE 2864L -#undef org_lwjgl_opengl_GL11_GL_MAX_LIST_NESTING -#define org_lwjgl_opengl_GL11_GL_MAX_LIST_NESTING 2865L -#undef org_lwjgl_opengl_GL11_GL_LIST_BASE -#define org_lwjgl_opengl_GL11_GL_LIST_BASE 2866L -#undef org_lwjgl_opengl_GL11_GL_LIST_INDEX -#define org_lwjgl_opengl_GL11_GL_LIST_INDEX 2867L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_MODE -#define org_lwjgl_opengl_GL11_GL_POLYGON_MODE 2880L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_SMOOTH -#define org_lwjgl_opengl_GL11_GL_POLYGON_SMOOTH 2881L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_STIPPLE -#define org_lwjgl_opengl_GL11_GL_POLYGON_STIPPLE 2882L -#undef org_lwjgl_opengl_GL11_GL_EDGE_FLAG -#define org_lwjgl_opengl_GL11_GL_EDGE_FLAG 2883L -#undef org_lwjgl_opengl_GL11_GL_CULL_FACE -#define org_lwjgl_opengl_GL11_GL_CULL_FACE 2884L -#undef org_lwjgl_opengl_GL11_GL_CULL_FACE_MODE -#define org_lwjgl_opengl_GL11_GL_CULL_FACE_MODE 2885L -#undef org_lwjgl_opengl_GL11_GL_FRONT_FACE -#define org_lwjgl_opengl_GL11_GL_FRONT_FACE 2886L -#undef org_lwjgl_opengl_GL11_GL_LIGHTING -#define org_lwjgl_opengl_GL11_GL_LIGHTING 2896L -#undef org_lwjgl_opengl_GL11_GL_LIGHT_MODEL_LOCAL_VIEWER -#define org_lwjgl_opengl_GL11_GL_LIGHT_MODEL_LOCAL_VIEWER 2897L -#undef org_lwjgl_opengl_GL11_GL_LIGHT_MODEL_TWO_SIDE -#define org_lwjgl_opengl_GL11_GL_LIGHT_MODEL_TWO_SIDE 2898L -#undef org_lwjgl_opengl_GL11_GL_LIGHT_MODEL_AMBIENT -#define org_lwjgl_opengl_GL11_GL_LIGHT_MODEL_AMBIENT 2899L -#undef org_lwjgl_opengl_GL11_GL_SHADE_MODEL -#define org_lwjgl_opengl_GL11_GL_SHADE_MODEL 2900L -#undef org_lwjgl_opengl_GL11_GL_COLOR_MATERIAL_FACE -#define org_lwjgl_opengl_GL11_GL_COLOR_MATERIAL_FACE 2901L -#undef org_lwjgl_opengl_GL11_GL_COLOR_MATERIAL_PARAMETER -#define org_lwjgl_opengl_GL11_GL_COLOR_MATERIAL_PARAMETER 2902L -#undef org_lwjgl_opengl_GL11_GL_COLOR_MATERIAL -#define org_lwjgl_opengl_GL11_GL_COLOR_MATERIAL 2903L -#undef org_lwjgl_opengl_GL11_GL_FOG -#define org_lwjgl_opengl_GL11_GL_FOG 2912L -#undef org_lwjgl_opengl_GL11_GL_FOG_INDEX -#define org_lwjgl_opengl_GL11_GL_FOG_INDEX 2913L -#undef org_lwjgl_opengl_GL11_GL_FOG_DENSITY -#define org_lwjgl_opengl_GL11_GL_FOG_DENSITY 2914L -#undef org_lwjgl_opengl_GL11_GL_FOG_START -#define org_lwjgl_opengl_GL11_GL_FOG_START 2915L -#undef org_lwjgl_opengl_GL11_GL_FOG_END -#define org_lwjgl_opengl_GL11_GL_FOG_END 2916L -#undef org_lwjgl_opengl_GL11_GL_FOG_MODE -#define org_lwjgl_opengl_GL11_GL_FOG_MODE 2917L -#undef org_lwjgl_opengl_GL11_GL_FOG_COLOR -#define org_lwjgl_opengl_GL11_GL_FOG_COLOR 2918L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_RANGE -#define org_lwjgl_opengl_GL11_GL_DEPTH_RANGE 2928L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_TEST -#define org_lwjgl_opengl_GL11_GL_DEPTH_TEST 2929L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_WRITEMASK -#define org_lwjgl_opengl_GL11_GL_DEPTH_WRITEMASK 2930L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_CLEAR_VALUE -#define org_lwjgl_opengl_GL11_GL_DEPTH_CLEAR_VALUE 2931L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_FUNC -#define org_lwjgl_opengl_GL11_GL_DEPTH_FUNC 2932L -#undef org_lwjgl_opengl_GL11_GL_ACCUM_CLEAR_VALUE -#define org_lwjgl_opengl_GL11_GL_ACCUM_CLEAR_VALUE 2944L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_TEST -#define org_lwjgl_opengl_GL11_GL_STENCIL_TEST 2960L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_CLEAR_VALUE -#define org_lwjgl_opengl_GL11_GL_STENCIL_CLEAR_VALUE 2961L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_FUNC -#define org_lwjgl_opengl_GL11_GL_STENCIL_FUNC 2962L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_VALUE_MASK -#define org_lwjgl_opengl_GL11_GL_STENCIL_VALUE_MASK 2963L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_FAIL -#define org_lwjgl_opengl_GL11_GL_STENCIL_FAIL 2964L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_PASS_DEPTH_FAIL -#define org_lwjgl_opengl_GL11_GL_STENCIL_PASS_DEPTH_FAIL 2965L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_PASS_DEPTH_PASS -#define org_lwjgl_opengl_GL11_GL_STENCIL_PASS_DEPTH_PASS 2966L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_REF -#define org_lwjgl_opengl_GL11_GL_STENCIL_REF 2967L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_WRITEMASK -#define org_lwjgl_opengl_GL11_GL_STENCIL_WRITEMASK 2968L -#undef org_lwjgl_opengl_GL11_GL_MATRIX_MODE -#define org_lwjgl_opengl_GL11_GL_MATRIX_MODE 2976L -#undef org_lwjgl_opengl_GL11_GL_NORMALIZE -#define org_lwjgl_opengl_GL11_GL_NORMALIZE 2977L -#undef org_lwjgl_opengl_GL11_GL_VIEWPORT -#define org_lwjgl_opengl_GL11_GL_VIEWPORT 2978L -#undef org_lwjgl_opengl_GL11_GL_MODELVIEW_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_MODELVIEW_STACK_DEPTH 2979L -#undef org_lwjgl_opengl_GL11_GL_PROJECTION_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_PROJECTION_STACK_DEPTH 2980L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_TEXTURE_STACK_DEPTH 2981L -#undef org_lwjgl_opengl_GL11_GL_MODELVIEW_MATRIX -#define org_lwjgl_opengl_GL11_GL_MODELVIEW_MATRIX 2982L -#undef org_lwjgl_opengl_GL11_GL_PROJECTION_MATRIX -#define org_lwjgl_opengl_GL11_GL_PROJECTION_MATRIX 2983L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_MATRIX -#define org_lwjgl_opengl_GL11_GL_TEXTURE_MATRIX 2984L -#undef org_lwjgl_opengl_GL11_GL_ATTRIB_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_ATTRIB_STACK_DEPTH 2992L -#undef org_lwjgl_opengl_GL11_GL_CLIENT_ATTRIB_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_CLIENT_ATTRIB_STACK_DEPTH 2993L -#undef org_lwjgl_opengl_GL11_GL_ALPHA_TEST -#define org_lwjgl_opengl_GL11_GL_ALPHA_TEST 3008L -#undef org_lwjgl_opengl_GL11_GL_ALPHA_TEST_FUNC -#define org_lwjgl_opengl_GL11_GL_ALPHA_TEST_FUNC 3009L -#undef org_lwjgl_opengl_GL11_GL_ALPHA_TEST_REF -#define org_lwjgl_opengl_GL11_GL_ALPHA_TEST_REF 3010L -#undef org_lwjgl_opengl_GL11_GL_DITHER -#define org_lwjgl_opengl_GL11_GL_DITHER 3024L -#undef org_lwjgl_opengl_GL11_GL_BLEND_DST -#define org_lwjgl_opengl_GL11_GL_BLEND_DST 3040L -#undef org_lwjgl_opengl_GL11_GL_BLEND_SRC -#define org_lwjgl_opengl_GL11_GL_BLEND_SRC 3041L -#undef org_lwjgl_opengl_GL11_GL_BLEND -#define org_lwjgl_opengl_GL11_GL_BLEND 3042L -#undef org_lwjgl_opengl_GL11_GL_LOGIC_OP_MODE -#define org_lwjgl_opengl_GL11_GL_LOGIC_OP_MODE 3056L -#undef org_lwjgl_opengl_GL11_GL_INDEX_LOGIC_OP -#define org_lwjgl_opengl_GL11_GL_INDEX_LOGIC_OP 3057L -#undef org_lwjgl_opengl_GL11_GL_COLOR_LOGIC_OP -#define org_lwjgl_opengl_GL11_GL_COLOR_LOGIC_OP 3058L -#undef org_lwjgl_opengl_GL11_GL_AUX_BUFFERS -#define org_lwjgl_opengl_GL11_GL_AUX_BUFFERS 3072L -#undef org_lwjgl_opengl_GL11_GL_DRAW_BUFFER -#define org_lwjgl_opengl_GL11_GL_DRAW_BUFFER 3073L -#undef org_lwjgl_opengl_GL11_GL_READ_BUFFER -#define org_lwjgl_opengl_GL11_GL_READ_BUFFER 3074L -#undef org_lwjgl_opengl_GL11_GL_SCISSOR_BOX -#define org_lwjgl_opengl_GL11_GL_SCISSOR_BOX 3088L -#undef org_lwjgl_opengl_GL11_GL_SCISSOR_TEST -#define org_lwjgl_opengl_GL11_GL_SCISSOR_TEST 3089L -#undef org_lwjgl_opengl_GL11_GL_INDEX_CLEAR_VALUE -#define org_lwjgl_opengl_GL11_GL_INDEX_CLEAR_VALUE 3104L -#undef org_lwjgl_opengl_GL11_GL_INDEX_WRITEMASK -#define org_lwjgl_opengl_GL11_GL_INDEX_WRITEMASK 3105L -#undef org_lwjgl_opengl_GL11_GL_COLOR_CLEAR_VALUE -#define org_lwjgl_opengl_GL11_GL_COLOR_CLEAR_VALUE 3106L -#undef org_lwjgl_opengl_GL11_GL_COLOR_WRITEMASK -#define org_lwjgl_opengl_GL11_GL_COLOR_WRITEMASK 3107L -#undef org_lwjgl_opengl_GL11_GL_INDEX_MODE -#define org_lwjgl_opengl_GL11_GL_INDEX_MODE 3120L -#undef org_lwjgl_opengl_GL11_GL_RGBA_MODE -#define org_lwjgl_opengl_GL11_GL_RGBA_MODE 3121L -#undef org_lwjgl_opengl_GL11_GL_DOUBLEBUFFER -#define org_lwjgl_opengl_GL11_GL_DOUBLEBUFFER 3122L -#undef org_lwjgl_opengl_GL11_GL_STEREO -#define org_lwjgl_opengl_GL11_GL_STEREO 3123L -#undef org_lwjgl_opengl_GL11_GL_RENDER_MODE -#define org_lwjgl_opengl_GL11_GL_RENDER_MODE 3136L -#undef org_lwjgl_opengl_GL11_GL_PERSPECTIVE_CORRECTION_HINT -#define org_lwjgl_opengl_GL11_GL_PERSPECTIVE_CORRECTION_HINT 3152L -#undef org_lwjgl_opengl_GL11_GL_POINT_SMOOTH_HINT -#define org_lwjgl_opengl_GL11_GL_POINT_SMOOTH_HINT 3153L -#undef org_lwjgl_opengl_GL11_GL_LINE_SMOOTH_HINT -#define org_lwjgl_opengl_GL11_GL_LINE_SMOOTH_HINT 3154L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_SMOOTH_HINT -#define org_lwjgl_opengl_GL11_GL_POLYGON_SMOOTH_HINT 3155L -#undef org_lwjgl_opengl_GL11_GL_FOG_HINT -#define org_lwjgl_opengl_GL11_GL_FOG_HINT 3156L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_S -#define org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_S 3168L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_T -#define org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_T 3169L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_R -#define org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_R 3170L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_Q -#define org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_Q 3171L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_I -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_I 3184L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_S_TO_S -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_S_TO_S 3185L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_R -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_R 3186L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_G -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_G 3187L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_B -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_B 3188L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_A -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_A 3189L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_R_TO_R -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_R_TO_R 3190L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_G_TO_G -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_G_TO_G 3191L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_B_TO_B -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_B_TO_B 3192L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_A_TO_A -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_A_TO_A 3193L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_I_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_I_SIZE 3248L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_S_TO_S_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_S_TO_S_SIZE 3249L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_R_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_R_SIZE 3250L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_G_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_G_SIZE 3251L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_B_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_B_SIZE 3252L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_A_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_I_TO_A_SIZE 3253L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_R_TO_R_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_R_TO_R_SIZE 3254L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_G_TO_G_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_G_TO_G_SIZE 3255L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_B_TO_B_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_B_TO_B_SIZE 3256L -#undef org_lwjgl_opengl_GL11_GL_PIXEL_MAP_A_TO_A_SIZE -#define org_lwjgl_opengl_GL11_GL_PIXEL_MAP_A_TO_A_SIZE 3257L -#undef org_lwjgl_opengl_GL11_GL_UNPACK_SWAP_BYTES -#define org_lwjgl_opengl_GL11_GL_UNPACK_SWAP_BYTES 3312L -#undef org_lwjgl_opengl_GL11_GL_UNPACK_LSB_FIRST -#define org_lwjgl_opengl_GL11_GL_UNPACK_LSB_FIRST 3313L -#undef org_lwjgl_opengl_GL11_GL_UNPACK_ROW_LENGTH -#define org_lwjgl_opengl_GL11_GL_UNPACK_ROW_LENGTH 3314L -#undef org_lwjgl_opengl_GL11_GL_UNPACK_SKIP_ROWS -#define org_lwjgl_opengl_GL11_GL_UNPACK_SKIP_ROWS 3315L -#undef org_lwjgl_opengl_GL11_GL_UNPACK_SKIP_PIXELS -#define org_lwjgl_opengl_GL11_GL_UNPACK_SKIP_PIXELS 3316L -#undef org_lwjgl_opengl_GL11_GL_UNPACK_ALIGNMENT -#define org_lwjgl_opengl_GL11_GL_UNPACK_ALIGNMENT 3317L -#undef org_lwjgl_opengl_GL11_GL_PACK_SWAP_BYTES -#define org_lwjgl_opengl_GL11_GL_PACK_SWAP_BYTES 3328L -#undef org_lwjgl_opengl_GL11_GL_PACK_LSB_FIRST -#define org_lwjgl_opengl_GL11_GL_PACK_LSB_FIRST 3329L -#undef org_lwjgl_opengl_GL11_GL_PACK_ROW_LENGTH -#define org_lwjgl_opengl_GL11_GL_PACK_ROW_LENGTH 3330L -#undef org_lwjgl_opengl_GL11_GL_PACK_SKIP_ROWS -#define org_lwjgl_opengl_GL11_GL_PACK_SKIP_ROWS 3331L -#undef org_lwjgl_opengl_GL11_GL_PACK_SKIP_PIXELS -#define org_lwjgl_opengl_GL11_GL_PACK_SKIP_PIXELS 3332L -#undef org_lwjgl_opengl_GL11_GL_PACK_ALIGNMENT -#define org_lwjgl_opengl_GL11_GL_PACK_ALIGNMENT 3333L -#undef org_lwjgl_opengl_GL11_GL_MAP_COLOR -#define org_lwjgl_opengl_GL11_GL_MAP_COLOR 3344L -#undef org_lwjgl_opengl_GL11_GL_MAP_STENCIL -#define org_lwjgl_opengl_GL11_GL_MAP_STENCIL 3345L -#undef org_lwjgl_opengl_GL11_GL_INDEX_SHIFT -#define org_lwjgl_opengl_GL11_GL_INDEX_SHIFT 3346L -#undef org_lwjgl_opengl_GL11_GL_INDEX_OFFSET -#define org_lwjgl_opengl_GL11_GL_INDEX_OFFSET 3347L -#undef org_lwjgl_opengl_GL11_GL_RED_SCALE -#define org_lwjgl_opengl_GL11_GL_RED_SCALE 3348L -#undef org_lwjgl_opengl_GL11_GL_RED_BIAS -#define org_lwjgl_opengl_GL11_GL_RED_BIAS 3349L -#undef org_lwjgl_opengl_GL11_GL_ZOOM_X -#define org_lwjgl_opengl_GL11_GL_ZOOM_X 3350L -#undef org_lwjgl_opengl_GL11_GL_ZOOM_Y -#define org_lwjgl_opengl_GL11_GL_ZOOM_Y 3351L -#undef org_lwjgl_opengl_GL11_GL_GREEN_SCALE -#define org_lwjgl_opengl_GL11_GL_GREEN_SCALE 3352L -#undef org_lwjgl_opengl_GL11_GL_GREEN_BIAS -#define org_lwjgl_opengl_GL11_GL_GREEN_BIAS 3353L -#undef org_lwjgl_opengl_GL11_GL_BLUE_SCALE -#define org_lwjgl_opengl_GL11_GL_BLUE_SCALE 3354L -#undef org_lwjgl_opengl_GL11_GL_BLUE_BIAS -#define org_lwjgl_opengl_GL11_GL_BLUE_BIAS 3355L -#undef org_lwjgl_opengl_GL11_GL_ALPHA_SCALE -#define org_lwjgl_opengl_GL11_GL_ALPHA_SCALE 3356L -#undef org_lwjgl_opengl_GL11_GL_ALPHA_BIAS -#define org_lwjgl_opengl_GL11_GL_ALPHA_BIAS 3357L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_SCALE -#define org_lwjgl_opengl_GL11_GL_DEPTH_SCALE 3358L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_BIAS -#define org_lwjgl_opengl_GL11_GL_DEPTH_BIAS 3359L -#undef org_lwjgl_opengl_GL11_GL_MAX_EVAL_ORDER -#define org_lwjgl_opengl_GL11_GL_MAX_EVAL_ORDER 3376L -#undef org_lwjgl_opengl_GL11_GL_MAX_LIGHTS -#define org_lwjgl_opengl_GL11_GL_MAX_LIGHTS 3377L -#undef org_lwjgl_opengl_GL11_GL_MAX_CLIP_PLANES -#define org_lwjgl_opengl_GL11_GL_MAX_CLIP_PLANES 3378L -#undef org_lwjgl_opengl_GL11_GL_MAX_TEXTURE_SIZE -#define org_lwjgl_opengl_GL11_GL_MAX_TEXTURE_SIZE 3379L -#undef org_lwjgl_opengl_GL11_GL_MAX_PIXEL_MAP_TABLE -#define org_lwjgl_opengl_GL11_GL_MAX_PIXEL_MAP_TABLE 3380L -#undef org_lwjgl_opengl_GL11_GL_MAX_ATTRIB_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_MAX_ATTRIB_STACK_DEPTH 3381L -#undef org_lwjgl_opengl_GL11_GL_MAX_MODELVIEW_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_MAX_MODELVIEW_STACK_DEPTH 3382L -#undef org_lwjgl_opengl_GL11_GL_MAX_NAME_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_MAX_NAME_STACK_DEPTH 3383L -#undef org_lwjgl_opengl_GL11_GL_MAX_PROJECTION_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_MAX_PROJECTION_STACK_DEPTH 3384L -#undef org_lwjgl_opengl_GL11_GL_MAX_TEXTURE_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_MAX_TEXTURE_STACK_DEPTH 3385L -#undef org_lwjgl_opengl_GL11_GL_MAX_VIEWPORT_DIMS -#define org_lwjgl_opengl_GL11_GL_MAX_VIEWPORT_DIMS 3386L -#undef org_lwjgl_opengl_GL11_GL_MAX_CLIENT_ATTRIB_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_MAX_CLIENT_ATTRIB_STACK_DEPTH 3387L -#undef org_lwjgl_opengl_GL11_GL_SUBPIXEL_BITS -#define org_lwjgl_opengl_GL11_GL_SUBPIXEL_BITS 3408L -#undef org_lwjgl_opengl_GL11_GL_INDEX_BITS -#define org_lwjgl_opengl_GL11_GL_INDEX_BITS 3409L -#undef org_lwjgl_opengl_GL11_GL_RED_BITS -#define org_lwjgl_opengl_GL11_GL_RED_BITS 3410L -#undef org_lwjgl_opengl_GL11_GL_GREEN_BITS -#define org_lwjgl_opengl_GL11_GL_GREEN_BITS 3411L -#undef org_lwjgl_opengl_GL11_GL_BLUE_BITS -#define org_lwjgl_opengl_GL11_GL_BLUE_BITS 3412L -#undef org_lwjgl_opengl_GL11_GL_ALPHA_BITS -#define org_lwjgl_opengl_GL11_GL_ALPHA_BITS 3413L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_BITS -#define org_lwjgl_opengl_GL11_GL_DEPTH_BITS 3414L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_BITS -#define org_lwjgl_opengl_GL11_GL_STENCIL_BITS 3415L -#undef org_lwjgl_opengl_GL11_GL_ACCUM_RED_BITS -#define org_lwjgl_opengl_GL11_GL_ACCUM_RED_BITS 3416L -#undef org_lwjgl_opengl_GL11_GL_ACCUM_GREEN_BITS -#define org_lwjgl_opengl_GL11_GL_ACCUM_GREEN_BITS 3417L -#undef org_lwjgl_opengl_GL11_GL_ACCUM_BLUE_BITS -#define org_lwjgl_opengl_GL11_GL_ACCUM_BLUE_BITS 3418L -#undef org_lwjgl_opengl_GL11_GL_ACCUM_ALPHA_BITS -#define org_lwjgl_opengl_GL11_GL_ACCUM_ALPHA_BITS 3419L -#undef org_lwjgl_opengl_GL11_GL_NAME_STACK_DEPTH -#define org_lwjgl_opengl_GL11_GL_NAME_STACK_DEPTH 3440L -#undef org_lwjgl_opengl_GL11_GL_AUTO_NORMAL -#define org_lwjgl_opengl_GL11_GL_AUTO_NORMAL 3456L -#undef org_lwjgl_opengl_GL11_GL_MAP1_COLOR_4 -#define org_lwjgl_opengl_GL11_GL_MAP1_COLOR_4 3472L -#undef org_lwjgl_opengl_GL11_GL_MAP1_INDEX -#define org_lwjgl_opengl_GL11_GL_MAP1_INDEX 3473L -#undef org_lwjgl_opengl_GL11_GL_MAP1_NORMAL -#define org_lwjgl_opengl_GL11_GL_MAP1_NORMAL 3474L -#undef org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_1 -#define org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_1 3475L -#undef org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_2 -#define org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_2 3476L -#undef org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_3 -#define org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_3 3477L -#undef org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_4 -#define org_lwjgl_opengl_GL11_GL_MAP1_TEXTURE_COORD_4 3478L -#undef org_lwjgl_opengl_GL11_GL_MAP1_VERTEX_3 -#define org_lwjgl_opengl_GL11_GL_MAP1_VERTEX_3 3479L -#undef org_lwjgl_opengl_GL11_GL_MAP1_VERTEX_4 -#define org_lwjgl_opengl_GL11_GL_MAP1_VERTEX_4 3480L -#undef org_lwjgl_opengl_GL11_GL_MAP2_COLOR_4 -#define org_lwjgl_opengl_GL11_GL_MAP2_COLOR_4 3504L -#undef org_lwjgl_opengl_GL11_GL_MAP2_INDEX -#define org_lwjgl_opengl_GL11_GL_MAP2_INDEX 3505L -#undef org_lwjgl_opengl_GL11_GL_MAP2_NORMAL -#define org_lwjgl_opengl_GL11_GL_MAP2_NORMAL 3506L -#undef org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_1 -#define org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_1 3507L -#undef org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_2 -#define org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_2 3508L -#undef org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_3 -#define org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_3 3509L -#undef org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_4 -#define org_lwjgl_opengl_GL11_GL_MAP2_TEXTURE_COORD_4 3510L -#undef org_lwjgl_opengl_GL11_GL_MAP2_VERTEX_3 -#define org_lwjgl_opengl_GL11_GL_MAP2_VERTEX_3 3511L -#undef org_lwjgl_opengl_GL11_GL_MAP2_VERTEX_4 -#define org_lwjgl_opengl_GL11_GL_MAP2_VERTEX_4 3512L -#undef org_lwjgl_opengl_GL11_GL_MAP1_GRID_DOMAIN -#define org_lwjgl_opengl_GL11_GL_MAP1_GRID_DOMAIN 3536L -#undef org_lwjgl_opengl_GL11_GL_MAP1_GRID_SEGMENTS -#define org_lwjgl_opengl_GL11_GL_MAP1_GRID_SEGMENTS 3537L -#undef org_lwjgl_opengl_GL11_GL_MAP2_GRID_DOMAIN -#define org_lwjgl_opengl_GL11_GL_MAP2_GRID_DOMAIN 3538L -#undef org_lwjgl_opengl_GL11_GL_MAP2_GRID_SEGMENTS -#define org_lwjgl_opengl_GL11_GL_MAP2_GRID_SEGMENTS 3539L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_1D -#define org_lwjgl_opengl_GL11_GL_TEXTURE_1D 3552L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_2D -#define org_lwjgl_opengl_GL11_GL_TEXTURE_2D 3553L -#undef org_lwjgl_opengl_GL11_GL_FEEDBACK_BUFFER_POINTER -#define org_lwjgl_opengl_GL11_GL_FEEDBACK_BUFFER_POINTER 3568L -#undef org_lwjgl_opengl_GL11_GL_FEEDBACK_BUFFER_SIZE -#define org_lwjgl_opengl_GL11_GL_FEEDBACK_BUFFER_SIZE 3569L -#undef org_lwjgl_opengl_GL11_GL_FEEDBACK_BUFFER_TYPE -#define org_lwjgl_opengl_GL11_GL_FEEDBACK_BUFFER_TYPE 3570L -#undef org_lwjgl_opengl_GL11_GL_SELECTION_BUFFER_POINTER -#define org_lwjgl_opengl_GL11_GL_SELECTION_BUFFER_POINTER 3571L -#undef org_lwjgl_opengl_GL11_GL_SELECTION_BUFFER_SIZE -#define org_lwjgl_opengl_GL11_GL_SELECTION_BUFFER_SIZE 3572L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_WIDTH -#define org_lwjgl_opengl_GL11_GL_TEXTURE_WIDTH 4096L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_HEIGHT -#define org_lwjgl_opengl_GL11_GL_TEXTURE_HEIGHT 4097L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_INTERNAL_FORMAT -#define org_lwjgl_opengl_GL11_GL_TEXTURE_INTERNAL_FORMAT 4099L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_BORDER_COLOR -#define org_lwjgl_opengl_GL11_GL_TEXTURE_BORDER_COLOR 4100L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_BORDER -#define org_lwjgl_opengl_GL11_GL_TEXTURE_BORDER 4101L -#undef org_lwjgl_opengl_GL11_GL_DONT_CARE -#define org_lwjgl_opengl_GL11_GL_DONT_CARE 4352L -#undef org_lwjgl_opengl_GL11_GL_FASTEST -#define org_lwjgl_opengl_GL11_GL_FASTEST 4353L -#undef org_lwjgl_opengl_GL11_GL_NICEST -#define org_lwjgl_opengl_GL11_GL_NICEST 4354L -#undef org_lwjgl_opengl_GL11_GL_LIGHT0 -#define org_lwjgl_opengl_GL11_GL_LIGHT0 16384L -#undef org_lwjgl_opengl_GL11_GL_LIGHT1 -#define org_lwjgl_opengl_GL11_GL_LIGHT1 16385L -#undef org_lwjgl_opengl_GL11_GL_LIGHT2 -#define org_lwjgl_opengl_GL11_GL_LIGHT2 16386L -#undef org_lwjgl_opengl_GL11_GL_LIGHT3 -#define org_lwjgl_opengl_GL11_GL_LIGHT3 16387L -#undef org_lwjgl_opengl_GL11_GL_LIGHT4 -#define org_lwjgl_opengl_GL11_GL_LIGHT4 16388L -#undef org_lwjgl_opengl_GL11_GL_LIGHT5 -#define org_lwjgl_opengl_GL11_GL_LIGHT5 16389L -#undef org_lwjgl_opengl_GL11_GL_LIGHT6 -#define org_lwjgl_opengl_GL11_GL_LIGHT6 16390L -#undef org_lwjgl_opengl_GL11_GL_LIGHT7 -#define org_lwjgl_opengl_GL11_GL_LIGHT7 16391L -#undef org_lwjgl_opengl_GL11_GL_AMBIENT -#define org_lwjgl_opengl_GL11_GL_AMBIENT 4608L -#undef org_lwjgl_opengl_GL11_GL_DIFFUSE -#define org_lwjgl_opengl_GL11_GL_DIFFUSE 4609L -#undef org_lwjgl_opengl_GL11_GL_SPECULAR -#define org_lwjgl_opengl_GL11_GL_SPECULAR 4610L -#undef org_lwjgl_opengl_GL11_GL_POSITION -#define org_lwjgl_opengl_GL11_GL_POSITION 4611L -#undef org_lwjgl_opengl_GL11_GL_SPOT_DIRECTION -#define org_lwjgl_opengl_GL11_GL_SPOT_DIRECTION 4612L -#undef org_lwjgl_opengl_GL11_GL_SPOT_EXPONENT -#define org_lwjgl_opengl_GL11_GL_SPOT_EXPONENT 4613L -#undef org_lwjgl_opengl_GL11_GL_SPOT_CUTOFF -#define org_lwjgl_opengl_GL11_GL_SPOT_CUTOFF 4614L -#undef org_lwjgl_opengl_GL11_GL_CONSTANT_ATTENUATION -#define org_lwjgl_opengl_GL11_GL_CONSTANT_ATTENUATION 4615L -#undef org_lwjgl_opengl_GL11_GL_LINEAR_ATTENUATION -#define org_lwjgl_opengl_GL11_GL_LINEAR_ATTENUATION 4616L -#undef org_lwjgl_opengl_GL11_GL_QUADRATIC_ATTENUATION -#define org_lwjgl_opengl_GL11_GL_QUADRATIC_ATTENUATION 4617L -#undef org_lwjgl_opengl_GL11_GL_COMPILE -#define org_lwjgl_opengl_GL11_GL_COMPILE 4864L -#undef org_lwjgl_opengl_GL11_GL_COMPILE_AND_EXECUTE -#define org_lwjgl_opengl_GL11_GL_COMPILE_AND_EXECUTE 4865L -#undef org_lwjgl_opengl_GL11_GL_CLEAR -#define org_lwjgl_opengl_GL11_GL_CLEAR 5376L -#undef org_lwjgl_opengl_GL11_GL_AND -#define org_lwjgl_opengl_GL11_GL_AND 5377L -#undef org_lwjgl_opengl_GL11_GL_AND_REVERSE -#define org_lwjgl_opengl_GL11_GL_AND_REVERSE 5378L -#undef org_lwjgl_opengl_GL11_GL_COPY -#define org_lwjgl_opengl_GL11_GL_COPY 5379L -#undef org_lwjgl_opengl_GL11_GL_AND_INVERTED -#define org_lwjgl_opengl_GL11_GL_AND_INVERTED 5380L -#undef org_lwjgl_opengl_GL11_GL_NOOP -#define org_lwjgl_opengl_GL11_GL_NOOP 5381L -#undef org_lwjgl_opengl_GL11_GL_XOR -#define org_lwjgl_opengl_GL11_GL_XOR 5382L -#undef org_lwjgl_opengl_GL11_GL_OR -#define org_lwjgl_opengl_GL11_GL_OR 5383L -#undef org_lwjgl_opengl_GL11_GL_NOR -#define org_lwjgl_opengl_GL11_GL_NOR 5384L -#undef org_lwjgl_opengl_GL11_GL_EQUIV -#define org_lwjgl_opengl_GL11_GL_EQUIV 5385L -#undef org_lwjgl_opengl_GL11_GL_INVERT -#define org_lwjgl_opengl_GL11_GL_INVERT 5386L -#undef org_lwjgl_opengl_GL11_GL_OR_REVERSE -#define org_lwjgl_opengl_GL11_GL_OR_REVERSE 5387L -#undef org_lwjgl_opengl_GL11_GL_COPY_INVERTED -#define org_lwjgl_opengl_GL11_GL_COPY_INVERTED 5388L -#undef org_lwjgl_opengl_GL11_GL_OR_INVERTED -#define org_lwjgl_opengl_GL11_GL_OR_INVERTED 5389L -#undef org_lwjgl_opengl_GL11_GL_NAND -#define org_lwjgl_opengl_GL11_GL_NAND 5390L -#undef org_lwjgl_opengl_GL11_GL_SET -#define org_lwjgl_opengl_GL11_GL_SET 5391L -#undef org_lwjgl_opengl_GL11_GL_EMISSION -#define org_lwjgl_opengl_GL11_GL_EMISSION 5632L -#undef org_lwjgl_opengl_GL11_GL_SHININESS -#define org_lwjgl_opengl_GL11_GL_SHININESS 5633L -#undef org_lwjgl_opengl_GL11_GL_AMBIENT_AND_DIFFUSE -#define org_lwjgl_opengl_GL11_GL_AMBIENT_AND_DIFFUSE 5634L -#undef org_lwjgl_opengl_GL11_GL_COLOR_INDEXES -#define org_lwjgl_opengl_GL11_GL_COLOR_INDEXES 5635L -#undef org_lwjgl_opengl_GL11_GL_MODELVIEW -#define org_lwjgl_opengl_GL11_GL_MODELVIEW 5888L -#undef org_lwjgl_opengl_GL11_GL_PROJECTION -#define org_lwjgl_opengl_GL11_GL_PROJECTION 5889L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE -#define org_lwjgl_opengl_GL11_GL_TEXTURE 5890L -#undef org_lwjgl_opengl_GL11_GL_COLOR -#define org_lwjgl_opengl_GL11_GL_COLOR 6144L -#undef org_lwjgl_opengl_GL11_GL_DEPTH -#define org_lwjgl_opengl_GL11_GL_DEPTH 6145L -#undef org_lwjgl_opengl_GL11_GL_STENCIL -#define org_lwjgl_opengl_GL11_GL_STENCIL 6146L -#undef org_lwjgl_opengl_GL11_GL_COLOR_INDEX -#define org_lwjgl_opengl_GL11_GL_COLOR_INDEX 6400L -#undef org_lwjgl_opengl_GL11_GL_STENCIL_INDEX -#define org_lwjgl_opengl_GL11_GL_STENCIL_INDEX 6401L -#undef org_lwjgl_opengl_GL11_GL_DEPTH_COMPONENT -#define org_lwjgl_opengl_GL11_GL_DEPTH_COMPONENT 6402L -#undef org_lwjgl_opengl_GL11_GL_RED -#define org_lwjgl_opengl_GL11_GL_RED 6403L -#undef org_lwjgl_opengl_GL11_GL_GREEN -#define org_lwjgl_opengl_GL11_GL_GREEN 6404L -#undef org_lwjgl_opengl_GL11_GL_BLUE -#define org_lwjgl_opengl_GL11_GL_BLUE 6405L -#undef org_lwjgl_opengl_GL11_GL_ALPHA -#define org_lwjgl_opengl_GL11_GL_ALPHA 6406L -#undef org_lwjgl_opengl_GL11_GL_RGB -#define org_lwjgl_opengl_GL11_GL_RGB 6407L -#undef org_lwjgl_opengl_GL11_GL_RGBA -#define org_lwjgl_opengl_GL11_GL_RGBA 6408L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE -#define org_lwjgl_opengl_GL11_GL_LUMINANCE 6409L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE_ALPHA -#define org_lwjgl_opengl_GL11_GL_LUMINANCE_ALPHA 6410L -#undef org_lwjgl_opengl_GL11_GL_BITMAP -#define org_lwjgl_opengl_GL11_GL_BITMAP 6656L -#undef org_lwjgl_opengl_GL11_GL_POINT -#define org_lwjgl_opengl_GL11_GL_POINT 6912L -#undef org_lwjgl_opengl_GL11_GL_LINE -#define org_lwjgl_opengl_GL11_GL_LINE 6913L -#undef org_lwjgl_opengl_GL11_GL_FILL -#define org_lwjgl_opengl_GL11_GL_FILL 6914L -#undef org_lwjgl_opengl_GL11_GL_RENDER -#define org_lwjgl_opengl_GL11_GL_RENDER 7168L -#undef org_lwjgl_opengl_GL11_GL_FEEDBACK -#define org_lwjgl_opengl_GL11_GL_FEEDBACK 7169L -#undef org_lwjgl_opengl_GL11_GL_SELECT -#define org_lwjgl_opengl_GL11_GL_SELECT 7170L -#undef org_lwjgl_opengl_GL11_GL_FLAT -#define org_lwjgl_opengl_GL11_GL_FLAT 7424L -#undef org_lwjgl_opengl_GL11_GL_SMOOTH -#define org_lwjgl_opengl_GL11_GL_SMOOTH 7425L -#undef org_lwjgl_opengl_GL11_GL_KEEP -#define org_lwjgl_opengl_GL11_GL_KEEP 7680L -#undef org_lwjgl_opengl_GL11_GL_REPLACE -#define org_lwjgl_opengl_GL11_GL_REPLACE 7681L -#undef org_lwjgl_opengl_GL11_GL_INCR -#define org_lwjgl_opengl_GL11_GL_INCR 7682L -#undef org_lwjgl_opengl_GL11_GL_DECR -#define org_lwjgl_opengl_GL11_GL_DECR 7683L -#undef org_lwjgl_opengl_GL11_GL_VENDOR -#define org_lwjgl_opengl_GL11_GL_VENDOR 7936L -#undef org_lwjgl_opengl_GL11_GL_RENDERER -#define org_lwjgl_opengl_GL11_GL_RENDERER 7937L -#undef org_lwjgl_opengl_GL11_GL_VERSION -#define org_lwjgl_opengl_GL11_GL_VERSION 7938L -#undef org_lwjgl_opengl_GL11_GL_EXTENSIONS -#define org_lwjgl_opengl_GL11_GL_EXTENSIONS 7939L -#undef org_lwjgl_opengl_GL11_GL_S -#define org_lwjgl_opengl_GL11_GL_S 8192L -#undef org_lwjgl_opengl_GL11_GL_T -#define org_lwjgl_opengl_GL11_GL_T 8193L -#undef org_lwjgl_opengl_GL11_GL_R -#define org_lwjgl_opengl_GL11_GL_R 8194L -#undef org_lwjgl_opengl_GL11_GL_Q -#define org_lwjgl_opengl_GL11_GL_Q 8195L -#undef org_lwjgl_opengl_GL11_GL_MODULATE -#define org_lwjgl_opengl_GL11_GL_MODULATE 8448L -#undef org_lwjgl_opengl_GL11_GL_DECAL -#define org_lwjgl_opengl_GL11_GL_DECAL 8449L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_ENV_MODE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_ENV_MODE 8704L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_ENV_COLOR -#define org_lwjgl_opengl_GL11_GL_TEXTURE_ENV_COLOR 8705L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_ENV -#define org_lwjgl_opengl_GL11_GL_TEXTURE_ENV 8960L -#undef org_lwjgl_opengl_GL11_GL_EYE_LINEAR -#define org_lwjgl_opengl_GL11_GL_EYE_LINEAR 9216L -#undef org_lwjgl_opengl_GL11_GL_OBJECT_LINEAR -#define org_lwjgl_opengl_GL11_GL_OBJECT_LINEAR 9217L -#undef org_lwjgl_opengl_GL11_GL_SPHERE_MAP -#define org_lwjgl_opengl_GL11_GL_SPHERE_MAP 9218L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_MODE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_GEN_MODE 9472L -#undef org_lwjgl_opengl_GL11_GL_OBJECT_PLANE -#define org_lwjgl_opengl_GL11_GL_OBJECT_PLANE 9473L -#undef org_lwjgl_opengl_GL11_GL_EYE_PLANE -#define org_lwjgl_opengl_GL11_GL_EYE_PLANE 9474L -#undef org_lwjgl_opengl_GL11_GL_NEAREST -#define org_lwjgl_opengl_GL11_GL_NEAREST 9728L -#undef org_lwjgl_opengl_GL11_GL_LINEAR -#define org_lwjgl_opengl_GL11_GL_LINEAR 9729L -#undef org_lwjgl_opengl_GL11_GL_NEAREST_MIPMAP_NEAREST -#define org_lwjgl_opengl_GL11_GL_NEAREST_MIPMAP_NEAREST 9984L -#undef org_lwjgl_opengl_GL11_GL_LINEAR_MIPMAP_NEAREST -#define org_lwjgl_opengl_GL11_GL_LINEAR_MIPMAP_NEAREST 9985L -#undef org_lwjgl_opengl_GL11_GL_NEAREST_MIPMAP_LINEAR -#define org_lwjgl_opengl_GL11_GL_NEAREST_MIPMAP_LINEAR 9986L -#undef org_lwjgl_opengl_GL11_GL_LINEAR_MIPMAP_LINEAR -#define org_lwjgl_opengl_GL11_GL_LINEAR_MIPMAP_LINEAR 9987L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_MAG_FILTER -#define org_lwjgl_opengl_GL11_GL_TEXTURE_MAG_FILTER 10240L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_MIN_FILTER -#define org_lwjgl_opengl_GL11_GL_TEXTURE_MIN_FILTER 10241L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_WRAP_S -#define org_lwjgl_opengl_GL11_GL_TEXTURE_WRAP_S 10242L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_WRAP_T -#define org_lwjgl_opengl_GL11_GL_TEXTURE_WRAP_T 10243L -#undef org_lwjgl_opengl_GL11_GL_CLAMP -#define org_lwjgl_opengl_GL11_GL_CLAMP 10496L -#undef org_lwjgl_opengl_GL11_GL_REPEAT -#define org_lwjgl_opengl_GL11_GL_REPEAT 10497L -#undef org_lwjgl_opengl_GL11_GL_CLIENT_PIXEL_STORE_BIT -#define org_lwjgl_opengl_GL11_GL_CLIENT_PIXEL_STORE_BIT 1L -#undef org_lwjgl_opengl_GL11_GL_CLIENT_VERTEX_ARRAY_BIT -#define org_lwjgl_opengl_GL11_GL_CLIENT_VERTEX_ARRAY_BIT 2L -#undef org_lwjgl_opengl_GL11_GL_ALL_CLIENT_ATTRIB_BITS -#define org_lwjgl_opengl_GL11_GL_ALL_CLIENT_ATTRIB_BITS -1L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_FACTOR -#define org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_FACTOR 32824L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_UNITS -#define org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_UNITS 10752L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_POINT -#define org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_POINT 10753L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_LINE -#define org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_LINE 10754L -#undef org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_FILL -#define org_lwjgl_opengl_GL11_GL_POLYGON_OFFSET_FILL 32823L -#undef org_lwjgl_opengl_GL11_GL_ALPHA4 -#define org_lwjgl_opengl_GL11_GL_ALPHA4 32827L -#undef org_lwjgl_opengl_GL11_GL_ALPHA8 -#define org_lwjgl_opengl_GL11_GL_ALPHA8 32828L -#undef org_lwjgl_opengl_GL11_GL_ALPHA12 -#define org_lwjgl_opengl_GL11_GL_ALPHA12 32829L -#undef org_lwjgl_opengl_GL11_GL_ALPHA16 -#define org_lwjgl_opengl_GL11_GL_ALPHA16 32830L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE4 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE4 32831L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE8 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE8 32832L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE12 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE12 32833L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE16 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE16 32834L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE4_ALPHA4 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE4_ALPHA4 32835L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE6_ALPHA2 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE6_ALPHA2 32836L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE8_ALPHA8 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE8_ALPHA8 32837L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE12_ALPHA4 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE12_ALPHA4 32838L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE12_ALPHA12 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE12_ALPHA12 32839L -#undef org_lwjgl_opengl_GL11_GL_LUMINANCE16_ALPHA16 -#define org_lwjgl_opengl_GL11_GL_LUMINANCE16_ALPHA16 32840L -#undef org_lwjgl_opengl_GL11_GL_INTENSITY -#define org_lwjgl_opengl_GL11_GL_INTENSITY 32841L -#undef org_lwjgl_opengl_GL11_GL_INTENSITY4 -#define org_lwjgl_opengl_GL11_GL_INTENSITY4 32842L -#undef org_lwjgl_opengl_GL11_GL_INTENSITY8 -#define org_lwjgl_opengl_GL11_GL_INTENSITY8 32843L -#undef org_lwjgl_opengl_GL11_GL_INTENSITY12 -#define org_lwjgl_opengl_GL11_GL_INTENSITY12 32844L -#undef org_lwjgl_opengl_GL11_GL_INTENSITY16 -#define org_lwjgl_opengl_GL11_GL_INTENSITY16 32845L -#undef org_lwjgl_opengl_GL11_GL_R3_G3_B2 -#define org_lwjgl_opengl_GL11_GL_R3_G3_B2 10768L -#undef org_lwjgl_opengl_GL11_GL_RGB4 -#define org_lwjgl_opengl_GL11_GL_RGB4 32847L -#undef org_lwjgl_opengl_GL11_GL_RGB5 -#define org_lwjgl_opengl_GL11_GL_RGB5 32848L -#undef org_lwjgl_opengl_GL11_GL_RGB8 -#define org_lwjgl_opengl_GL11_GL_RGB8 32849L -#undef org_lwjgl_opengl_GL11_GL_RGB10 -#define org_lwjgl_opengl_GL11_GL_RGB10 32850L -#undef org_lwjgl_opengl_GL11_GL_RGB12 -#define org_lwjgl_opengl_GL11_GL_RGB12 32851L -#undef org_lwjgl_opengl_GL11_GL_RGB16 -#define org_lwjgl_opengl_GL11_GL_RGB16 32852L -#undef org_lwjgl_opengl_GL11_GL_RGBA2 -#define org_lwjgl_opengl_GL11_GL_RGBA2 32853L -#undef org_lwjgl_opengl_GL11_GL_RGBA4 -#define org_lwjgl_opengl_GL11_GL_RGBA4 32854L -#undef org_lwjgl_opengl_GL11_GL_RGB5_A1 -#define org_lwjgl_opengl_GL11_GL_RGB5_A1 32855L -#undef org_lwjgl_opengl_GL11_GL_RGBA8 -#define org_lwjgl_opengl_GL11_GL_RGBA8 32856L -#undef org_lwjgl_opengl_GL11_GL_RGB10_A2 -#define org_lwjgl_opengl_GL11_GL_RGB10_A2 32857L -#undef org_lwjgl_opengl_GL11_GL_RGBA12 -#define org_lwjgl_opengl_GL11_GL_RGBA12 32858L -#undef org_lwjgl_opengl_GL11_GL_RGBA16 -#define org_lwjgl_opengl_GL11_GL_RGBA16 32859L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_RED_SIZE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_RED_SIZE 32860L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_GREEN_SIZE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_GREEN_SIZE 32861L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_BLUE_SIZE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_BLUE_SIZE 32862L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_ALPHA_SIZE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_ALPHA_SIZE 32863L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_LUMINANCE_SIZE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_LUMINANCE_SIZE 32864L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_INTENSITY_SIZE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_INTENSITY_SIZE 32865L -#undef org_lwjgl_opengl_GL11_GL_PROXY_TEXTURE_1D -#define org_lwjgl_opengl_GL11_GL_PROXY_TEXTURE_1D 32867L -#undef org_lwjgl_opengl_GL11_GL_PROXY_TEXTURE_2D -#define org_lwjgl_opengl_GL11_GL_PROXY_TEXTURE_2D 32868L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_PRIORITY -#define org_lwjgl_opengl_GL11_GL_TEXTURE_PRIORITY 32870L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_RESIDENT -#define org_lwjgl_opengl_GL11_GL_TEXTURE_RESIDENT 32871L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_BINDING_1D -#define org_lwjgl_opengl_GL11_GL_TEXTURE_BINDING_1D 32872L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_BINDING_2D -#define org_lwjgl_opengl_GL11_GL_TEXTURE_BINDING_2D 32873L -#undef org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY -#define org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY 32884L -#undef org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY -#define org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY 32885L -#undef org_lwjgl_opengl_GL11_GL_COLOR_ARRAY -#define org_lwjgl_opengl_GL11_GL_COLOR_ARRAY 32886L -#undef org_lwjgl_opengl_GL11_GL_INDEX_ARRAY -#define org_lwjgl_opengl_GL11_GL_INDEX_ARRAY 32887L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY -#define org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY 32888L -#undef org_lwjgl_opengl_GL11_GL_EDGE_FLAG_ARRAY -#define org_lwjgl_opengl_GL11_GL_EDGE_FLAG_ARRAY 32889L -#undef org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_SIZE -#define org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_SIZE 32890L -#undef org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_TYPE -#define org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_TYPE 32891L -#undef org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_STRIDE -#define org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_STRIDE 32892L -#undef org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY_TYPE -#define org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY_TYPE 32894L -#undef org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY_STRIDE -#define org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY_STRIDE 32895L -#undef org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_SIZE -#define org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_SIZE 32897L -#undef org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_TYPE -#define org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_TYPE 32898L -#undef org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_STRIDE -#define org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_STRIDE 32899L -#undef org_lwjgl_opengl_GL11_GL_INDEX_ARRAY_TYPE -#define org_lwjgl_opengl_GL11_GL_INDEX_ARRAY_TYPE 32901L -#undef org_lwjgl_opengl_GL11_GL_INDEX_ARRAY_STRIDE -#define org_lwjgl_opengl_GL11_GL_INDEX_ARRAY_STRIDE 32902L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_SIZE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_SIZE 32904L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_TYPE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_TYPE 32905L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_STRIDE -#define org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_STRIDE 32906L -#undef org_lwjgl_opengl_GL11_GL_EDGE_FLAG_ARRAY_STRIDE -#define org_lwjgl_opengl_GL11_GL_EDGE_FLAG_ARRAY_STRIDE 32908L -#undef org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_POINTER -#define org_lwjgl_opengl_GL11_GL_VERTEX_ARRAY_POINTER 32910L -#undef org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY_POINTER -#define org_lwjgl_opengl_GL11_GL_NORMAL_ARRAY_POINTER 32911L -#undef org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_POINTER -#define org_lwjgl_opengl_GL11_GL_COLOR_ARRAY_POINTER 32912L -#undef org_lwjgl_opengl_GL11_GL_INDEX_ARRAY_POINTER -#define org_lwjgl_opengl_GL11_GL_INDEX_ARRAY_POINTER 32913L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_POINTER -#define org_lwjgl_opengl_GL11_GL_TEXTURE_COORD_ARRAY_POINTER 32914L -#undef org_lwjgl_opengl_GL11_GL_EDGE_FLAG_ARRAY_POINTER -#define org_lwjgl_opengl_GL11_GL_EDGE_FLAG_ARRAY_POINTER 32915L -#undef org_lwjgl_opengl_GL11_GL_V2F -#define org_lwjgl_opengl_GL11_GL_V2F 10784L -#undef org_lwjgl_opengl_GL11_GL_V3F -#define org_lwjgl_opengl_GL11_GL_V3F 10785L -#undef org_lwjgl_opengl_GL11_GL_C4UB_V2F -#define org_lwjgl_opengl_GL11_GL_C4UB_V2F 10786L -#undef org_lwjgl_opengl_GL11_GL_C4UB_V3F -#define org_lwjgl_opengl_GL11_GL_C4UB_V3F 10787L -#undef org_lwjgl_opengl_GL11_GL_C3F_V3F -#define org_lwjgl_opengl_GL11_GL_C3F_V3F 10788L -#undef org_lwjgl_opengl_GL11_GL_N3F_V3F -#define org_lwjgl_opengl_GL11_GL_N3F_V3F 10789L -#undef org_lwjgl_opengl_GL11_GL_C4F_N3F_V3F -#define org_lwjgl_opengl_GL11_GL_C4F_N3F_V3F 10790L -#undef org_lwjgl_opengl_GL11_GL_T2F_V3F -#define org_lwjgl_opengl_GL11_GL_T2F_V3F 10791L -#undef org_lwjgl_opengl_GL11_GL_T4F_V4F -#define org_lwjgl_opengl_GL11_GL_T4F_V4F 10792L -#undef org_lwjgl_opengl_GL11_GL_T2F_C4UB_V3F -#define org_lwjgl_opengl_GL11_GL_T2F_C4UB_V3F 10793L -#undef org_lwjgl_opengl_GL11_GL_T2F_C3F_V3F -#define org_lwjgl_opengl_GL11_GL_T2F_C3F_V3F 10794L -#undef org_lwjgl_opengl_GL11_GL_T2F_N3F_V3F -#define org_lwjgl_opengl_GL11_GL_T2F_N3F_V3F 10795L -#undef org_lwjgl_opengl_GL11_GL_T2F_C4F_N3F_V3F -#define org_lwjgl_opengl_GL11_GL_T2F_C4F_N3F_V3F 10796L -#undef org_lwjgl_opengl_GL11_GL_T4F_C4F_N3F_V4F -#define org_lwjgl_opengl_GL11_GL_T4F_C4F_N3F_V4F 10797L -#undef org_lwjgl_opengl_GL11_GL_LOGIC_OP -#define org_lwjgl_opengl_GL11_GL_LOGIC_OP 3057L -#undef org_lwjgl_opengl_GL11_GL_TEXTURE_COMPONENTS -#define org_lwjgl_opengl_GL11_GL_TEXTURE_COMPONENTS 4099L -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glAccum - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAccum - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glAlphaFunc - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glAlphaFunc - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glClearColor - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearColor - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glClearAccum - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearAccum - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glClear - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClear - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglCallLists - * Signature: (IILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglCallLists - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glCallList - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCallList - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glBlendFunc - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBlendFunc - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglBitmap - * Signature: (IIFFFFLjava/nio/ByteBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglBitmap - (JNIEnv *, jclass, jint, jint, jfloat, jfloat, jfloat, jfloat, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glBindTexture - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBindTexture - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glBegin - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glBegin - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEnd - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnd - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glArrayElement - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glArrayElement - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glClearDepth - * Signature: (D)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearDepth - (JNIEnv *, jclass, jdouble); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDeleteLists - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDeleteLists - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglDeleteTextures - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDeleteTextures - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glCullFace - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCullFace - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glCopyTexSubImage2D - * Signature: (IIIIIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glCopyTexSubImage1D - * Signature: (IIIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexSubImage1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glCopyTexImage2D - * Signature: (IIIIIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glCopyTexImage1D - * Signature: (IIIIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyTexImage1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glCopyPixels - * Signature: (IIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glCopyPixels - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglColorPointer - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointer - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglColorPointerVBO - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglColorPointerVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColorMaterial - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMaterial - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColorMask - * Signature: (ZZZZ)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColorMask - (JNIEnv *, jclass, jboolean, jboolean, jboolean, jboolean); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColor3b - * Signature: (BBB)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3b - (JNIEnv *, jclass, jbyte, jbyte, jbyte); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColor3f - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3f - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColor3ub - * Signature: (BBB)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor3ub - (JNIEnv *, jclass, jbyte, jbyte, jbyte); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColor4b - * Signature: (BBBB)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4b - (JNIEnv *, jclass, jbyte, jbyte, jbyte, jbyte); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColor4f - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4f - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glColor4ub - * Signature: (BBBB)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glColor4ub - (JNIEnv *, jclass, jbyte, jbyte, jbyte, jbyte); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglClipPlane - * Signature: (ILjava/nio/DoubleBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglClipPlane - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glClearStencil - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearStencil - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glClearIndex - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glClearIndex - (JNIEnv *, jclass, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEvalPoint1 - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint1 - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEvalPoint2 - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalPoint2 - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEvalMesh1 - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh1 - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEvalMesh2 - * Signature: (IIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalMesh2 - (JNIEnv *, jclass, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEvalCoord1f - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord1f - (JNIEnv *, jclass, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEvalCoord2f - * Signature: (FF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEvalCoord2f - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEnableClientState - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnableClientState - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDisableClientState - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisableClientState - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEnable - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEnable - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDisable - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDisable - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglEdgeFlagPointer - * Signature: (ILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointer - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglEdgeFlagPointerVBO - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglEdgeFlagPointerVBO - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEdgeFlag - * Signature: (Z)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEdgeFlag - (JNIEnv *, jclass, jboolean); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglDrawPixels - * Signature: (IIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawPixels - (JNIEnv *, jclass, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglDrawElements - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElements - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglDrawElementsVBO - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglDrawElementsVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDrawBuffer - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawBuffer - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDrawArrays - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDrawArrays - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDepthRange - * Signature: (DD)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthRange - (JNIEnv *, jclass, jdouble, jdouble); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDepthMask - * Signature: (Z)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthMask - (JNIEnv *, jclass, jboolean); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glDepthFunc - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glDepthFunc - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglFeedbackBuffer - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFeedbackBuffer - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetPixelMapfv - * Signature: (ILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapfv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetPixelMapuiv - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapuiv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetPixelMapusv - * Signature: (ILjava/nio/ShortBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPixelMapusv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetMaterialfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetMaterialiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMaterialiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetMapfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetMapiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetMapiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetLightfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetLightiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetLightiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glGetError - * Signature: ()I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGetError - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetClipPlane - * Signature: (ILjava/nio/DoubleBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetClipPlane - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetBooleanv - * Signature: (ILjava/nio/ByteBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetBooleanv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetDoublev - * Signature: (ILjava/nio/DoubleBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetDoublev - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetFloatv - * Signature: (ILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetFloatv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetIntegerv - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetIntegerv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGenTextures - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGenTextures - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glGenLists - * Signature: (I)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glGenLists - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glFrustum - * Signature: (DDDDDD)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrustum - (JNIEnv *, jclass, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glFrontFace - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFrontFace - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glFogf - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogf - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glFogi - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFogi - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglFogfv - * Signature: (ILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogfv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglFogiv - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglFogiv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glFlush - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFlush - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glFinish - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glFinish - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glGetPointerv - * Signature: (II)Ljava/nio/ByteBuffer; - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL11_glGetPointerv - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glIsEnabled - * Signature: (I)Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsEnabled - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglInterleavedArrays - * Signature: (IILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArrays - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglInterleavedArraysVBO - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglInterleavedArraysVBO - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glInitNames - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glInitNames - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glHint - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glHint - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexLevelParameterfv - * Signature: (IIILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameterfv - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexLevelParameteriv - * Signature: (IIILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexLevelParameteriv - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexImage - * Signature: (IIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexImage - (JNIEnv *, jclass, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexGenfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexGenfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexEnviv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnviv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetTexEnvfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetTexEnvfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glGetString - * Signature: (I)Ljava/lang/String; - */ -JNIEXPORT jstring JNICALL Java_org_lwjgl_opengl_GL11_glGetString - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglGetPolygonStipple - * Signature: (Ljava/nio/ByteBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglGetPolygonStipple - (JNIEnv *, jclass, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glIsList - * Signature: (I)Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsList - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glMaterialf - * Signature: (IIF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMaterialf - (JNIEnv *, jclass, jint, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glMateriali - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMateriali - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglMaterialfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglMaterialiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMaterialiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glMapGrid1f - * Signature: (IFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid1f - (JNIEnv *, jclass, jint, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glMapGrid2f - * Signature: (IFFIFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMapGrid2f - (JNIEnv *, jclass, jint, jfloat, jfloat, jint, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglMap2f - * Signature: (IFFIIFFIILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap2f - (JNIEnv *, jclass, jint, jfloat, jfloat, jint, jint, jfloat, jfloat, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglMap1f - * Signature: (IFFIILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMap1f - (JNIEnv *, jclass, jint, jfloat, jfloat, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLogicOp - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLogicOp - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLoadName - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadName - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglLoadMatrixf - * Signature: (Ljava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLoadMatrixf - (JNIEnv *, jclass, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLoadIdentity - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLoadIdentity - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glListBase - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glListBase - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLineWidth - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineWidth - (JNIEnv *, jclass, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLineStipple - * Signature: (IS)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLineStipple - (JNIEnv *, jclass, jint, jshort); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLightModelf - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModelf - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLightModeli - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightModeli - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglLightModelfv - * Signature: (ILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModelfv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglLightModeliv - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightModeliv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLightf - * Signature: (IIF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLightf - (JNIEnv *, jclass, jint, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glLighti - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glLighti - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglLightfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglLightiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglLightiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glIsTexture - * Signature: (I)Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL11_glIsTexture - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glMatrixMode - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glMatrixMode - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglPolygonStipple - * Signature: (Ljava/nio/ByteBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPolygonStipple - (JNIEnv *, jclass, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPolygonOffset - * Signature: (FF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonOffset - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPolygonMode - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPolygonMode - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPointSize - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPointSize - (JNIEnv *, jclass, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPixelZoom - * Signature: (FF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelZoom - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPixelTransferf - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferf - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPixelTransferi - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelTransferi - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPixelStoref - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStoref - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPixelStorei - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPixelStorei - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglPixelMapfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglPixelMapuiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapuiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglPixelMapusv - * Signature: (IILjava/nio/ShortBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPixelMapusv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPassThrough - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPassThrough - (JNIEnv *, jclass, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glOrtho - * Signature: (DDDDDD)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glOrtho - (JNIEnv *, jclass, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglNormalPointer - * Signature: (IILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointer - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglNormalPointerVBO - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglNormalPointerVBO - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glNormal3b - * Signature: (BBB)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3b - (JNIEnv *, jclass, jbyte, jbyte, jbyte); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glNormal3f - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3f - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glNormal3i - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNormal3i - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glNewList - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glNewList - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glEndList - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glEndList - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglMultMatrixf - * Signature: (Ljava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglMultMatrixf - (JNIEnv *, jclass, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glShadeModel - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glShadeModel - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglSelectBuffer - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglSelectBuffer - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glScissor - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScissor - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glScalef - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glScalef - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRotatef - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRotatef - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRenderMode - * Signature: (I)I - */ -JNIEXPORT jint JNICALL Java_org_lwjgl_opengl_GL11_glRenderMode - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRectf - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRectf - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRecti - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRecti - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglReadPixels - * Signature: (IIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglReadPixels - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glReadBuffer - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glReadBuffer - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRasterPos2f - * Signature: (FF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2f - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRasterPos2i - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos2i - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRasterPos3f - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3f - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRasterPos3i - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos3i - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRasterPos4f - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4f - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glRasterPos4i - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glRasterPos4i - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPushName - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushName - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPopName - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopName - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPushMatrix - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushMatrix - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPopMatrix - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopMatrix - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglPushClientAttrib - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPushClientAttrib - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglPopClientAttrib - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglPopClientAttrib - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPushAttrib - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPushAttrib - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glPopAttrib - * Signature: ()V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glPopAttrib - (JNIEnv *, jclass); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glStencilFunc - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilFunc - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglVertexPointer - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointer - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglVertexPointerVBO - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglVertexPointerVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glVertex2f - * Signature: (FF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2f - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glVertex2i - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex2i - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glVertex3f - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3f - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glVertex3i - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex3i - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glVertex4f - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4f - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glVertex4i - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glVertex4i - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTranslatef - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTranslatef - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexSubImage2D - * Signature: (IIIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexSubImage2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexSubImage1D - * Signature: (IIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexSubImage1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexParameterf - * Signature: (IIF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameterf - (JNIEnv *, jclass, jint, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexParameteri - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexParameteri - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexParameterfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexParameterfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexImage2D - * Signature: (IIIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexImage1D - * Signature: (IIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexImage1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexGenf - * Signature: (IIF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGenf - (JNIEnv *, jclass, jint, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexGenfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGenfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexGeni - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexGeni - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexGeniv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexGeniv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexEnvf - * Signature: (IIF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvf - (JNIEnv *, jclass, jint, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexEnvi - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexEnvi - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexEnvfv - * Signature: (IILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnvfv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexEnviv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexEnviv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexCoordPointer - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointer - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: nglTexCoordPointerVBO - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_nglTexCoordPointerVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexCoord1f - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord1f - (JNIEnv *, jclass, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexCoord2f - * Signature: (FF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord2f - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexCoord3f - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord3f - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glTexCoord4f - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glTexCoord4f - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glStencilOp - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilOp - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glStencilMask - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glStencilMask - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL11 - * Method: glViewport - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL11_glViewport - (JNIEnv *, jclass, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/org_lwjgl_opengl_GL12.cpp b/src/native/common/org_lwjgl_opengl_GL12.cpp index cddd41b5..5e5972e1 100644 --- a/src/native/common/org_lwjgl_opengl_GL12.cpp +++ b/src/native/common/org_lwjgl_opengl_GL12.cpp @@ -39,7 +39,6 @@ * @version $Revision$ */ -#include "org_lwjgl_opengl_GL12.h" #include "checkGLerror.h" #include "extgl.h" @@ -53,26 +52,14 @@ static glTexImage3DPROC glTexImage3D; static glTexSubImage3DPROC glTexSubImage3D; static glCopyTexSubImage3DPROC glCopyTexSubImage3D; -void extgl_InitOpenGL1_2(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.OpenGL12) - return; - glTexImage3D = (glTexImage3DPROC) extgl_GetProcAddress("glTexImage3D"); - glTexSubImage3D = (glTexSubImage3DPROC) extgl_GetProcAddress("glTexSubImage3D"); - glCopyTexSubImage3D = (glCopyTexSubImage3DPROC) extgl_GetProcAddress("glCopyTexSubImage3D"); - glDrawRangeElements = (glDrawRangeElementsPROC) extgl_GetProcAddress("glDrawRangeElements"); - EXTGL_SANITY_CHECK(env, ext_set, OpenGL12) -} - /* * Class: org_lwjgl_opengl_GL12 * Method: nglDrawRangeElements * Signature: (IIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElements +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElements (JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glDrawRangeElements) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glDrawRangeElements(mode, start, end, count, type, address); CHECK_GL_ERROR @@ -83,10 +70,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElements * Method: nglDrawRangeElementsVBO * Signature: (IIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElementsVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElementsVBO (JNIEnv *env, jclass clazz, jint mode, jint start, jint end, jint count, jint type, jint buffer_offset) { - CHECK_EXISTS(glDrawRangeElements) glDrawRangeElements(mode, start, end, count, type, offsetToPointer(buffer_offset)); CHECK_GL_ERROR } @@ -96,10 +82,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElementsVBO * Method: glTexImage3D * Signature: (IIIIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexImage3D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexImage3D (JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glTexImage3D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glTexImage3D(target, level, internalformat, width, height, depth, border, format, type, address); CHECK_GL_ERROR @@ -110,10 +95,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexImage3D * Method: glTexSubImage3D * Signature: (IIIIIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3D (JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint type, jobject buffer, jint offset) { - CHECK_EXISTS(glTexSubImage3D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, type, address); CHECK_GL_ERROR @@ -124,11 +108,25 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3D * Method: glCopyTexSubImage3D * Signature: (IIIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_glCopyTexSubImage3D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_glCopyTexSubImage3D (JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint x, jint y, jint width, jint height) { - CHECK_EXISTS(glCopyTexSubImage3D) glCopyTexSubImage3D(target, level, xoffset, yoffset, zoffset, x, y, width, height); CHECK_GL_ERROR } +void extgl_InitOpenGL1_2(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglDrawRangeElements", "(IIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL12_nglDrawRangeElements, "glDrawRangeElements", (void**)&glDrawRangeElements}, + {"nglDrawRangeElementsVBO", "(IIIIII)V", (void*)&Java_org_lwjgl_opengl_GL12_nglDrawRangeElementsVBO, NULL, NULL}, + {"nglTexImage3D", "(IIIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL12_nglTexImage3D, "glTexImage3D", (void**)&glTexImage3D}, + {"nglTexSubImage3D", "(IIIIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL12_nglTexSubImage3D, "glTexSubImage3D", (void**)&glTexSubImage3D}, + {"glCopyTexSubImage3D", "(IIIIIIIII)V", (void*)&Java_org_lwjgl_opengl_GL12_glCopyTexSubImage3D, "glCopyTexSubImage3D", (void**)&glCopyTexSubImage3D} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/GL12"); + if (extgl_Extensions.OpenGL12) + extgl_InitializeClass(env, clazz, ext_set, "OpenGL12", num_functions, functions); +} + diff --git a/src/native/common/org_lwjgl_opengl_GL12.h b/src/native/common/org_lwjgl_opengl_GL12.h deleted file mode 100644 index 8712d27b..00000000 --- a/src/native/common/org_lwjgl_opengl_GL12.h +++ /dev/null @@ -1,125 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_GL12 */ - -#ifndef _Included_org_lwjgl_opengl_GL12 -#define _Included_org_lwjgl_opengl_GL12 -#ifdef __cplusplus -extern "C" { -#endif -#undef org_lwjgl_opengl_GL12_GL_PACK_SKIP_IMAGES -#define org_lwjgl_opengl_GL12_GL_PACK_SKIP_IMAGES 32875L -#undef org_lwjgl_opengl_GL12_GL_PACK_IMAGE_HEIGHT -#define org_lwjgl_opengl_GL12_GL_PACK_IMAGE_HEIGHT 32876L -#undef org_lwjgl_opengl_GL12_GL_UNPACK_SKIP_IMAGES -#define org_lwjgl_opengl_GL12_GL_UNPACK_SKIP_IMAGES 32877L -#undef org_lwjgl_opengl_GL12_GL_UNPACK_IMAGE_HEIGHT -#define org_lwjgl_opengl_GL12_GL_UNPACK_IMAGE_HEIGHT 32878L -#undef org_lwjgl_opengl_GL12_GL_TEXTURE_3D -#define org_lwjgl_opengl_GL12_GL_TEXTURE_3D 32879L -#undef org_lwjgl_opengl_GL12_GL_PROXY_TEXTURE_3D -#define org_lwjgl_opengl_GL12_GL_PROXY_TEXTURE_3D 32880L -#undef org_lwjgl_opengl_GL12_GL_TEXTURE_DEPTH -#define org_lwjgl_opengl_GL12_GL_TEXTURE_DEPTH 32881L -#undef org_lwjgl_opengl_GL12_GL_TEXTURE_WRAP_R -#define org_lwjgl_opengl_GL12_GL_TEXTURE_WRAP_R 32882L -#undef org_lwjgl_opengl_GL12_GL_MAX_3D_TEXTURE_SIZE -#define org_lwjgl_opengl_GL12_GL_MAX_3D_TEXTURE_SIZE 32883L -#undef org_lwjgl_opengl_GL12_GL_BGR -#define org_lwjgl_opengl_GL12_GL_BGR 32992L -#undef org_lwjgl_opengl_GL12_GL_BGRA -#define org_lwjgl_opengl_GL12_GL_BGRA 32993L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_BYTE_3_3_2 -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_BYTE_3_3_2 32818L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_BYTE_2_3_3_REV -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_BYTE_2_3_3_REV 33634L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_5_6_5 -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_5_6_5 33635L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_5_6_5_REV -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_5_6_5_REV 33636L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_4_4_4_4 -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_4_4_4_4 32819L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_4_4_4_4_REV -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_4_4_4_4_REV 33637L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_5_5_5_1 -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_5_5_5_1 32820L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_1_5_5_5_REV -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_SHORT_1_5_5_5_REV 33638L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_8_8_8_8 -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_8_8_8_8 32821L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_8_8_8_8_REV -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_8_8_8_8_REV 33639L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_10_10_10_2 -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_10_10_10_2 32822L -#undef org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_2_10_10_10_REV -#define org_lwjgl_opengl_GL12_GL_UNSIGNED_INT_2_10_10_10_REV 33640L -#undef org_lwjgl_opengl_GL12_GL_RESCALE_NORMAL -#define org_lwjgl_opengl_GL12_GL_RESCALE_NORMAL 32826L -#undef org_lwjgl_opengl_GL12_GL_LIGHT_MODEL_COLOR_CONTROL -#define org_lwjgl_opengl_GL12_GL_LIGHT_MODEL_COLOR_CONTROL 33272L -#undef org_lwjgl_opengl_GL12_GL_SINGLE_COLOR -#define org_lwjgl_opengl_GL12_GL_SINGLE_COLOR 33273L -#undef org_lwjgl_opengl_GL12_GL_SEPARATE_SPECULAR_COLOR -#define org_lwjgl_opengl_GL12_GL_SEPARATE_SPECULAR_COLOR 33274L -#undef org_lwjgl_opengl_GL12_GL_CLAMP_TO_EDGE -#define org_lwjgl_opengl_GL12_GL_CLAMP_TO_EDGE 33071L -#undef org_lwjgl_opengl_GL12_GL_TEXTURE_MIN_LOD -#define org_lwjgl_opengl_GL12_GL_TEXTURE_MIN_LOD 33082L -#undef org_lwjgl_opengl_GL12_GL_TEXTURE_MAX_LOD -#define org_lwjgl_opengl_GL12_GL_TEXTURE_MAX_LOD 33083L -#undef org_lwjgl_opengl_GL12_GL_TEXTURE_BASE_LEVEL -#define org_lwjgl_opengl_GL12_GL_TEXTURE_BASE_LEVEL 33084L -#undef org_lwjgl_opengl_GL12_GL_TEXTURE_MAX_LEVEL -#define org_lwjgl_opengl_GL12_GL_TEXTURE_MAX_LEVEL 33085L -#undef org_lwjgl_opengl_GL12_GL_MAX_ELEMENTS_VERTICES -#define org_lwjgl_opengl_GL12_GL_MAX_ELEMENTS_VERTICES 33000L -#undef org_lwjgl_opengl_GL12_GL_MAX_ELEMENTS_INDICES -#define org_lwjgl_opengl_GL12_GL_MAX_ELEMENTS_INDICES 33001L -#undef org_lwjgl_opengl_GL12_GL_ALIASED_POINT_SIZE_RANGE -#define org_lwjgl_opengl_GL12_GL_ALIASED_POINT_SIZE_RANGE 33901L -#undef org_lwjgl_opengl_GL12_GL_ALIASED_LINE_WIDTH_RANGE -#define org_lwjgl_opengl_GL12_GL_ALIASED_LINE_WIDTH_RANGE 33902L -/* - * Class: org_lwjgl_opengl_GL12 - * Method: nglDrawRangeElements - * Signature: (IIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElements - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL12 - * Method: nglDrawRangeElementsVBO - * Signature: (IIIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglDrawRangeElementsVBO - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL12 - * Method: nglTexImage3D - * Signature: (IIIIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexImage3D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL12 - * Method: nglTexSubImage3D - * Signature: (IIIIIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_nglTexSubImage3D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL12 - * Method: glCopyTexSubImage3D - * Signature: (IIIIIIIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL12_glCopyTexSubImage3D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/org_lwjgl_opengl_GL13.cpp b/src/native/common/org_lwjgl_opengl_GL13.cpp index 7c06d4c0..ccd5fdf3 100644 --- a/src/native/common/org_lwjgl_opengl_GL13.cpp +++ b/src/native/common/org_lwjgl_opengl_GL13.cpp @@ -39,7 +39,6 @@ * @version $Revision$ */ -#include "org_lwjgl_opengl_GL13.h" #include "checkGLerror.h" #include "extgl.h" @@ -52,82 +51,22 @@ typedef void (APIENTRY * glCompressedTexSubImage1DPROC) (GLenum target, GLint le typedef void (APIENTRY * glCompressedTexSubImage2DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, const GLvoid *data ); typedef void (APIENTRY * glCompressedTexSubImage3DPROC) (GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint zoffset, GLsizei width, GLsizei height, GLsizei depth, GLenum format, GLsizei imageSize, const GLvoid *data ); typedef void (APIENTRY * glGetCompressedTexImagePROC) (GLenum target, GLint lod, GLvoid *img ); -typedef void (APIENTRY * glMultiTexCoord1dPROC) (GLenum target, GLdouble s ); -typedef void (APIENTRY * glMultiTexCoord1dvPROC) (GLenum target, const GLdouble *v ); typedef void (APIENTRY * glMultiTexCoord1fPROC) (GLenum target, GLfloat s ); -typedef void (APIENTRY * glMultiTexCoord1fvPROC) (GLenum target, const GLfloat *v ); -typedef void (APIENTRY * glMultiTexCoord1iPROC) (GLenum target, GLint s ); -typedef void (APIENTRY * glMultiTexCoord1ivPROC) (GLenum target, const GLint *v ); -typedef void (APIENTRY * glMultiTexCoord1sPROC) (GLenum target, GLshort s ); -typedef void (APIENTRY * glMultiTexCoord1svPROC) (GLenum target, const GLshort *v ); -typedef void (APIENTRY * glMultiTexCoord2dPROC) (GLenum target, GLdouble s, GLdouble t ); -typedef void (APIENTRY * glMultiTexCoord2dvPROC) (GLenum target, const GLdouble *v ); typedef void (APIENTRY * glMultiTexCoord2fPROC) (GLenum target, GLfloat s, GLfloat t ); -typedef void (APIENTRY * glMultiTexCoord2fvPROC) (GLenum target, const GLfloat *v ); -typedef void (APIENTRY * glMultiTexCoord2iPROC) (GLenum target, GLint s, GLint t ); -typedef void (APIENTRY * glMultiTexCoord2ivPROC) (GLenum target, const GLint *v ); -typedef void (APIENTRY * glMultiTexCoord2sPROC) (GLenum target, GLshort s, GLshort t ); -typedef void (APIENTRY * glMultiTexCoord2svPROC) (GLenum target, const GLshort *v ); -typedef void (APIENTRY * glMultiTexCoord3dPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r ); -typedef void (APIENTRY * glMultiTexCoord3dvPROC) (GLenum target, const GLdouble *v ); typedef void (APIENTRY * glMultiTexCoord3fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r ); -typedef void (APIENTRY * glMultiTexCoord3fvPROC) (GLenum target, const GLfloat *v ); -typedef void (APIENTRY * glMultiTexCoord3iPROC) (GLenum target, GLint s, GLint t, GLint r ); -typedef void (APIENTRY * glMultiTexCoord3ivPROC) (GLenum target, const GLint *v ); -typedef void (APIENTRY * glMultiTexCoord3sPROC) (GLenum target, GLshort s, GLshort t, GLshort r ); -typedef void (APIENTRY * glMultiTexCoord3svPROC) (GLenum target, const GLshort *v ); -typedef void (APIENTRY * glMultiTexCoord4dPROC) (GLenum target, GLdouble s, GLdouble t, GLdouble r, GLdouble q ); -typedef void (APIENTRY * glMultiTexCoord4dvPROC) (GLenum target, const GLdouble *v ); typedef void (APIENTRY * glMultiTexCoord4fPROC) (GLenum target, GLfloat s, GLfloat t, GLfloat r, GLfloat q ); -typedef void (APIENTRY * glMultiTexCoord4fvPROC) (GLenum target, const GLfloat *v ); -typedef void (APIENTRY * glMultiTexCoord4iPROC) (GLenum target, GLint s, GLint t, GLint r, GLint q ); -typedef void (APIENTRY * glMultiTexCoord4ivPROC) (GLenum target, const GLint *v ); -typedef void (APIENTRY * glMultiTexCoord4sPROC) (GLenum target, GLshort s, GLshort t, GLshort r, GLshort q ); -typedef void (APIENTRY * glMultiTexCoord4svPROC) (GLenum target, const GLshort *v ); -typedef void (APIENTRY * glLoadTransposeMatrixdPROC) (const GLdouble m[16] ); typedef void (APIENTRY * glLoadTransposeMatrixfPROC) (const GLfloat m[16] ); -typedef void (APIENTRY * glMultTransposeMatrixdPROC) (const GLdouble m[16] ); typedef void (APIENTRY * glMultTransposeMatrixfPROC) (const GLfloat m[16] ); typedef void (APIENTRY * glSampleCoveragePROC) (GLclampf value, GLboolean invert ); static glActiveTexturePROC glActiveTexture; static glClientActiveTexturePROC glClientActiveTexture; -static glMultiTexCoord1dPROC glMultiTexCoord1d; -static glMultiTexCoord1dvPROC glMultiTexCoord1dv; static glMultiTexCoord1fPROC glMultiTexCoord1f; -static glMultiTexCoord1fvPROC glMultiTexCoord1fv; -static glMultiTexCoord1iPROC glMultiTexCoord1i; -static glMultiTexCoord1ivPROC glMultiTexCoord1iv; -static glMultiTexCoord1sPROC glMultiTexCoord1s; -static glMultiTexCoord1svPROC glMultiTexCoord1sv; -static glMultiTexCoord2dPROC glMultiTexCoord2d; -static glMultiTexCoord2dvPROC glMultiTexCoord2dv; static glMultiTexCoord2fPROC glMultiTexCoord2f; -static glMultiTexCoord2fvPROC glMultiTexCoord2fv; -static glMultiTexCoord2iPROC glMultiTexCoord2i; -static glMultiTexCoord2ivPROC glMultiTexCoord2iv; -static glMultiTexCoord2sPROC glMultiTexCoord2s; -static glMultiTexCoord2svPROC glMultiTexCoord2sv; -static glMultiTexCoord3dPROC glMultiTexCoord3d; -static glMultiTexCoord3dvPROC glMultiTexCoord3dv; static glMultiTexCoord3fPROC glMultiTexCoord3f; -static glMultiTexCoord3fvPROC glMultiTexCoord3fv; -static glMultiTexCoord3iPROC glMultiTexCoord3i; -static glMultiTexCoord3ivPROC glMultiTexCoord3iv; -static glMultiTexCoord3sPROC glMultiTexCoord3s; -static glMultiTexCoord3svPROC glMultiTexCoord3sv; -static glMultiTexCoord4dPROC glMultiTexCoord4d; -static glMultiTexCoord4dvPROC glMultiTexCoord4dv; static glMultiTexCoord4fPROC glMultiTexCoord4f; -static glMultiTexCoord4fvPROC glMultiTexCoord4fv; -static glMultiTexCoord4iPROC glMultiTexCoord4i; -static glMultiTexCoord4ivPROC glMultiTexCoord4iv; -static glMultiTexCoord4sPROC glMultiTexCoord4s; -static glMultiTexCoord4svPROC glMultiTexCoord4sv; static glLoadTransposeMatrixfPROC glLoadTransposeMatrixf; -static glLoadTransposeMatrixdPROC glLoadTransposeMatrixd; static glMultTransposeMatrixfPROC glMultTransposeMatrixf; -static glMultTransposeMatrixdPROC glMultTransposeMatrixd; static glCompressedTexImage3DPROC glCompressedTexImage3D; static glCompressedTexImage2DPROC glCompressedTexImage2D; static glCompressedTexImage1DPROC glCompressedTexImage1D; @@ -137,74 +76,14 @@ static glCompressedTexSubImage1DPROC glCompressedTexSubImage1D; static glGetCompressedTexImagePROC glGetCompressedTexImage; static glSampleCoveragePROC glSampleCoverage; -void extgl_InitOpenGL1_3(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.OpenGL13) - return; - glActiveTexture = (glActiveTexturePROC) extgl_GetProcAddress("glActiveTexture"); - glClientActiveTexture = (glClientActiveTexturePROC) extgl_GetProcAddress("glClientActiveTexture"); - - glMultiTexCoord1d = (glMultiTexCoord1dPROC) extgl_GetProcAddress("glMultiTexCoord1d"); - glMultiTexCoord1dv = (glMultiTexCoord1dvPROC) extgl_GetProcAddress("glMultiTexCoord1dv"); - glMultiTexCoord1f = (glMultiTexCoord1fPROC) extgl_GetProcAddress("glMultiTexCoord1f"); - glMultiTexCoord1fv = (glMultiTexCoord1fvPROC) extgl_GetProcAddress("glMultiTexCoord1fv"); - glMultiTexCoord1i = (glMultiTexCoord1iPROC) extgl_GetProcAddress("glMultiTexCoord1i"); - glMultiTexCoord1iv = (glMultiTexCoord1ivPROC) extgl_GetProcAddress("glMultiTexCoord1iv"); - glMultiTexCoord1s = (glMultiTexCoord1sPROC) extgl_GetProcAddress("glMultiTexCoord1s"); - glMultiTexCoord1sv = (glMultiTexCoord1svPROC) extgl_GetProcAddress("glMultiTexCoord1sv"); - - glMultiTexCoord2d = (glMultiTexCoord2dPROC) extgl_GetProcAddress("glMultiTexCoord2d"); - glMultiTexCoord2dv = (glMultiTexCoord2dvPROC) extgl_GetProcAddress("glMultiTexCoord2dv"); - glMultiTexCoord2f = (glMultiTexCoord2fPROC) extgl_GetProcAddress("glMultiTexCoord2f"); - glMultiTexCoord2fv = (glMultiTexCoord2fvPROC) extgl_GetProcAddress("glMultiTexCoord2fv"); - glMultiTexCoord2i = (glMultiTexCoord2iPROC) extgl_GetProcAddress("glMultiTexCoord2i"); - glMultiTexCoord2iv = (glMultiTexCoord2ivPROC) extgl_GetProcAddress("glMultiTexCoord2iv"); - glMultiTexCoord2s = (glMultiTexCoord2sPROC) extgl_GetProcAddress("glMultiTexCoord2s"); - glMultiTexCoord2sv = (glMultiTexCoord2svPROC) extgl_GetProcAddress("glMultiTexCoord2sv"); - - glMultiTexCoord3d = (glMultiTexCoord3dPROC) extgl_GetProcAddress("glMultiTexCoord3d"); - glMultiTexCoord3dv = (glMultiTexCoord3dvPROC) extgl_GetProcAddress("glMultiTexCoord3dv"); - glMultiTexCoord3f = (glMultiTexCoord3fPROC) extgl_GetProcAddress("glMultiTexCoord3f"); - glMultiTexCoord3fv = (glMultiTexCoord3fvPROC) extgl_GetProcAddress("glMultiTexCoord3fv"); - glMultiTexCoord3i = (glMultiTexCoord3iPROC) extgl_GetProcAddress("glMultiTexCoord3i"); - glMultiTexCoord3iv = (glMultiTexCoord3ivPROC) extgl_GetProcAddress("glMultiTexCoord3iv"); - glMultiTexCoord3s = (glMultiTexCoord3sPROC) extgl_GetProcAddress("glMultiTexCoord3s"); - glMultiTexCoord3sv = (glMultiTexCoord3svPROC) extgl_GetProcAddress("glMultiTexCoord3sv"); - - glMultiTexCoord4d = (glMultiTexCoord4dPROC) extgl_GetProcAddress("glMultiTexCoord4d"); - glMultiTexCoord4dv = (glMultiTexCoord4dvPROC) extgl_GetProcAddress("glMultiTexCoord4dv"); - glMultiTexCoord4f = (glMultiTexCoord4fPROC) extgl_GetProcAddress("glMultiTexCoord4f"); - glMultiTexCoord4fv = (glMultiTexCoord4fvPROC) extgl_GetProcAddress("glMultiTexCoord4fv"); - glMultiTexCoord4i = (glMultiTexCoord4iPROC) extgl_GetProcAddress("glMultiTexCoord4i"); - glMultiTexCoord4iv = (glMultiTexCoord4ivPROC) extgl_GetProcAddress("glMultiTexCoord4iv"); - glMultiTexCoord4s = (glMultiTexCoord4sPROC) extgl_GetProcAddress("glMultiTexCoord4s"); - glMultiTexCoord4sv = (glMultiTexCoord4svPROC) extgl_GetProcAddress("glMultiTexCoord4sv"); - - glLoadTransposeMatrixf = (glLoadTransposeMatrixfPROC) extgl_GetProcAddress("glLoadTransposeMatrixf"); - glLoadTransposeMatrixd = (glLoadTransposeMatrixdPROC) extgl_GetProcAddress("glLoadTransposeMatrixd"); - glMultTransposeMatrixf = (glMultTransposeMatrixfPROC) extgl_GetProcAddress("glMultTransposeMatrixf"); - glMultTransposeMatrixd = (glMultTransposeMatrixdPROC) extgl_GetProcAddress("glMultTransposeMatrixd"); - glCompressedTexImage3D = (glCompressedTexImage3DPROC) extgl_GetProcAddress("glCompressedTexImage3D"); - glCompressedTexImage2D = (glCompressedTexImage2DPROC) extgl_GetProcAddress("glCompressedTexImage2D"); - glCompressedTexImage1D = (glCompressedTexImage1DPROC) extgl_GetProcAddress("glCompressedTexImage1D"); - glCompressedTexSubImage3D = (glCompressedTexSubImage3DPROC) extgl_GetProcAddress("glCompressedTexSubImage3D"); - glCompressedTexSubImage2D = (glCompressedTexSubImage2DPROC) extgl_GetProcAddress("glCompressedTexSubImage2D"); - glCompressedTexSubImage1D = (glCompressedTexSubImage1DPROC) extgl_GetProcAddress("glCompressedTexSubImage1D"); - glGetCompressedTexImage = (glGetCompressedTexImagePROC) extgl_GetProcAddress("glGetCompressedTexImage"); - - glSampleCoverage = (glSampleCoveragePROC) extgl_GetProcAddress("glSampleCoverage"); - EXTGL_SANITY_CHECK(env, ext_set, OpenGL13) -} - /* * Class: org_lwjgl_opengl_GL13 * Method: glActiveTexture * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glActiveTexture +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glActiveTexture (JNIEnv *env, jclass clazz, jint texture) { - CHECK_EXISTS(glActiveTexture) glActiveTexture(texture); CHECK_GL_ERROR } @@ -214,10 +93,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glActiveTexture * Method: glClientActiveTexture * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glClientActiveTexture +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glClientActiveTexture (JNIEnv *env, jclass clazz, jint texture) { - CHECK_EXISTS(glClientActiveTexture) glClientActiveTexture(texture); CHECK_GL_ERROR } @@ -227,10 +105,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glClientActiveTexture * Method: glCompressedTexImage1D * Signature: (IIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D (JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint border, jint imagesize, jobject buffer, jint offset) { - CHECK_EXISTS(glCompressedTexImage1D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glCompressedTexImage1D(target, level, internalformat, width, border, imagesize, address); CHECK_GL_ERROR @@ -241,10 +118,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D * Method: glCompressedTexImage2D * Signature: (IIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D (JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint border, jint imagesize, jobject buffer, jint offset) { - CHECK_EXISTS(glCompressedTexImage2D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glCompressedTexImage2D(target, level, internalformat, width, height, border, imagesize, address); CHECK_GL_ERROR @@ -255,10 +131,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D * Method: glCompressedTexImage3D * Signature: (IIIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D (JNIEnv *env, jclass clazz, jint target, jint level, jint internalformat, jint width, jint height, jint depth, jint border, jint imagesize, jobject buffer, jint offset) { - CHECK_EXISTS(glCompressedTexImage3D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glCompressedTexImage3D(target, level, internalformat, width, height, depth, border, imagesize, address); CHECK_GL_ERROR @@ -269,10 +144,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D * Method: glCompressedTexSubImage1D * Signature: (IIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D (JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint width, jint format, jint imagesize, jobject buffer, jint offset) { - CHECK_EXISTS(glCompressedTexSubImage1D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glCompressedTexSubImage1D(target, level, xoffset, width, format, imagesize, address); CHECK_GL_ERROR @@ -283,10 +157,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D * Method: glCompressedTexSubImage2D * Signature: (IIIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D (JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint width, jint height, jint format, jint imagesize, jobject buffer, jint offset) { - CHECK_EXISTS(glCompressedTexSubImage2D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height, format, imagesize, address); CHECK_GL_ERROR @@ -297,10 +170,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D * Method: glCompressedTexSubImage3D * Signature: (IIIIIIIIIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D (JNIEnv *env, jclass clazz, jint target, jint level, jint xoffset, jint yoffset, jint zoffset, jint width, jint height, jint depth, jint format, jint imagesize, jobject buffer, jint offset) { - CHECK_EXISTS(glCompressedTexSubImage3D) const void *address = (const void *)(offset + (const GLbyte *)env->GetDirectBufferAddress(buffer)); glCompressedTexSubImage3D(target, level, xoffset, yoffset, zoffset, width, height, depth, format, imagesize, address); CHECK_GL_ERROR @@ -311,10 +183,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D * Method: glGetCompressedTexImage * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage (JNIEnv *env, jclass clazz, jint target, jint lod, jobject buffer, jint offset) { - CHECK_EXISTS(glGetCompressedTexImage) void *address = (void *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glGetCompressedTexImage(target, lod, address); CHECK_GL_ERROR @@ -327,10 +198,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage * Method: glMultiTexCoord1f * Signature: (IF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord1f +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord1f (JNIEnv *env, jclass clazz, jint target, jfloat s) { - CHECK_EXISTS(glMultiTexCoord1f) glMultiTexCoord1f(target, s); } @@ -341,10 +211,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord1f * Method: glMultiTexCoord2f * Signature: (IFF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord2f +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord2f (JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t) { - CHECK_EXISTS(glMultiTexCoord2f) glMultiTexCoord2f(target, s, t); } @@ -356,10 +225,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord2f * Method: glMultiTexCoord3f * Signature: (IFFF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord3f +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord3f (JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r) { - CHECK_EXISTS(glMultiTexCoord3f) glMultiTexCoord3f(target, s, t, r); } @@ -370,10 +238,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord3f * Method: glMultiTexCoord4f * Signature: (IFFFF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord4f +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord4f (JNIEnv *env, jclass clazz, jint target, jfloat s, jfloat t, jfloat r, jfloat q) { - CHECK_EXISTS(glMultiTexCoord4f) glMultiTexCoord4f(target, s, t, r, q); } @@ -384,10 +251,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord4f * Method: glLoadTransposeMatrixf * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf (JNIEnv *env, jclass clazz, jobject buffer, jint offset) { - CHECK_EXISTS(glLoadTransposeMatrixf) const GLfloat *address = (const GLfloat *)env->GetDirectBufferAddress(buffer); glLoadTransposeMatrixf(address); CHECK_GL_ERROR @@ -400,10 +266,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf * Method: glMultTransposeMatrixf * Signature: (I)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf (JNIEnv *env, jclass clazz, jobject buffer, jint offset) { - CHECK_EXISTS(glMultTransposeMatrixf) const GLfloat *address = (const GLfloat *)env->GetDirectBufferAddress(buffer); glMultTransposeMatrixf(address); CHECK_GL_ERROR @@ -414,10 +279,36 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf * Method: glSampleCoverage * Signature: (FZ)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glSampleCoverage +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glSampleCoverage (JNIEnv *env, jclass clazz, jfloat value, jboolean invert) { - CHECK_EXISTS(glSampleCoverage) glSampleCoverage(value, invert); CHECK_GL_ERROR } + +void extgl_InitOpenGL1_3(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glActiveTexture", "(I)V", (void*)&Java_org_lwjgl_opengl_GL13_glActiveTexture, "glActiveTexture", (void**)&glActiveTexture}, + {"glClientActiveTexture", "(I)V", (void*)&Java_org_lwjgl_opengl_GL13_glClientActiveTexture, "glClientActiveTexture", (void**)&glClientActiveTexture}, + {"nglCompressedTexImage1D", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D, "glCompressedTexImage1D", (void**)&glCompressedTexImage1D}, + {"nglCompressedTexImage2D", "(IIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D, "glCompressedTexImage2D", (void**)&glCompressedTexImage2D}, + {"nglCompressedTexImage3D", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D, "glCompressedTexImage3D", (void**)&glCompressedTexImage3D}, + {"nglCompressedTexSubImage1D", "(IIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D, "glCompressedTexSubImage1D", (void**)&glCompressedTexSubImage1D}, + {"nglCompressedTexSubImage2D", "(IIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D, "glCompressedTexSubImage2D", (void**)&glCompressedTexSubImage2D}, + {"nglCompressedTexSubImage3D", "(IIIIIIIIIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D, "glCompressedTexSubImage3D", (void**)&glCompressedTexSubImage3D}, + {"nglGetCompressedTexImage", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage, "glGetCompressedTexImage", (void**)&glGetCompressedTexImage}, + {"glMultiTexCoord1f", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord1f, "glMultiTexCoord1f", (void**)&glMultiTexCoord1f}, + {"glMultiTexCoord2f", "(IFF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord2f, "glMultiTexCoord2f", (void**)&glMultiTexCoord2f}, + {"glMultiTexCoord3f", "(IFFF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord3f, "glMultiTexCoord3f", (void**)&glMultiTexCoord3f}, + {"glMultiTexCoord4f", "(IFFFF)V", (void*)&Java_org_lwjgl_opengl_GL13_glMultiTexCoord4f, "glMultiTexCoord4f", (void**)&glMultiTexCoord4f}, + {"nglLoadTransposeMatrixf", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf, "glLoadTransposeMatrixf", (void**)&glLoadTransposeMatrixf}, + {"nglMultTransposeMatrixf", "(Ljava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf, "glMultTransposeMatrixf", (void**)&glMultTransposeMatrixf}, + {"glSampleCoverage", "(FZ)V", (void*)&Java_org_lwjgl_opengl_GL13_glSampleCoverage, "glSampleCoverage", (void**)&glSampleCoverage} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/GL13"); + if (extgl_Extensions.OpenGL13) + extgl_InitializeClass(env, clazz, ext_set, "OpenGL13", num_functions, functions); +} + diff --git a/src/native/common/org_lwjgl_opengl_GL13.h b/src/native/common/org_lwjgl_opengl_GL13.h deleted file mode 100644 index f42b4655..00000000 --- a/src/native/common/org_lwjgl_opengl_GL13.h +++ /dev/null @@ -1,333 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_GL13 */ - -#ifndef _Included_org_lwjgl_opengl_GL13 -#define _Included_org_lwjgl_opengl_GL13 -#ifdef __cplusplus -extern "C" { -#endif -#undef org_lwjgl_opengl_GL13_GL_TEXTURE0 -#define org_lwjgl_opengl_GL13_GL_TEXTURE0 33984L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE1 -#define org_lwjgl_opengl_GL13_GL_TEXTURE1 33985L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE2 -#define org_lwjgl_opengl_GL13_GL_TEXTURE2 33986L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE3 -#define org_lwjgl_opengl_GL13_GL_TEXTURE3 33987L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE4 -#define org_lwjgl_opengl_GL13_GL_TEXTURE4 33988L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE5 -#define org_lwjgl_opengl_GL13_GL_TEXTURE5 33989L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE6 -#define org_lwjgl_opengl_GL13_GL_TEXTURE6 33990L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE7 -#define org_lwjgl_opengl_GL13_GL_TEXTURE7 33991L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE8 -#define org_lwjgl_opengl_GL13_GL_TEXTURE8 33992L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE9 -#define org_lwjgl_opengl_GL13_GL_TEXTURE9 33993L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE10 -#define org_lwjgl_opengl_GL13_GL_TEXTURE10 33994L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE11 -#define org_lwjgl_opengl_GL13_GL_TEXTURE11 33995L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE12 -#define org_lwjgl_opengl_GL13_GL_TEXTURE12 33996L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE13 -#define org_lwjgl_opengl_GL13_GL_TEXTURE13 33997L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE14 -#define org_lwjgl_opengl_GL13_GL_TEXTURE14 33998L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE15 -#define org_lwjgl_opengl_GL13_GL_TEXTURE15 33999L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE16 -#define org_lwjgl_opengl_GL13_GL_TEXTURE16 34000L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE17 -#define org_lwjgl_opengl_GL13_GL_TEXTURE17 34001L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE18 -#define org_lwjgl_opengl_GL13_GL_TEXTURE18 34002L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE19 -#define org_lwjgl_opengl_GL13_GL_TEXTURE19 34003L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE20 -#define org_lwjgl_opengl_GL13_GL_TEXTURE20 34004L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE21 -#define org_lwjgl_opengl_GL13_GL_TEXTURE21 34005L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE22 -#define org_lwjgl_opengl_GL13_GL_TEXTURE22 34006L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE23 -#define org_lwjgl_opengl_GL13_GL_TEXTURE23 34007L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE24 -#define org_lwjgl_opengl_GL13_GL_TEXTURE24 34008L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE25 -#define org_lwjgl_opengl_GL13_GL_TEXTURE25 34009L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE26 -#define org_lwjgl_opengl_GL13_GL_TEXTURE26 34010L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE27 -#define org_lwjgl_opengl_GL13_GL_TEXTURE27 34011L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE28 -#define org_lwjgl_opengl_GL13_GL_TEXTURE28 34012L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE29 -#define org_lwjgl_opengl_GL13_GL_TEXTURE29 34013L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE30 -#define org_lwjgl_opengl_GL13_GL_TEXTURE30 34014L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE31 -#define org_lwjgl_opengl_GL13_GL_TEXTURE31 34015L -#undef org_lwjgl_opengl_GL13_GL_ACTIVE_TEXTURE -#define org_lwjgl_opengl_GL13_GL_ACTIVE_TEXTURE 34016L -#undef org_lwjgl_opengl_GL13_GL_CLIENT_ACTIVE_TEXTURE -#define org_lwjgl_opengl_GL13_GL_CLIENT_ACTIVE_TEXTURE 34017L -#undef org_lwjgl_opengl_GL13_GL_MAX_TEXTURE_UNITS -#define org_lwjgl_opengl_GL13_GL_MAX_TEXTURE_UNITS 34018L -#undef org_lwjgl_opengl_GL13_GL_NORMAL_MAP -#define org_lwjgl_opengl_GL13_GL_NORMAL_MAP 34065L -#undef org_lwjgl_opengl_GL13_GL_REFLECTION_MAP -#define org_lwjgl_opengl_GL13_GL_REFLECTION_MAP 34066L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP -#define org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP 34067L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_BINDING_CUBE_MAP -#define org_lwjgl_opengl_GL13_GL_TEXTURE_BINDING_CUBE_MAP 34068L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_POSITIVE_X -#define org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_POSITIVE_X 34069L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_NEGATIVE_X -#define org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_NEGATIVE_X 34070L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_POSITIVE_Y -#define org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_POSITIVE_Y 34071L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y -#define org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_NEGATIVE_Y 34072L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_POSITIVE_Z -#define org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_POSITIVE_Z 34073L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z -#define org_lwjgl_opengl_GL13_GL_TEXTURE_CUBE_MAP_NEGATIVE_Z 34074L -#undef org_lwjgl_opengl_GL13_GL_PROXY_TEXTURE_CUBE_MAP -#define org_lwjgl_opengl_GL13_GL_PROXY_TEXTURE_CUBE_MAP 34075L -#undef org_lwjgl_opengl_GL13_GL_MAX_CUBE_MAP_TEXTURE_SIZE -#define org_lwjgl_opengl_GL13_GL_MAX_CUBE_MAP_TEXTURE_SIZE 34076L -#undef org_lwjgl_opengl_GL13_GL_COMPRESSED_ALPHA -#define org_lwjgl_opengl_GL13_GL_COMPRESSED_ALPHA 34025L -#undef org_lwjgl_opengl_GL13_GL_COMPRESSED_LUMINANCE -#define org_lwjgl_opengl_GL13_GL_COMPRESSED_LUMINANCE 34026L -#undef org_lwjgl_opengl_GL13_GL_COMPRESSED_LUMINANCE_ALPHA -#define org_lwjgl_opengl_GL13_GL_COMPRESSED_LUMINANCE_ALPHA 34027L -#undef org_lwjgl_opengl_GL13_GL_COMPRESSED_INTENSITY -#define org_lwjgl_opengl_GL13_GL_COMPRESSED_INTENSITY 34028L -#undef org_lwjgl_opengl_GL13_GL_COMPRESSED_RGB -#define org_lwjgl_opengl_GL13_GL_COMPRESSED_RGB 34029L -#undef org_lwjgl_opengl_GL13_GL_COMPRESSED_RGBA -#define org_lwjgl_opengl_GL13_GL_COMPRESSED_RGBA 34030L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_COMPRESSION_HINT -#define org_lwjgl_opengl_GL13_GL_TEXTURE_COMPRESSION_HINT 34031L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_COMPRESSED_IMAGE_SIZE -#define org_lwjgl_opengl_GL13_GL_TEXTURE_COMPRESSED_IMAGE_SIZE 34464L -#undef org_lwjgl_opengl_GL13_GL_TEXTURE_COMPRESSED -#define org_lwjgl_opengl_GL13_GL_TEXTURE_COMPRESSED 34465L -#undef org_lwjgl_opengl_GL13_GL_NUM_COMPRESSED_TEXTURE_FORMATS -#define org_lwjgl_opengl_GL13_GL_NUM_COMPRESSED_TEXTURE_FORMATS 34466L -#undef org_lwjgl_opengl_GL13_GL_COMPRESSED_TEXTURE_FORMATS -#define org_lwjgl_opengl_GL13_GL_COMPRESSED_TEXTURE_FORMATS 34467L -#undef org_lwjgl_opengl_GL13_GL_MULTISAMPLE -#define org_lwjgl_opengl_GL13_GL_MULTISAMPLE 32925L -#undef org_lwjgl_opengl_GL13_GL_SAMPLE_ALPHA_TO_COVERAGE -#define org_lwjgl_opengl_GL13_GL_SAMPLE_ALPHA_TO_COVERAGE 32926L -#undef org_lwjgl_opengl_GL13_GL_SAMPLE_ALPHA_TO_ONE -#define org_lwjgl_opengl_GL13_GL_SAMPLE_ALPHA_TO_ONE 32927L -#undef org_lwjgl_opengl_GL13_GL_SAMPLE_COVERAGE -#define org_lwjgl_opengl_GL13_GL_SAMPLE_COVERAGE 32928L -#undef org_lwjgl_opengl_GL13_GL_SAMPLE_BUFFERS -#define org_lwjgl_opengl_GL13_GL_SAMPLE_BUFFERS 32936L -#undef org_lwjgl_opengl_GL13_GL_SAMPLES -#define org_lwjgl_opengl_GL13_GL_SAMPLES 32937L -#undef org_lwjgl_opengl_GL13_GL_SAMPLE_COVERAGE_VALUE -#define org_lwjgl_opengl_GL13_GL_SAMPLE_COVERAGE_VALUE 32938L -#undef org_lwjgl_opengl_GL13_GL_SAMPLE_COVERAGE_INVERT -#define org_lwjgl_opengl_GL13_GL_SAMPLE_COVERAGE_INVERT 32939L -#undef org_lwjgl_opengl_GL13_GL_MULTISAMPLE_BIT -#define org_lwjgl_opengl_GL13_GL_MULTISAMPLE_BIT 536870912L -#undef org_lwjgl_opengl_GL13_GL_TRANSPOSE_MODELVIEW_MATRIX -#define org_lwjgl_opengl_GL13_GL_TRANSPOSE_MODELVIEW_MATRIX 34019L -#undef org_lwjgl_opengl_GL13_GL_TRANSPOSE_PROJECTION_MATRIX -#define org_lwjgl_opengl_GL13_GL_TRANSPOSE_PROJECTION_MATRIX 34020L -#undef org_lwjgl_opengl_GL13_GL_TRANSPOSE_TEXTURE_MATRIX -#define org_lwjgl_opengl_GL13_GL_TRANSPOSE_TEXTURE_MATRIX 34021L -#undef org_lwjgl_opengl_GL13_GL_TRANSPOSE_COLOR_MATRIX -#define org_lwjgl_opengl_GL13_GL_TRANSPOSE_COLOR_MATRIX 34022L -#undef org_lwjgl_opengl_GL13_GL_COMBINE -#define org_lwjgl_opengl_GL13_GL_COMBINE 34160L -#undef org_lwjgl_opengl_GL13_GL_COMBINE_RGB -#define org_lwjgl_opengl_GL13_GL_COMBINE_RGB 34161L -#undef org_lwjgl_opengl_GL13_GL_COMBINE_ALPHA -#define org_lwjgl_opengl_GL13_GL_COMBINE_ALPHA 34162L -#undef org_lwjgl_opengl_GL13_GL_SOURCE0_RGB -#define org_lwjgl_opengl_GL13_GL_SOURCE0_RGB 34176L -#undef org_lwjgl_opengl_GL13_GL_SOURCE1_RGB -#define org_lwjgl_opengl_GL13_GL_SOURCE1_RGB 34177L -#undef org_lwjgl_opengl_GL13_GL_SOURCE2_RGB -#define org_lwjgl_opengl_GL13_GL_SOURCE2_RGB 34178L -#undef org_lwjgl_opengl_GL13_GL_SOURCE0_ALPHA -#define org_lwjgl_opengl_GL13_GL_SOURCE0_ALPHA 34184L -#undef org_lwjgl_opengl_GL13_GL_SOURCE1_ALPHA -#define org_lwjgl_opengl_GL13_GL_SOURCE1_ALPHA 34185L -#undef org_lwjgl_opengl_GL13_GL_SOURCE2_ALPHA -#define org_lwjgl_opengl_GL13_GL_SOURCE2_ALPHA 34186L -#undef org_lwjgl_opengl_GL13_GL_OPERAND0_RGB -#define org_lwjgl_opengl_GL13_GL_OPERAND0_RGB 34192L -#undef org_lwjgl_opengl_GL13_GL_OPERAND1_RGB -#define org_lwjgl_opengl_GL13_GL_OPERAND1_RGB 34193L -#undef org_lwjgl_opengl_GL13_GL_OPERAND2_RGB -#define org_lwjgl_opengl_GL13_GL_OPERAND2_RGB 34194L -#undef org_lwjgl_opengl_GL13_GL_OPERAND0_ALPHA -#define org_lwjgl_opengl_GL13_GL_OPERAND0_ALPHA 34200L -#undef org_lwjgl_opengl_GL13_GL_OPERAND1_ALPHA -#define org_lwjgl_opengl_GL13_GL_OPERAND1_ALPHA 34201L -#undef org_lwjgl_opengl_GL13_GL_OPERAND2_ALPHA -#define org_lwjgl_opengl_GL13_GL_OPERAND2_ALPHA 34202L -#undef org_lwjgl_opengl_GL13_GL_RGB_SCALE -#define org_lwjgl_opengl_GL13_GL_RGB_SCALE 34163L -#undef org_lwjgl_opengl_GL13_GL_ADD_SIGNED -#define org_lwjgl_opengl_GL13_GL_ADD_SIGNED 34164L -#undef org_lwjgl_opengl_GL13_GL_INTERPOLATE -#define org_lwjgl_opengl_GL13_GL_INTERPOLATE 34165L -#undef org_lwjgl_opengl_GL13_GL_SUBTRACT -#define org_lwjgl_opengl_GL13_GL_SUBTRACT 34023L -#undef org_lwjgl_opengl_GL13_GL_CONSTANT -#define org_lwjgl_opengl_GL13_GL_CONSTANT 34166L -#undef org_lwjgl_opengl_GL13_GL_PRIMARY_COLOR -#define org_lwjgl_opengl_GL13_GL_PRIMARY_COLOR 34167L -#undef org_lwjgl_opengl_GL13_GL_PREVIOUS -#define org_lwjgl_opengl_GL13_GL_PREVIOUS 34168L -#undef org_lwjgl_opengl_GL13_GL_DOT3_RGB -#define org_lwjgl_opengl_GL13_GL_DOT3_RGB 34478L -#undef org_lwjgl_opengl_GL13_GL_DOT3_RGBA -#define org_lwjgl_opengl_GL13_GL_DOT3_RGBA 34479L -#undef org_lwjgl_opengl_GL13_GL_CLAMP_TO_BORDER -#define org_lwjgl_opengl_GL13_GL_CLAMP_TO_BORDER 33069L -/* - * Class: org_lwjgl_opengl_GL13 - * Method: glActiveTexture - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glActiveTexture - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: glClientActiveTexture - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glClientActiveTexture - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglCompressedTexImage1D - * Signature: (IIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglCompressedTexImage2D - * Signature: (IIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglCompressedTexImage3D - * Signature: (IIIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexImage3D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglCompressedTexSubImage1D - * Signature: (IIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage1D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglCompressedTexSubImage2D - * Signature: (IIIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage2D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglCompressedTexSubImage3D - * Signature: (IIIIIIIIIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglCompressedTexSubImage3D - (JNIEnv *, jclass, jint, jint, jint, jint, jint, jint, jint, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglGetCompressedTexImage - * Signature: (IILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglGetCompressedTexImage - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: glMultiTexCoord1f - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord1f - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: glMultiTexCoord2f - * Signature: (IFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord2f - (JNIEnv *, jclass, jint, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: glMultiTexCoord3f - * Signature: (IFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord3f - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: glMultiTexCoord4f - * Signature: (IFFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glMultiTexCoord4f - (JNIEnv *, jclass, jint, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglLoadTransposeMatrixf - * Signature: (Ljava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglLoadTransposeMatrixf - (JNIEnv *, jclass, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: nglMultTransposeMatrixf - * Signature: (Ljava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_nglMultTransposeMatrixf - (JNIEnv *, jclass, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL13 - * Method: glSampleCoverage - * Signature: (FZ)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL13_glSampleCoverage - (JNIEnv *, jclass, jfloat, jboolean); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/org_lwjgl_opengl_GL14.cpp b/src/native/common/org_lwjgl_opengl_GL14.cpp index a06803d6..9c43f6d6 100644 --- a/src/native/common/org_lwjgl_opengl_GL14.cpp +++ b/src/native/common/org_lwjgl_opengl_GL14.cpp @@ -39,166 +39,53 @@ * @version $Revision$ */ -#include "org_lwjgl_opengl_GL14.h" #include "checkGLerror.h" #include "extgl.h" typedef void (APIENTRY * glBlendColorPROC) (GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha); typedef void (APIENTRY * glBlendEquationPROC) (GLenum mode); typedef void (APIENTRY * glFogCoordfPROC) (GLfloat coord); -typedef void (APIENTRY * glFogCoordfvPROC) (const GLfloat *coord); -typedef void (APIENTRY * glFogCoorddPROC) (GLdouble coord); -typedef void (APIENTRY * glFogCoorddvPROC) (const GLdouble *coord); typedef void (APIENTRY * glFogCoordPointerPROC) (GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRY * glMultiDrawArraysPROC) (GLenum mode, GLint *first, GLsizei *count, GLsizei primcount); -typedef void (APIENTRY * glMultiDrawElementsPROC) (GLenum mode, GLsizei *count, GLenum type, const GLvoid **indices, GLsizei primcount); typedef void (APIENTRY * glPointParameterfPROC) (GLenum pname, GLfloat param); typedef void (APIENTRY * glPointParameterfvPROC) (GLenum pname, GLfloat *params); typedef void (APIENTRY * glSecondaryColor3bPROC) (GLbyte red, GLbyte green, GLbyte blue); -typedef void (APIENTRY * glSecondaryColor3bvPROC) (const GLbyte *v); -typedef void (APIENTRY * glSecondaryColor3dPROC) (GLdouble red, GLdouble green, GLdouble blue); -typedef void (APIENTRY * glSecondaryColor3dvPROC) (const GLdouble *v); typedef void (APIENTRY * glSecondaryColor3fPROC) (GLfloat red, GLfloat green, GLfloat blue); -typedef void (APIENTRY * glSecondaryColor3fvPROC) (const GLfloat *v); -typedef void (APIENTRY * glSecondaryColor3iPROC) (GLint red, GLint green, GLint blue); -typedef void (APIENTRY * glSecondaryColor3ivPROC) (const GLint *v); -typedef void (APIENTRY * glSecondaryColor3sPROC) (GLshort red, GLshort green, GLshort blue); -typedef void (APIENTRY * glSecondaryColor3svPROC) (const GLshort *v); typedef void (APIENTRY * glSecondaryColor3ubPROC) (GLubyte red, GLubyte green, GLubyte blue); -typedef void (APIENTRY * glSecondaryColor3ubvPROC) (const GLubyte *v); -typedef void (APIENTRY * glSecondaryColor3uiPROC) (GLuint red, GLuint green, GLuint blue); -typedef void (APIENTRY * glSecondaryColor3uivPROC) (const GLuint *v); -typedef void (APIENTRY * glSecondaryColor3usPROC) (GLushort red, GLushort green, GLushort blue); -typedef void (APIENTRY * glSecondaryColor3usvPROC) (const GLushort *v); typedef void (APIENTRY * glSecondaryColorPointerPROC) (GLint size, GLenum type, GLsizei stride, const GLvoid *pointer); typedef void (APIENTRY * glBlendFuncSeparatePROC) (GLenum sfactorRGB, GLenum dfactorRGB, GLenum sfactorAlpha, GLenum dfactorAlpha); -typedef void (APIENTRY * glWindowPos2dPROC) (GLdouble x, GLdouble y); typedef void (APIENTRY * glWindowPos2fPROC) (GLfloat x, GLfloat y); typedef void (APIENTRY * glWindowPos2iPROC) (GLint x, GLint y); -typedef void (APIENTRY * glWindowPos2sPROC) (GLshort x, GLshort y); -typedef void (APIENTRY * glWindowPos2dvPROC) (const GLdouble *p); -typedef void (APIENTRY * glWindowPos2fvPROC) (const GLfloat *p); -typedef void (APIENTRY * glWindowPos2ivPROC) (const GLint *p); -typedef void (APIENTRY * glWindowPos2svPROC) (const GLshort *p); -typedef void (APIENTRY * glWindowPos3dPROC) (GLdouble x, GLdouble y, GLdouble z); typedef void (APIENTRY * glWindowPos3fPROC) (GLfloat x, GLfloat y, GLfloat z); typedef void (APIENTRY * glWindowPos3iPROC) (GLint x, GLint y, GLint z); -typedef void (APIENTRY * glWindowPos3sPROC) (GLshort x, GLshort y, GLshort z); -typedef void (APIENTRY * glWindowPos3dvPROC) (const GLdouble *p); -typedef void (APIENTRY * glWindowPos3fvPROC) (const GLfloat *p); -typedef void (APIENTRY * glWindowPos3ivPROC) (const GLint *p); -typedef void (APIENTRY * glWindowPos3svPROC) (const GLshort *p); static glFogCoordfPROC glFogCoordf; -static glFogCoordfvPROC glFogCoordfv; -static glFogCoorddPROC glFogCoordd; -static glFogCoorddvPROC glFogCoorddv; static glFogCoordPointerPROC glFogCoordPointer; static glMultiDrawArraysPROC glMultiDrawArrays; -static glMultiDrawElementsPROC glMultiDrawElements; static glPointParameterfPROC glPointParameterf; static glPointParameterfvPROC glPointParameterfv; static glSecondaryColor3bPROC glSecondaryColor3b; -static glSecondaryColor3bvPROC glSecondaryColor3bv; -static glSecondaryColor3dPROC glSecondaryColor3d; -static glSecondaryColor3dvPROC glSecondaryColor3dv; static glSecondaryColor3fPROC glSecondaryColor3f; -static glSecondaryColor3fvPROC glSecondaryColor3fv; -static glSecondaryColor3iPROC glSecondaryColor3i; -static glSecondaryColor3ivPROC glSecondaryColor3iv; -static glSecondaryColor3sPROC glSecondaryColor3s; -static glSecondaryColor3svPROC glSecondaryColor3sv; static glSecondaryColor3ubPROC glSecondaryColor3ub; -static glSecondaryColor3ubvPROC glSecondaryColor3ubv; -static glSecondaryColor3uiPROC glSecondaryColor3ui; -static glSecondaryColor3uivPROC glSecondaryColor3uiv; -static glSecondaryColor3usPROC glSecondaryColor3us; -static glSecondaryColor3usvPROC glSecondaryColor3usv; static glSecondaryColorPointerPROC glSecondaryColorPointer; static glBlendFuncSeparatePROC glBlendFuncSeparate; -static glWindowPos2dPROC glWindowPos2d; static glWindowPos2fPROC glWindowPos2f; static glWindowPos2iPROC glWindowPos2i; -static glWindowPos2sPROC glWindowPos2s; -static glWindowPos2dvPROC glWindowPos2dv; -static glWindowPos2fvPROC glWindowPos2fv; -static glWindowPos2ivPROC glWindowPos2iv; -static glWindowPos2svPROC glWindowPos2sv; -static glWindowPos3dPROC glWindowPos3d; static glWindowPos3fPROC glWindowPos3f; static glWindowPos3iPROC glWindowPos3i; -static glWindowPos3sPROC glWindowPos3s; -static glWindowPos3dvPROC glWindowPos3dv; -static glWindowPos3fvPROC glWindowPos3fv; -static glWindowPos3ivPROC glWindowPos3iv; -static glWindowPos3svPROC glWindowPos3sv; static glBlendColorPROC glBlendColor; static glBlendEquationPROC glBlendEquation; -void extgl_InitOpenGL1_4(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.OpenGL14) - return; - glBlendColor = (glBlendColorPROC) extgl_GetProcAddress("glBlendColor"); - glBlendEquation = (glBlendEquationPROC) extgl_GetProcAddress("glBlendEquation"); - glFogCoordf = (glFogCoordfPROC) extgl_GetProcAddress("glFogCoordf"); - glFogCoordfv = (glFogCoordfvPROC) extgl_GetProcAddress("glFogCoordfv"); - glFogCoordd = (glFogCoorddPROC) extgl_GetProcAddress("glFogCoordd"); - glFogCoorddv = (glFogCoorddvPROC) extgl_GetProcAddress("glFogCoorddv"); - glFogCoordPointer = (glFogCoordPointerPROC) extgl_GetProcAddress("glFogCoordPointer"); - glMultiDrawArrays = (glMultiDrawArraysPROC) extgl_GetProcAddress("glMultiDrawArrays"); - glMultiDrawElements = (glMultiDrawElementsPROC) extgl_GetProcAddress("glMultiDrawElements"); - glPointParameterf = (glPointParameterfPROC) extgl_GetProcAddress("glPointParameterf"); - glPointParameterfv = (glPointParameterfvPROC) extgl_GetProcAddress("glPointParameterfv"); - glSecondaryColor3b = (glSecondaryColor3bPROC) extgl_GetProcAddress("glSecondaryColor3b"); - glSecondaryColor3bv = (glSecondaryColor3bvPROC) extgl_GetProcAddress("glSecondaryColor3bv"); - glSecondaryColor3d = (glSecondaryColor3dPROC) extgl_GetProcAddress("glSecondaryColor3d"); - glSecondaryColor3dv = (glSecondaryColor3dvPROC) extgl_GetProcAddress("glSecondaryColor3dv"); - glSecondaryColor3f = (glSecondaryColor3fPROC) extgl_GetProcAddress("glSecondaryColor3f"); - glSecondaryColor3fv = (glSecondaryColor3fvPROC) extgl_GetProcAddress("glSecondaryColor3fv"); - glSecondaryColor3i = (glSecondaryColor3iPROC) extgl_GetProcAddress("glSecondaryColor3i"); - glSecondaryColor3iv = (glSecondaryColor3ivPROC) extgl_GetProcAddress("glSecondaryColor3iv"); - glSecondaryColor3s = (glSecondaryColor3sPROC) extgl_GetProcAddress("glSecondaryColor3s"); - glSecondaryColor3sv = (glSecondaryColor3svPROC) extgl_GetProcAddress("glSecondaryColor3sv"); - glSecondaryColor3ub = (glSecondaryColor3ubPROC) extgl_GetProcAddress("glSecondaryColor3ub"); - glSecondaryColor3ubv = (glSecondaryColor3ubvPROC) extgl_GetProcAddress("glSecondaryColor3ubv"); - glSecondaryColor3ui = (glSecondaryColor3uiPROC) extgl_GetProcAddress("glSecondaryColor3ui"); - glSecondaryColor3uiv = (glSecondaryColor3uivPROC) extgl_GetProcAddress("glSecondaryColor3uiv"); - glSecondaryColor3us = (glSecondaryColor3usPROC) extgl_GetProcAddress("glSecondaryColor3us"); - glSecondaryColor3usv = (glSecondaryColor3usvPROC) extgl_GetProcAddress("glSecondaryColor3usv"); - glSecondaryColorPointer = (glSecondaryColorPointerPROC) extgl_GetProcAddress("glSecondaryColorPointer"); - glBlendFuncSeparate = (glBlendFuncSeparatePROC) extgl_GetProcAddress("glBlendFuncSeparate"); - glWindowPos2d = (glWindowPos2dPROC) extgl_GetProcAddress("glWindowPos2d"); - glWindowPos2f = (glWindowPos2fPROC) extgl_GetProcAddress("glWindowPos2f"); - glWindowPos2i = (glWindowPos2iPROC) extgl_GetProcAddress("glWindowPos2i"); - glWindowPos2s = (glWindowPos2sPROC) extgl_GetProcAddress("glWindowPos2s"); - glWindowPos2dv = (glWindowPos2dvPROC) extgl_GetProcAddress("glWindowPos2dv"); - glWindowPos2fv = (glWindowPos2fvPROC) extgl_GetProcAddress("glWindowPos2fv"); - glWindowPos2iv = (glWindowPos2ivPROC) extgl_GetProcAddress("glWindowPos2iv"); - glWindowPos2sv = (glWindowPos2svPROC) extgl_GetProcAddress("glWindowPos2sv"); - glWindowPos3d = (glWindowPos3dPROC) extgl_GetProcAddress("glWindowPos3d"); - glWindowPos3f = (glWindowPos3fPROC) extgl_GetProcAddress("glWindowPos3f"); - glWindowPos3i = (glWindowPos3iPROC) extgl_GetProcAddress("glWindowPos3i"); - glWindowPos3s = (glWindowPos3sPROC) extgl_GetProcAddress("glWindowPos3s"); - glWindowPos3dv = (glWindowPos3dvPROC) extgl_GetProcAddress("glWindowPos3dv"); - glWindowPos3fv = (glWindowPos3fvPROC) extgl_GetProcAddress("glWindowPos3fv"); - glWindowPos3iv = (glWindowPos3ivPROC) extgl_GetProcAddress("glWindowPos3iv"); - glWindowPos3sv = (glWindowPos3svPROC) extgl_GetProcAddress("glWindowPos3sv"); - EXTGL_SANITY_CHECK(env, ext_set, OpenGL14) -} - -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendEquation +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendEquation (JNIEnv *env, jclass clazz, jint mode) { - CHECK_EXISTS(glBlendEquation) glBlendEquation(mode); CHECK_GL_ERROR } -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendColor(JNIEnv * env, jclass clazz, jfloat p0, jfloat p1, jfloat p2, jfloat p3) { - CHECK_EXISTS(glBlendColor) glBlendColor((GLfloat) p0, (GLfloat) p1, (GLfloat) p2, (GLfloat) p3); CHECK_GL_ERROR } @@ -208,9 +95,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendColor(JNIEnv * env, jcl * Method: glFogCoordf * Signature: (F)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glFogCoordf +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glFogCoordf (JNIEnv *env, jclass clazz, jfloat f) { - CHECK_EXISTS(glFogCoordf) glFogCoordf(f); } @@ -220,9 +106,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glFogCoordf * Method: nglFogCoordPointer * Signature: (IILjava/nio/Buffer;)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointer +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointer (JNIEnv *env, jclass clazz, jint p1, jint p2, jobject buffer, jint offset) { - CHECK_EXISTS(glFogCoordPointer) GLvoid *address = (GLvoid *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glFogCoordPointer(p1, p2, address); CHECK_GL_ERROR @@ -233,9 +118,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointer * Method: nglFogCoordPointerVBO * Signature: (IILjava/nio/Buffer;)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointerVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointerVBO (JNIEnv *env, jclass clazz, jint p1, jint p2, jint buffer_offset) { - CHECK_EXISTS(glFogCoordPointer) glFogCoordPointer(p1, p2, offsetToPointer(buffer_offset)); CHECK_GL_ERROR } @@ -245,38 +129,21 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointerVBO * Method: glMultiDrawArrays * Signature: (IIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays (JNIEnv *env, jclass clazz, jint mode, jobject first, jint first_offset, jobject count, jint count_offset, jint primcount) { - CHECK_EXISTS(glMultiDrawArrays) GLint *address = first_offset + (GLint *)env->GetDirectBufferAddress(first); GLsizei *address2 = count_offset + (GLsizei *)env->GetDirectBufferAddress(count); glMultiDrawArrays(mode, address, address2, (GLsizei)primcount); CHECK_GL_ERROR } -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glMultiDrawElements - * Signature: (IIIII)V - */ -/*JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glMultiDrawElements - (JNIEnv *env, jclass clazz, jint mode, jobject count, jint type, jobject indices, jint primcount) { - CHECK_EXISTS(glMultiDrawElements) - const GLsizei *address = (const GLsizei *)env->GetDirectBufferAddress(count); - const void *address2 = (const void *)env->GetDirectBufferAddress(indices); - glMultiDrawElements(mode, address, type, address2, primcount); - CHECK_GL_ERROR -} -*/ - /* * Class: org_lwjgl_opengl_GL14 * Method: glPointParameterf * Signature: (IF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameterf +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameterf (JNIEnv *env, jclass clazz, jint p1, jfloat p2) { - CHECK_EXISTS(glPointParameterf) glPointParameterf(p1, p2); CHECK_GL_ERROR } @@ -286,9 +153,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameterf * Method: glPointParameterfv * Signature: (ILjava/nio/FloatBuffer;)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv (JNIEnv *env, jclass clazz, jint p1, jobject buffer, jint offset) { - CHECK_EXISTS(glPointParameterfv) GLfloat *address = offset + (GLfloat *)env->GetDirectBufferAddress(buffer); glPointParameterfv(p1, address); CHECK_GL_ERROR @@ -299,9 +165,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv * Method: glSecondaryColor3b * Signature: (BBB)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3b +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3b (JNIEnv *env, jclass clazz, jbyte p1, jbyte p2, jbyte p3) { - CHECK_EXISTS(glSecondaryColor3b) glSecondaryColor3b(p1, p2, p3); } @@ -311,9 +176,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3b * Method: glSecondaryColor3f * Signature: (FFF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3f +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3f (JNIEnv *env, jclass clazz, jfloat p1, jfloat p2, jfloat p3) { - CHECK_EXISTS(glSecondaryColor3f) glSecondaryColor3f(p1, p2, p3); } @@ -323,9 +187,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3f * Method: glSecondaryColor3ub * Signature: (BBB)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub (JNIEnv *env, jclass clazz, jbyte p1, jbyte p2, jbyte p3) { - CHECK_EXISTS(glSecondaryColor3ub) glSecondaryColor3ub(p1, p2, p3); } @@ -334,9 +197,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub * Method: nglSecondaryColorPointer * Signature: (IIILjava/nio/Buffer;)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jobject buffer, jint offset) { - CHECK_EXISTS(glSecondaryColorPointer) const GLvoid *address = (const GLvoid *)(offset + (GLbyte *)env->GetDirectBufferAddress(buffer)); glSecondaryColorPointer(p1, p2, p3, address); CHECK_GL_ERROR @@ -347,9 +209,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer * Method: nglSecondaryColorPointerVBO * Signature: (IIILjava/nio/Buffer;)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerVBO +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerVBO (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jint buffer_offset) { - CHECK_EXISTS(glSecondaryColorPointer) glSecondaryColorPointer(p1, p2, p3, offsetToPointer(buffer_offset)); CHECK_GL_ERROR } @@ -359,9 +220,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerVBO * Method: glBlendFuncSeparate * Signature: (IIII)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3, jint p4) { - CHECK_EXISTS(glBlendFuncSeparate) glBlendFuncSeparate(p1, p2, p3, p4); CHECK_GL_ERROR } @@ -372,9 +232,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate * Method: glWindowPos2f * Signature: (FF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2f +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2f (JNIEnv *env, jclass clazz, jfloat p1, jfloat p2) { - CHECK_EXISTS(glWindowPos2f); glWindowPos2f(p1, p2); } @@ -383,9 +242,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2f * Method: glWindowPos2i * Signature: (II)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2i +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2i (JNIEnv *env, jclass clazz, jint p1, jint p2) { - CHECK_EXISTS(glWindowPos2i) glWindowPos2i(p1, p2); } @@ -395,9 +253,8 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2i * Method: glWindowPos3f * Signature: (FFF)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3f +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3f (JNIEnv *env, jclass clazz, jfloat p1, jfloat p2, jfloat p3) { - CHECK_EXISTS(glWindowPos3f) glWindowPos3f(p1, p2, p3); } @@ -407,8 +264,36 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3f * Method: glWindowPos3i * Signature: (III)V */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3i +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3i (JNIEnv *env, jclass clazz, jint p1, jint p2, jint p3) { - CHECK_EXISTS(glWindowPos3i) glWindowPos3i(p1, p2, p3); } + +void extgl_InitOpenGL1_4(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"glBlendEquation", "(I)V", (void*)&Java_org_lwjgl_opengl_GL14_glBlendEquation, "glBlendEquation", (void**)&glBlendEquation}, + {"glBlendColor", "(FFFF)V", (void*)&Java_org_lwjgl_opengl_GL14_glBlendColor, "glBlendColor", (void**)&glBlendColor}, + {"glFogCoordf", "(F)V", (void*)&Java_org_lwjgl_opengl_GL14_glFogCoordf, "glFogCoordf", (void**)&glFogCoordf}, + {"nglFogCoordPointer", "(IILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL14_nglFogCoordPointer, "glFogCoordPointer", (void**)&glFogCoordPointer}, + {"nglFogCoordPointerVBO", "(III)V", (void*)&Java_org_lwjgl_opengl_GL14_nglFogCoordPointerVBO, NULL, NULL}, + {"nglMultiDrawArrays", "(ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;II)V", (void*)&Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays, "glMultiDrawArrays", (void**)&glMultiDrawArrays}, + {"glPointParameterf", "(IF)V", (void*)&Java_org_lwjgl_opengl_GL14_glPointParameterf, "glPointParameterf", (void**)&glPointParameterf}, + {"nglPointParameterfv", "(ILjava/nio/FloatBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL14_nglPointParameterfv, "glPointParameterfv", (void**)&glPointParameterfv}, + {"glSecondaryColor3b", "(BBB)V", (void*)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3b, "glSecondaryColor3b", (void**)&glSecondaryColor3b}, + {"glSecondaryColor3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3f, "glSecondaryColor3f", (void**)&glSecondaryColor3f}, + {"glSecondaryColor3ub", "(BBB)V", (void*)&Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub, "glSecondaryColor3ub", (void**)&glSecondaryColor3ub}, + {"nglSecondaryColorPointer", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer, "glSecondaryColorPointer", (void**)&glSecondaryColorPointer}, + {"nglSecondaryColorPointerVBO", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerVBO, NULL, NULL}, + {"glBlendFuncSeparate", "(IIII)V", (void*)&Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate, "glBlendFuncSeparate", (void**)&glBlendFuncSeparate}, + {"glWindowPos2f", "(FF)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos2f, "glWindowPos2f", (void**)&glWindowPos2f}, + {"glWindowPos2i", "(II)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos2i, "glWindowPos2i", (void**)&glWindowPos2i}, + {"glWindowPos3f", "(FFF)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos3f, "glWindowPos3f", (void**)&glWindowPos3f}, + {"glWindowPos3i", "(III)V", (void*)&Java_org_lwjgl_opengl_GL14_glWindowPos3i, "glWindowPos3i", (void**)&glWindowPos3i} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/GL14"); + if (extgl_Extensions.OpenGL14) + extgl_InitializeClass(env, clazz, ext_set, "OpenGL14", num_functions, functions); +} + diff --git a/src/native/common/org_lwjgl_opengl_GL14.h b/src/native/common/org_lwjgl_opengl_GL14.h deleted file mode 100644 index cab9f594..00000000 --- a/src/native/common/org_lwjgl_opengl_GL14.h +++ /dev/null @@ -1,235 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_GL14 */ - -#ifndef _Included_org_lwjgl_opengl_GL14 -#define _Included_org_lwjgl_opengl_GL14 -#ifdef __cplusplus -extern "C" { -#endif -#undef org_lwjgl_opengl_GL14_GL_GENERATE_MIPMAP -#define org_lwjgl_opengl_GL14_GL_GENERATE_MIPMAP 33169L -#undef org_lwjgl_opengl_GL14_GL_GENERATE_MIPMAP_HINT -#define org_lwjgl_opengl_GL14_GL_GENERATE_MIPMAP_HINT 33170L -#undef org_lwjgl_opengl_GL14_GL_DEPTH_COMPONENT16 -#define org_lwjgl_opengl_GL14_GL_DEPTH_COMPONENT16 33189L -#undef org_lwjgl_opengl_GL14_GL_DEPTH_COMPONENT24 -#define org_lwjgl_opengl_GL14_GL_DEPTH_COMPONENT24 33190L -#undef org_lwjgl_opengl_GL14_GL_DEPTH_COMPONENT32 -#define org_lwjgl_opengl_GL14_GL_DEPTH_COMPONENT32 33191L -#undef org_lwjgl_opengl_GL14_GL_TEXTURE_DEPTH_SIZE -#define org_lwjgl_opengl_GL14_GL_TEXTURE_DEPTH_SIZE 34890L -#undef org_lwjgl_opengl_GL14_GL_DEPTH_TEXTURE_MODE -#define org_lwjgl_opengl_GL14_GL_DEPTH_TEXTURE_MODE 34891L -#undef org_lwjgl_opengl_GL14_GL_TEXTURE_COMPARE_MODE -#define org_lwjgl_opengl_GL14_GL_TEXTURE_COMPARE_MODE 34892L -#undef org_lwjgl_opengl_GL14_GL_TEXTURE_COMPARE_FUNC -#define org_lwjgl_opengl_GL14_GL_TEXTURE_COMPARE_FUNC 34893L -#undef org_lwjgl_opengl_GL14_GL_COMPARE_R_TO_TEXTURE -#define org_lwjgl_opengl_GL14_GL_COMPARE_R_TO_TEXTURE 34894L -#undef org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_SOURCE -#define org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_SOURCE 33872L -#undef org_lwjgl_opengl_GL14_GL_FOG_COORDINATE -#define org_lwjgl_opengl_GL14_GL_FOG_COORDINATE 33873L -#undef org_lwjgl_opengl_GL14_GL_FRAGMENT_DEPTH -#define org_lwjgl_opengl_GL14_GL_FRAGMENT_DEPTH 33874L -#undef org_lwjgl_opengl_GL14_GL_CURRENT_FOG_COORDINATE -#define org_lwjgl_opengl_GL14_GL_CURRENT_FOG_COORDINATE 33875L -#undef org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY_TYPE -#define org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY_TYPE 33876L -#undef org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY_STRIDE -#define org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY_STRIDE 33877L -#undef org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY_POINTER -#define org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY_POINTER 33878L -#undef org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY -#define org_lwjgl_opengl_GL14_GL_FOG_COORDINATE_ARRAY 33879L -#undef org_lwjgl_opengl_GL14_GL_POINT_SIZE_MIN -#define org_lwjgl_opengl_GL14_GL_POINT_SIZE_MIN 33062L -#undef org_lwjgl_opengl_GL14_GL_POINT_SIZE_MAX -#define org_lwjgl_opengl_GL14_GL_POINT_SIZE_MAX 33063L -#undef org_lwjgl_opengl_GL14_GL_POINT_FADE_THRESHOLD_SIZE -#define org_lwjgl_opengl_GL14_GL_POINT_FADE_THRESHOLD_SIZE 33064L -#undef org_lwjgl_opengl_GL14_GL_POINT_DISTANCE_ATTENUATION -#define org_lwjgl_opengl_GL14_GL_POINT_DISTANCE_ATTENUATION 33065L -#undef org_lwjgl_opengl_GL14_GL_COLOR_SUM -#define org_lwjgl_opengl_GL14_GL_COLOR_SUM 33880L -#undef org_lwjgl_opengl_GL14_GL_CURRENT_SECONDARY_COLOR -#define org_lwjgl_opengl_GL14_GL_CURRENT_SECONDARY_COLOR 33881L -#undef org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_SIZE -#define org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_SIZE 33882L -#undef org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_TYPE -#define org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_TYPE 33883L -#undef org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_STRIDE -#define org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_STRIDE 33884L -#undef org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_POINTER -#define org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY_POINTER 33885L -#undef org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY -#define org_lwjgl_opengl_GL14_GL_SECONDARY_COLOR_ARRAY 33886L -#undef org_lwjgl_opengl_GL14_GL_BLEND_DST_RGB -#define org_lwjgl_opengl_GL14_GL_BLEND_DST_RGB 32968L -#undef org_lwjgl_opengl_GL14_GL_BLEND_SRC_RGB -#define org_lwjgl_opengl_GL14_GL_BLEND_SRC_RGB 32969L -#undef org_lwjgl_opengl_GL14_GL_BLEND_DST_ALPHA -#define org_lwjgl_opengl_GL14_GL_BLEND_DST_ALPHA 32970L -#undef org_lwjgl_opengl_GL14_GL_BLEND_SRC_ALPHA -#define org_lwjgl_opengl_GL14_GL_BLEND_SRC_ALPHA 32971L -#undef org_lwjgl_opengl_GL14_GL_INCR_WRAP -#define org_lwjgl_opengl_GL14_GL_INCR_WRAP 34055L -#undef org_lwjgl_opengl_GL14_GL_DECR_WRAP -#define org_lwjgl_opengl_GL14_GL_DECR_WRAP 34056L -#undef org_lwjgl_opengl_GL14_GL_TEXTURE_FILTER_CONTROL -#define org_lwjgl_opengl_GL14_GL_TEXTURE_FILTER_CONTROL 34048L -#undef org_lwjgl_opengl_GL14_GL_TEXTURE_LOD_BIAS -#define org_lwjgl_opengl_GL14_GL_TEXTURE_LOD_BIAS 34049L -#undef org_lwjgl_opengl_GL14_GL_MAX_TEXTURE_LOD_BIAS -#define org_lwjgl_opengl_GL14_GL_MAX_TEXTURE_LOD_BIAS 34045L -#undef org_lwjgl_opengl_GL14_GL_GL_MIRRORED_REPEAT -#define org_lwjgl_opengl_GL14_GL_GL_MIRRORED_REPEAT 33648L -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glBlendEquation - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendEquation - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glBlendColor - * Signature: (FFFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendColor - (JNIEnv *, jclass, jfloat, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glFogCoordf - * Signature: (F)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glFogCoordf - (JNIEnv *, jclass, jfloat); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglFogCoordPointer - * Signature: (IILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointer - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglFogCoordPointerVBO - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglFogCoordPointerVBO - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglMultiDrawArrays - * Signature: (ILjava/nio/IntBuffer;ILjava/nio/IntBuffer;II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglMultiDrawArrays - (JNIEnv *, jclass, jint, jobject, jint, jobject, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glPointParameterf - * Signature: (IF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glPointParameterf - (JNIEnv *, jclass, jint, jfloat); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglPointParameterfv - * Signature: (ILjava/nio/FloatBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglPointParameterfv - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glSecondaryColor3b - * Signature: (BBB)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3b - (JNIEnv *, jclass, jbyte, jbyte, jbyte); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glSecondaryColor3f - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3f - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glSecondaryColor3ub - * Signature: (BBB)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glSecondaryColor3ub - (JNIEnv *, jclass, jbyte, jbyte, jbyte); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglSecondaryColorPointer - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointer - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: nglSecondaryColorPointerVBO - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_nglSecondaryColorPointerVBO - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glBlendFuncSeparate - * Signature: (IIII)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glBlendFuncSeparate - (JNIEnv *, jclass, jint, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos2f - * Signature: (FF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2f - (JNIEnv *, jclass, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos2i - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos2i - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos3f - * Signature: (FFF)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3f - (JNIEnv *, jclass, jfloat, jfloat, jfloat); - -/* - * Class: org_lwjgl_opengl_GL14 - * Method: glWindowPos3i - * Signature: (III)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL14_glWindowPos3i - (JNIEnv *, jclass, jint, jint, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/common/org_lwjgl_opengl_GL15.cpp b/src/native/common/org_lwjgl_opengl_GL15.cpp index 2254e29c..6523627f 100644 --- a/src/native/common/org_lwjgl_opengl_GL15.cpp +++ b/src/native/common/org_lwjgl_opengl_GL15.cpp @@ -34,7 +34,6 @@ // IMPLEMENTATION OF NATIVE METHODS FOR CLASS: org.lwjgl.opengl.GL15 // ---------------------------------- -#include "org_lwjgl_opengl_GL15.h" #include "extgl.h" #include "checkGLerror.h" @@ -83,42 +82,13 @@ static glGetQueryivPROC glGetQueryiv; static glGetQueryObjectivPROC glGetQueryObjectiv; static glGetQueryObjectuivPROC glGetQueryObjectuiv; -void extgl_InitOpenGL1_5(JNIEnv *env, jobject ext_set) -{ - if (!extgl_Extensions.OpenGL15) - return; - glBindBuffer = (glBindBufferPROC) extgl_GetProcAddress("glBindBuffer"); - glDeleteBuffers = (glDeleteBuffersPROC) extgl_GetProcAddress("glDeleteBuffers"); - glGenBuffers = (glGenBuffersPROC) extgl_GetProcAddress("glGenBuffers"); - glIsBuffer = (glIsBufferPROC) extgl_GetProcAddress("glIsBuffer"); - glBufferData = (glBufferDataPROC) extgl_GetProcAddress("glBufferData"); - glBufferSubData = (glBufferSubDataPROC) extgl_GetProcAddress("glBufferSubData"); - glGetBufferSubData = (glGetBufferSubDataPROC) extgl_GetProcAddress("glGetBufferSubData"); - glMapBuffer = (glMapBufferPROC) extgl_GetProcAddress("glMapBuffer"); - glUnmapBuffer = (glUnmapBufferPROC) extgl_GetProcAddress("glUnmapBuffer"); - glGetBufferParameteriv = (glGetBufferParameterivPROC) extgl_GetProcAddress("glGetBufferParameteriv"); - glGetBufferPointerv = (glGetBufferPointervPROC) extgl_GetProcAddress("glGetBufferPointerv"); - - glGenQueries = (glGenQueriesPROC) extgl_GetProcAddress("glGenQueries"); - glDeleteQueries = (glDeleteQueriesPROC) extgl_GetProcAddress("glDeleteQueries"); - glIsQuery = (glIsQueryPROC) extgl_GetProcAddress("glIsQuery"); - glBeginQuery = (glBeginQueryPROC) extgl_GetProcAddress("glBeginQuery"); - glEndQuery = (glEndQueryPROC) extgl_GetProcAddress("glEndQuery"); - glGetQueryiv = (glGetQueryivPROC) extgl_GetProcAddress("glGetQueryiv"); - glGetQueryObjectiv = (glGetQueryObjectivPROC) extgl_GetProcAddress("glGetQueryObjectiv"); - glGetQueryObjectuiv = (glGetQueryObjectuivPROC) extgl_GetProcAddress("glGetQueryObjectuiv"); - - EXTGL_SANITY_CHECK(env, ext_set, OpenGL15) -} - /* * Class: org.lwjgl.opengl.GL15 * Method: nglBindBuffer */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer (JNIEnv * env, jclass clazz, jint target, jint buffer) { - CHECK_EXISTS(glBindBuffer) glBindBuffer(target, buffer); CHECK_GL_ERROR } @@ -127,10 +97,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer * Class: org.lwjgl.opengl.GL15 * Method: nglDeleteBuffers */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers (JNIEnv * env, jclass clazz, jint n, jobject buffers, jint buffers_offset) { - CHECK_EXISTS(glDeleteBuffers) GLuint *buffers_ptr = (GLuint *)env->GetDirectBufferAddress(buffers) + buffers_offset; glDeleteBuffers(n, buffers_ptr); CHECK_GL_ERROR @@ -140,10 +109,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers * Class: org.lwjgl.opengl.GL15 * Method: nglGenBuffers */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers (JNIEnv * env, jclass clazz, jint n, jobject buffers, jint buffers_offset) { - CHECK_EXISTS(glGenBuffers) GLuint *buffers_ptr = (GLuint *)env->GetDirectBufferAddress(buffers) + buffers_offset; glGenBuffers(n, buffers_ptr); CHECK_GL_ERROR @@ -153,10 +121,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers * Class: org.lwjgl.opengl.GL15 * Method: glIsBuffer */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsBuffer +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsBuffer (JNIEnv * env, jclass clazz, jint buffer) { - CHECK_EXISTS(glIsBuffer) GLboolean result = glIsBuffer(buffer); CHECK_GL_ERROR return result; @@ -166,10 +133,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsBuffer * Class: org.lwjgl.opengl.GL15 * Method: nglBufferData */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData (JNIEnv * env, jclass clazz, jint target, jint size, jobject data, jint data_offset, jint usage) { - CHECK_EXISTS(glBufferData) GLvoid *data_ptr = (GLvoid *)safeGetBufferAddress(env, data, data_offset); glBufferData(target, size, data_ptr, usage); CHECK_GL_ERROR @@ -179,10 +145,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData * Class: org.lwjgl.opengl.GL15 * Method: nglBufferSubData */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData (JNIEnv * env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_offset) { - CHECK_EXISTS(glBufferSubData) GLvoid *data_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(data) + data_offset); glBufferSubData(target, offset, size, data_ptr); CHECK_GL_ERROR @@ -192,10 +157,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData * Class: org.lwjgl.opengl.GL15 * Method: nglGetBufferSubData */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData (JNIEnv * env, jclass clazz, jint target, jint offset, jint size, jobject data, jint data_offset) { - CHECK_EXISTS(glGetBufferSubData) GLvoid *data_ptr = (GLvoid *)((GLubyte *)env->GetDirectBufferAddress(data) + data_offset); glGetBufferSubData(target, offset, size, data_ptr); CHECK_GL_ERROR @@ -205,10 +169,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData * Class: org.lwjgl.opengl.GL15 * Method: glMapBuffer */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glMapBuffer +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glMapBuffer (JNIEnv * env, jclass clazz, jint target, jint access, jint size, jobject oldBuffer) { - CHECK_EXISTS(glMapBuffer) void *buffer_address = glMapBuffer((GLenum)target, (GLenum)access); CHECK_GL_ERROR if (oldBuffer != NULL) { @@ -223,10 +186,9 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glMapBuffer * Class: org.lwjgl.opengl.GL15 * Method: glUnmapBuffer */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glUnmapBuffer +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glUnmapBuffer (JNIEnv * env, jclass clazz, jint target) { - CHECK_EXISTS(glUnmapBuffer) GLboolean result = glUnmapBuffer(target); CHECK_GL_ERROR return result; @@ -236,10 +198,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glUnmapBuffer * Class: org.lwjgl.opengl.GL15 * Method: nglGetBufferParameteriv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv (JNIEnv * env, jclass clazz, jint target, jint pname, jobject params, jint params_offset) { - CHECK_EXISTS(glGetBufferParameteriv) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + params_offset; glGetBufferParameteriv(target, pname, params_ptr); CHECK_GL_ERROR @@ -249,10 +210,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv * Class: org.lwjgl.opengl.GL15 * Method: glGetBufferPointer */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glGetBufferPointer +static JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glGetBufferPointer (JNIEnv * env, jclass clazz, jint target, jint pname, jint size) { - CHECK_EXISTS(glGetBufferPointerv) void *pointer; glGetBufferPointerv((GLenum)target, (GLenum)pname, &pointer); CHECK_GL_ERROR @@ -263,10 +223,9 @@ JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glGetBufferPointer * Class: org.lwjgl.opengl.GL15 * Method: nglGenQueries */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries (JNIEnv * env, jclass clazz, jint n, jobject ids, jint idsOffset) { - CHECK_EXISTS(glGenQueries) GLuint *ids_ptr = (GLuint *)env->GetDirectBufferAddress(ids) + idsOffset; glGenQueries(n, ids_ptr); CHECK_GL_ERROR @@ -276,10 +235,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries * Class: org.lwjgl.opengl.GL15 * Method: nglDeleteQueries */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries (JNIEnv * env, jclass clazz, jint n, jobject ids, jint idsOffset) { - CHECK_EXISTS(glDeleteQueries) GLuint *ids_ptr = (GLuint *)env->GetDirectBufferAddress(ids) + idsOffset; glDeleteQueries(n, ids_ptr); CHECK_GL_ERROR @@ -289,10 +247,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries * Class: org.lwjgl.opengl.GL15 * Method: glIsQuery */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsQuery +static JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsQuery (JNIEnv * env, jclass clazz, jint id) { - CHECK_EXISTS(glIsQuery) GLboolean result = glIsQuery(id); CHECK_GL_ERROR return result; @@ -302,10 +259,9 @@ JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsQuery * Class: org.lwjgl.opengl.GL15 * Method: glBeginQuery */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glBeginQuery +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glBeginQuery (JNIEnv * env, jclass clazz, jint target, jint id) { - CHECK_EXISTS(glBeginQuery) glBeginQuery(target, id); CHECK_GL_ERROR } @@ -314,10 +270,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glBeginQuery * Class: org.lwjgl.opengl.GL15 * Method: glEndQuery */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glEndQuery +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glEndQuery (JNIEnv * env, jclass clazz, jint target) { - CHECK_EXISTS(glEndQuery) glEndQuery(target); CHECK_GL_ERROR } @@ -326,10 +281,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glEndQuery * Class: org.lwjgl.opengl.GL15 * Method: nglGetQueryiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv (JNIEnv * env, jclass clazz, jint target, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetQueryiv) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetQueryiv(target, pname, params_ptr); CHECK_GL_ERROR @@ -339,10 +293,9 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv * Class: org.lwjgl.opengl.GL15 * Method: nglGetQueryObjectiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv (JNIEnv * env, jclass clazz, jint id, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetQueryObjectiv) GLint *params_ptr = (GLint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetQueryObjectiv(id, pname, params_ptr); CHECK_GL_ERROR @@ -352,12 +305,40 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv * Class: org.lwjgl.opengl.GL15 * Method: nglGetQueryObjectuiv */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv +static JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv (JNIEnv * env, jclass clazz, jint id, jint pname, jobject params, jint paramsOffset) { - CHECK_EXISTS(glGetQueryObjectuiv) GLuint *params_ptr = (GLuint *)env->GetDirectBufferAddress(params) + paramsOffset; glGetQueryObjectuiv(id, pname, params_ptr); CHECK_GL_ERROR } +void extgl_InitOpenGL1_5(JNIEnv *env, jobject ext_set) +{ + JavaMethodAndGLFunction functions[] = { + {"nglBindBuffer", "(II)V", (void*)&Java_org_lwjgl_opengl_GL15_nglBindBuffer, "glBindBuffer", (void**)&glBindBuffer}, + {"nglDeleteBuffers", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglDeleteBuffers, "glDeleteBuffers", (void**)&glDeleteBuffers}, + {"nglGenBuffers", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGenBuffers, "glGenBuffers", (void**)&glGenBuffers}, + {"glIsBuffer", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL15_glIsBuffer, "glIsBuffer", (void**)&glIsBuffer}, + {"nglBufferData", "(IILjava/nio/Buffer;II)V", (void*)&Java_org_lwjgl_opengl_GL15_nglBufferData, "glBufferData", (void**)&glBufferData}, + {"nglBufferSubData", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglBufferSubData, "glBufferSubData", (void**)&glBufferSubData}, + {"nglGetBufferSubData", "(IIILjava/nio/Buffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetBufferSubData, "glGetBufferSubData", (void**)&glGetBufferSubData}, + {"glMapBuffer", "(IIILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_GL15_glMapBuffer, "glMapBuffer", (void**)&glMapBuffer}, + {"glUnmapBuffer", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL15_glUnmapBuffer, "glUnmapBuffer", (void**)&glUnmapBuffer}, + {"nglGetBufferParameteriv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv, "glGetBufferParameteriv", (void**)&glGetBufferParameteriv}, + {"glGetBufferPointer", "(III)Ljava/nio/ByteBuffer;", (void*)&Java_org_lwjgl_opengl_GL15_glGetBufferPointer, "glGetBufferPointerv", (void**)&glGetBufferPointerv}, + {"nglGenQueries", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGenQueries, "glGenQueries", (void**)&glGenQueries}, + {"nglDeleteQueries", "(ILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglDeleteQueries, "glDeleteQueries", (void**)&glDeleteQueries}, + {"glIsQuery", "(I)Z", (void*)&Java_org_lwjgl_opengl_GL15_glIsQuery, "glIsQuery", (void**)&glIsQuery}, + {"glBeginQuery", "(II)V", (void*)&Java_org_lwjgl_opengl_GL15_glBeginQuery, "glBeginQuery", (void**)&glBeginQuery}, + {"glEndQuery", "(I)V", (void*)&Java_org_lwjgl_opengl_GL15_glEndQuery, "glEndQuery", (void**)&glEndQuery}, + {"nglGetQueryiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetQueryiv, "glGetQueryiv", (void**)&glGetQueryiv}, + {"nglGetQueryObjectiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv, "glGetQueryObjectiv", (void**)&glGetQueryObjectiv}, + {"nglGetQueryObjectuiv", "(IILjava/nio/IntBuffer;I)V", (void*)&Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv, "glGetQueryObjectuiv", (void**)&glGetQueryObjectuiv} + }; + int num_functions = NUMFUNCTIONS(functions); + jclass clazz = extgl_ResetClass(env, "org/lwjgl/opengl/GL15"); + if (extgl_Extensions.OpenGL15) + extgl_InitializeClass(env, clazz, ext_set, "OpenGL15", num_functions, functions); +} + diff --git a/src/native/common/org_lwjgl_opengl_GL15.h b/src/native/common/org_lwjgl_opengl_GL15.h deleted file mode 100644 index 37df9e21..00000000 --- a/src/native/common/org_lwjgl_opengl_GL15.h +++ /dev/null @@ -1,239 +0,0 @@ -/* DO NOT EDIT THIS FILE - it is machine generated */ -#include -/* Header for class org_lwjgl_opengl_GL15 */ - -#ifndef _Included_org_lwjgl_opengl_GL15 -#define _Included_org_lwjgl_opengl_GL15 -#ifdef __cplusplus -extern "C" { -#endif -/* Inaccessible static: _00024assertionsDisabled */ -#undef org_lwjgl_opengl_GL15_GL_ARRAY_BUFFER -#define org_lwjgl_opengl_GL15_GL_ARRAY_BUFFER 34962L -#undef org_lwjgl_opengl_GL15_GL_ELEMENT_ARRAY_BUFFER -#define org_lwjgl_opengl_GL15_GL_ELEMENT_ARRAY_BUFFER 34963L -#undef org_lwjgl_opengl_GL15_GL_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_ARRAY_BUFFER_BINDING 34964L -#undef org_lwjgl_opengl_GL15_GL_ELEMENT_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_ELEMENT_ARRAY_BUFFER_BINDING 34965L -#undef org_lwjgl_opengl_GL15_GL_VERTEX_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_VERTEX_ARRAY_BUFFER_BINDING 34966L -#undef org_lwjgl_opengl_GL15_GL_NORMAL_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_NORMAL_ARRAY_BUFFER_BINDING 34967L -#undef org_lwjgl_opengl_GL15_GL_COLOR_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_COLOR_ARRAY_BUFFER_BINDING 34968L -#undef org_lwjgl_opengl_GL15_GL_INDEX_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_INDEX_ARRAY_BUFFER_BINDING 34969L -#undef org_lwjgl_opengl_GL15_GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_TEXTURE_COORD_ARRAY_BUFFER_BINDING 34970L -#undef org_lwjgl_opengl_GL15_GL_EDGE_FLAG_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_EDGE_FLAG_ARRAY_BUFFER_BINDING 34971L -#undef org_lwjgl_opengl_GL15_GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_SECONDARY_COLOR_ARRAY_BUFFER_BINDING 34972L -#undef org_lwjgl_opengl_GL15_GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_FOG_COORDINATE_ARRAY_BUFFER_BINDING 34973L -#undef org_lwjgl_opengl_GL15_GL_WEIGHT_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_WEIGHT_ARRAY_BUFFER_BINDING 34974L -#undef org_lwjgl_opengl_GL15_GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING -#define org_lwjgl_opengl_GL15_GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING 34975L -#undef org_lwjgl_opengl_GL15_GL_STREAM_DRAW -#define org_lwjgl_opengl_GL15_GL_STREAM_DRAW 35040L -#undef org_lwjgl_opengl_GL15_GL_STREAM_READ -#define org_lwjgl_opengl_GL15_GL_STREAM_READ 35041L -#undef org_lwjgl_opengl_GL15_GL_STREAM_COPY -#define org_lwjgl_opengl_GL15_GL_STREAM_COPY 35042L -#undef org_lwjgl_opengl_GL15_GL_STATIC_DRAW -#define org_lwjgl_opengl_GL15_GL_STATIC_DRAW 35044L -#undef org_lwjgl_opengl_GL15_GL_STATIC_READ -#define org_lwjgl_opengl_GL15_GL_STATIC_READ 35045L -#undef org_lwjgl_opengl_GL15_GL_STATIC_COPY -#define org_lwjgl_opengl_GL15_GL_STATIC_COPY 35046L -#undef org_lwjgl_opengl_GL15_GL_DYNAMIC_DRAW -#define org_lwjgl_opengl_GL15_GL_DYNAMIC_DRAW 35048L -#undef org_lwjgl_opengl_GL15_GL_DYNAMIC_READ -#define org_lwjgl_opengl_GL15_GL_DYNAMIC_READ 35049L -#undef org_lwjgl_opengl_GL15_GL_DYNAMIC_COPY -#define org_lwjgl_opengl_GL15_GL_DYNAMIC_COPY 35050L -#undef org_lwjgl_opengl_GL15_GL_READ_ONLY -#define org_lwjgl_opengl_GL15_GL_READ_ONLY 35000L -#undef org_lwjgl_opengl_GL15_GL_WRITE_ONLY -#define org_lwjgl_opengl_GL15_GL_WRITE_ONLY 35001L -#undef org_lwjgl_opengl_GL15_GL_READ_WRITE -#define org_lwjgl_opengl_GL15_GL_READ_WRITE 35002L -#undef org_lwjgl_opengl_GL15_GL_BUFFER_SIZE -#define org_lwjgl_opengl_GL15_GL_BUFFER_SIZE 34660L -#undef org_lwjgl_opengl_GL15_GL_BUFFER_USAGE -#define org_lwjgl_opengl_GL15_GL_BUFFER_USAGE 34661L -#undef org_lwjgl_opengl_GL15_GL_BUFFER_ACCESS -#define org_lwjgl_opengl_GL15_GL_BUFFER_ACCESS 35003L -#undef org_lwjgl_opengl_GL15_GL_BUFFER_MAPPED -#define org_lwjgl_opengl_GL15_GL_BUFFER_MAPPED 35004L -#undef org_lwjgl_opengl_GL15_GL_BUFFER_MAP_POINTER -#define org_lwjgl_opengl_GL15_GL_BUFFER_MAP_POINTER 35005L -#undef org_lwjgl_opengl_GL15_GL_SAMPLES_PASSED -#define org_lwjgl_opengl_GL15_GL_SAMPLES_PASSED 35092L -#undef org_lwjgl_opengl_GL15_GL_QUERY_COUNTER_BITS -#define org_lwjgl_opengl_GL15_GL_QUERY_COUNTER_BITS 34916L -#undef org_lwjgl_opengl_GL15_GL_CURRENT_QUERY -#define org_lwjgl_opengl_GL15_GL_CURRENT_QUERY 34917L -#undef org_lwjgl_opengl_GL15_GL_QUERY_RESULT -#define org_lwjgl_opengl_GL15_GL_QUERY_RESULT 34918L -#undef org_lwjgl_opengl_GL15_GL_QUERY_RESULT_AVAILABLE -#define org_lwjgl_opengl_GL15_GL_QUERY_RESULT_AVAILABLE 34919L -/* Inaccessible static: class_000240 */ -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglBindBuffer - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBindBuffer - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglDeleteBuffers - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteBuffers - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglGenBuffers - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenBuffers - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: glIsBuffer - * Signature: (I)Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsBuffer - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglBufferData - * Signature: (IILjava/nio/Buffer;II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferData - (JNIEnv *, jclass, jint, jint, jobject, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglBufferSubData - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglBufferSubData - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglGetBufferSubData - * Signature: (IIILjava/nio/Buffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferSubData - (JNIEnv *, jclass, jint, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: glMapBuffer - * Signature: (IIILjava/nio/ByteBuffer;)Ljava/nio/ByteBuffer; - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glMapBuffer - (JNIEnv *, jclass, jint, jint, jint, jobject); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: glUnmapBuffer - * Signature: (I)Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glUnmapBuffer - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglGetBufferParameteriv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetBufferParameteriv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: glGetBufferPointer - * Signature: (III)Ljava/nio/ByteBuffer; - */ -JNIEXPORT jobject JNICALL Java_org_lwjgl_opengl_GL15_glGetBufferPointer - (JNIEnv *, jclass, jint, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglGenQueries - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGenQueries - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglDeleteQueries - * Signature: (ILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglDeleteQueries - (JNIEnv *, jclass, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: glIsQuery - * Signature: (I)Z - */ -JNIEXPORT jboolean JNICALL Java_org_lwjgl_opengl_GL15_glIsQuery - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: glBeginQuery - * Signature: (II)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glBeginQuery - (JNIEnv *, jclass, jint, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: glEndQuery - * Signature: (I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_glEndQuery - (JNIEnv *, jclass, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglGetQueryiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglGetQueryObjectiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -/* - * Class: org_lwjgl_opengl_GL15 - * Method: nglGetQueryObjectuiv - * Signature: (IILjava/nio/IntBuffer;I)V - */ -JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL15_nglGetQueryObjectuiv - (JNIEnv *, jclass, jint, jint, jobject, jint); - -#ifdef __cplusplus -} -#endif -#endif diff --git a/src/native/linux/org_lwjgl_opengl_Pbuffer.cpp b/src/native/linux/org_lwjgl_opengl_Pbuffer.cpp index fbac1fdf..d1af5540 100644 --- a/src/native/linux/org_lwjgl_opengl_Pbuffer.cpp +++ b/src/native/linux/org_lwjgl_opengl_Pbuffer.cpp @@ -198,4 +198,4 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Pbuffer_nReleaseTexImage (JNIEnv *env, jclass clazz, jint handle, jint buffer) { throwException(env, "The render-to-texture extension is not supported."); -} \ No newline at end of file +}