diff options
49 files changed, 4105 insertions, 6804 deletions
diff --git a/C2J/glu-disp-fetch-auto.hc b/C2J/glu-disp-fetch-auto.hc index f18a0a4..c4ece49 100644 --- a/C2J/glu-disp-fetch-auto.hc +++ b/C2J/glu-disp-fetch-auto.hc @@ -116,27 +116,6 @@ disp__gluSphere = (void (CALLBACK *)(GLUquadric *, GLdouble, GLint, GLint)) GET_GL_PROCADDRESS ("gluSphere"); - disp__gluTessBeginContour = (void (CALLBACK *)(GLUtesselator *)) - GET_GL_PROCADDRESS ("gluTessBeginContour"); - - disp__gluTessBeginPolygon = (void (CALLBACK *)(GLUtesselator *, GLvoid *)) - GET_GL_PROCADDRESS ("gluTessBeginPolygon"); - - disp__gluTessEndContour = (void (CALLBACK *)(GLUtesselator *)) - GET_GL_PROCADDRESS ("gluTessEndContour"); - - disp__gluTessEndPolygon = (void (CALLBACK *)(GLUtesselator *)) - GET_GL_PROCADDRESS ("gluTessEndPolygon"); - - disp__gluTessNormal = (void (CALLBACK *)(GLUtesselator *, GLdouble, GLdouble, GLdouble)) - GET_GL_PROCADDRESS ("gluTessNormal"); - - disp__gluTessProperty = (void (CALLBACK *)(GLUtesselator *, GLenum, GLdouble)) - GET_GL_PROCADDRESS ("gluTessProperty"); - - disp__gluTessVertex = (void (CALLBACK *)(GLUtesselator *, GLdouble *, GLvoid *)) - GET_GL_PROCADDRESS ("gluTessVertex"); - disp__gluUnProject = (GLint (CALLBACK *)(GLdouble, GLdouble, GLdouble, const GLdouble *, const GLdouble *, const GLint *, GLdouble *, GLdouble *, GLdouble *)) GET_GL_PROCADDRESS ("gluUnProject"); diff --git a/C2J/glu-disp-var-auto.h b/C2J/glu-disp-var-auto.h index e57b1ef..0671fa5 100644 --- a/C2J/glu-disp-var-auto.h +++ b/C2J/glu-disp-var-auto.h @@ -304,62 +304,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessBeginContour )(GLUtesselator *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessBeginPolygon )(GLUtesselator *, GLvoid *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessEndContour )(GLUtesselator *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessEndPolygon )(GLUtesselator *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessNormal )(GLUtesselator *, GLdouble, GLdouble, GLdouble); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessProperty )(GLUtesselator *, GLenum, GLdouble); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessVertex )(GLUtesselator *, GLdouble *, GLvoid *); - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-disp-var-auto.hc b/C2J/glu-disp-var-auto.hc index de1bab9..7b4afaf 100644 --- a/C2J/glu-disp-var-auto.hc +++ b/C2J/glu-disp-var-auto.hc @@ -79,20 +79,6 @@ void (CALLBACK * disp__gluSphere )(GLUquadric *, GLdouble, GLint, GLint) = NULL; - void (CALLBACK * disp__gluTessBeginContour )(GLUtesselator *) = NULL; - - void (CALLBACK * disp__gluTessBeginPolygon )(GLUtesselator *, GLvoid *) = NULL; - - void (CALLBACK * disp__gluTessEndContour )(GLUtesselator *) = NULL; - - void (CALLBACK * disp__gluTessEndPolygon )(GLUtesselator *) = NULL; - - void (CALLBACK * disp__gluTessNormal )(GLUtesselator *, GLdouble, GLdouble, GLdouble) = NULL; - - void (CALLBACK * disp__gluTessProperty )(GLUtesselator *, GLenum, GLdouble) = NULL; - - void (CALLBACK * disp__gluTessVertex )(GLUtesselator *, GLdouble *, GLvoid *) = NULL; - GLint (CALLBACK * disp__gluUnProject )(GLdouble, GLdouble, GLdouble, const GLdouble *, const GLdouble *, const GLint *, GLdouble *, GLdouble *, GLdouble *) = NULL; GLint (CALLBACK * disp__gluUnProject4 )(GLdouble, GLdouble, GLdouble, GLdouble, const GLdouble *, const GLdouble *, const GLint *, GLdouble, GLdouble, GLdouble *, GLdouble *, GLdouble *, GLdouble *) = NULL; diff --git a/C2J/glu-proto-auto-14.java b/C2J/glu-proto-auto-14.java index 8f6ddbd..969d9aa 100644 --- a/C2J/glu-proto-auto-14.java +++ b/C2J/glu-proto-auto-14.java @@ -1028,147 +1028,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public final native void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public final native void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-proto-auto-jni12.c b/C2J/glu-proto-auto-jni12.c index c89a276..ab0f446 100644 --- a/C2J/glu-proto-auto-jni12.c +++ b/C2J/glu-proto-auto-jni12.c @@ -3050,564 +3050,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-proto-auto-jni14.c b/C2J/glu-proto-auto-jni14.c index 8208069..74846a3 100644 --- a/C2J/glu-proto-auto-jni14.c +++ b/C2J/glu-proto-auto-jni14.c @@ -3348,626 +3348,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__JLjava_nio_Buffer_2 ( - JNIEnv *env, jobject obj, - jlong tess, - jobject data) - { - void *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetDirectBufferAddress(env, data); - if (ptr1 == NULL) { - (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"), - "Argument 1 was not a direct buffer"); - return ; - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3DLjava_nio_Buffer_2 ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jobject data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - void *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(data!=NULL) - { - ptr2 = (*env)->GetDirectBufferAddress(env, data); - if (ptr2 == NULL) { - (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"), - "Argument 2 was not a direct buffer"); - return ; - } - } - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-proto-auto-tst-jni12.c b/C2J/glu-proto-auto-tst-jni12.c index 84eab33..e378ac0 100644 --- a/C2J/glu-proto-auto-tst-jni12.c +++ b/C2J/glu-proto-auto-tst-jni12.c @@ -3487,669 +3487,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-proto-auto.c b/C2J/glu-proto-auto.c index a6210bc..59947db 100644 --- a/C2J/glu-proto-auto.c +++ b/C2J/glu-proto-auto.c @@ -3050,564 +3050,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetByteArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseByteArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetShortArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseShortArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetIntArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseIntArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseFloatArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseBooleanArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetLongArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseLongArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetByteArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseByteArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetShortArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseShortArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetIntArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseIntArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseFloatArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseBooleanArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetLongArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseLongArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-proto-auto.java b/C2J/glu-proto-auto.java index a108934..93f6e9b 100644 --- a/C2J/glu-proto-auto.java +++ b/C2J/glu-proto-auto.java @@ -954,138 +954,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public final native void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public final native void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-proto-auto.orig.h b/C2J/glu-proto-auto.orig.h index d3ec88d..051cf7c 100644 --- a/C2J/glu-proto-auto.orig.h +++ b/C2J/glu-proto-auto.orig.h @@ -35,12 +35,5 @@ extern void gluQuadricOrientation (GLUquadric* quad, GLenum orientation); extern void gluQuadricTexture (GLUquadric* quad, GLboolean texture); extern GLint gluScaleImage (GLenum format, GLsizei wIn, GLsizei hIn, GLenum typeIn, const void *dataIn, GLsizei wOut, GLsizei hOut, GLenum typeOut, GLvoid* dataOut); extern void gluSphere (GLUquadric* quad, GLdouble radius, GLint slices, GLint stacks); -extern void gluTessBeginContour (GLUtesselator* tess); -extern void gluTessBeginPolygon (GLUtesselator* tess, GLvoid* data); -extern void gluTessEndContour (GLUtesselator* tess); -extern void gluTessEndPolygon (GLUtesselator* tess); -extern void gluTessNormal (GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ); -extern void gluTessProperty (GLUtesselator* tess, GLenum which, GLdouble data); -extern void gluTessVertex (GLUtesselator* tess, GLdouble *location, GLvoid* data); extern GLint gluUnProject (GLdouble winX, GLdouble winY, GLdouble winZ, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble* objX, GLdouble* objY, GLdouble* objZ); extern GLint gluUnProject4 (GLdouble winX, GLdouble winY, GLdouble winZ, GLdouble clipW, const GLdouble *model, const GLdouble *proj, const GLint *view, GLdouble nearVal, GLdouble farVal, GLdouble* objX, GLdouble* objY, GLdouble* objZ, GLdouble* objW); diff --git a/C2J/glu-protoVirt-auto-14.java b/C2J/glu-protoVirt-auto-14.java index 843abbf..ffbc5d8 100644 --- a/C2J/glu-protoVirt-auto-14.java +++ b/C2J/glu-protoVirt-auto-14.java @@ -1028,147 +1028,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/glu-protoVirt-auto.java b/C2J/glu-protoVirt-auto.java index e648383..6238457 100644 --- a/C2J/glu-protoVirt-auto.java +++ b/C2J/glu-protoVirt-auto.java @@ -954,138 +954,6 @@ /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/C2J/manual/gl-manualCodedImplJNI.c b/C2J/manual/gl-manualCodedImplJNI.c index 4ace6fa..7c50a37 100644 --- a/C2J/manual/gl-manualCodedImplJNI.c +++ b/C2J/manual/gl-manualCodedImplJNI.c @@ -21,7 +21,7 @@ Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj, } static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _gl_lib_version_="2.8.1.0"; +static const char * _gl_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) diff --git a/C2J/manual/gl-manualCodedImplJNI14.c b/C2J/manual/gl-manualCodedImplJNI14.c index 299b040..cc2e6aa 100644 --- a/C2J/manual/gl-manualCodedImplJNI14.c +++ b/C2J/manual/gl-manualCodedImplJNI14.c @@ -5,7 +5,7 @@ static const char _gl_n_a_string[] = "GL-String not avaiable !"; static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _gl_lib_version_="2.8.1.0"; +static const char * _gl_lib_version_="2.8.3.0"; /* ---------------------------------------------------------------------- */ diff --git a/C2J/manual/gl-manualCodedImplJNI2.java b/C2J/manual/gl-manualCodedImplJNI2.java index 3d2e188..a6ba85c 100644 --- a/C2J/manual/gl-manualCodedImplJNI2.java +++ b/C2J/manual/gl-manualCodedImplJNI2.java @@ -8,7 +8,7 @@ public final String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public final String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } diff --git a/C2J/manual/glu-man-disp-fetch.hc b/C2J/manual/glu-man-disp-fetch.hc index 3d16092..7d82dbd 100644 --- a/C2J/manual/glu-man-disp-fetch.hc +++ b/C2J/manual/glu-man-disp-fetch.hc @@ -32,3 +32,24 @@ disp__gluNewTess= ( GLUtesselator* (CALLBACK *) (void) ) GET_GL_PROCADDRESS("gluNewTess"); + disp__gluTessVertex = (void (CALLBACK *)(GLUtesselator *, GLdouble *, GLvoid *)) + GET_GL_PROCADDRESS ("gluTessVertex"); + + disp__gluTessBeginContour = (void (CALLBACK *)(GLUtesselator* tess)) + GET_GL_PROCADDRESS ("gluTessBeginContour"); + + disp__gluTessBeginPolygon = (void (CALLBACK *)(GLUtesselator* tess, GLvoid* data)) + GET_GL_PROCADDRESS ("gluTessBeginPolygon"); + + disp__gluTessEndContour = (void (CALLBACK *)(GLUtesselator* tess)) + GET_GL_PROCADDRESS ("gluTessEndContour"); + + disp__gluTessEndPolygon = (void (CALLBACK *)(GLUtesselator* tess)) + GET_GL_PROCADDRESS ("gluTessEndPolygon"); + + disp__gluTessNormal = (void (CALLBACK *)(GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ)) + GET_GL_PROCADDRESS ("gluTessNormal"); + + disp__gluTessProperty = (void (CALLBACK *)(GLUtesselator* tess, GLenum which, GLdouble data)) + GET_GL_PROCADDRESS ("gluTessProperty"); + diff --git a/C2J/manual/glu-man-disp-var.h b/C2J/manual/glu-man-disp-var.h index f980f13..961dd9d 100644 --- a/C2J/manual/glu-man-disp-var.h +++ b/C2J/manual/glu-man-disp-var.h @@ -19,3 +19,18 @@ LIBAPI GLUquadricObj* (CALLBACK * disp__gluNewQuadric) ( void ); LIBAPI GLUnurbsObj* (CALLBACK * disp__gluNewNurbsRenderer) ( void ); LIBAPI GLUtesselator* (CALLBACK * disp__gluNewTess) ( void ); + +LIBAPI void (CALLBACK * disp__gluTessVertex )(GLUtesselator *, GLdouble *, GLvoid *); + +LIBAPI void (CALLBACK * disp__gluTessBeginContour)(GLUtesselator* tess); + +LIBAPI void (CALLBACK * disp__gluTessBeginPolygon)(GLUtesselator* tess, GLvoid* data); + +LIBAPI void (CALLBACK * disp__gluTessEndContour)(GLUtesselator* tess); + +LIBAPI void (CALLBACK * disp__gluTessEndPolygon)(GLUtesselator* tess); + +LIBAPI void (CALLBACK * disp__gluTessNormal)(GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ); + +LIBAPI void (CALLBACK * disp__gluTessProperty)(GLUtesselator* tess, GLenum which, GLdouble data); + diff --git a/C2J/manual/glu-man-disp-var.hc b/C2J/manual/glu-man-disp-var.hc index 9336976..6d08ef2 100644 --- a/C2J/manual/glu-man-disp-var.hc +++ b/C2J/manual/glu-man-disp-var.hc @@ -20,3 +20,18 @@ GLUquadricObj* (CALLBACK * disp__gluNewQuadric) ( void ) = NULL; GLUnurbsObj* (CALLBACK * disp__gluNewNurbsRenderer) ( void ) = NULL; GLUtesselator* (CALLBACK * disp__gluNewTess) ( void ) = NULL; + +void (CALLBACK * disp__gluTessBeginContour) ( GLUtesselator* ) = NULL; + +void (CALLBACK * disp__gluTessBeginPolygon) ( GLUtesselator* , GLvoid* ) = NULL; + +void (CALLBACK * disp__gluTessEndContour) ( GLUtesselator* ) = NULL; + +void (CALLBACK * disp__gluTessEndPolygon) ( GLUtesselator* ) = NULL; + +void (CALLBACK * disp__gluTessNormal) ( GLUtesselator*, GLdouble, GLdouble, GLdouble ) = NULL; + +void (CALLBACK * disp__gluTessProperty) ( GLUtesselator*, GLenum, GLdouble ) = NULL; + +void (CALLBACK * disp__gluTessVertex ) ( GLUtesselator*, GLdouble*, GLvoid*) = NULL; + diff --git a/C2J/manual/glu-manualCodedImplJNI.c b/C2J/manual/glu-manualCodedImplJNI.c index 78293a9..71c6027 100644 --- a/C2J/manual/glu-manualCodedImplJNI.c +++ b/C2J/manual/glu-manualCodedImplJNI.c @@ -1,4 +1,4 @@ -static const char _glu_n_a_string[] = "GLU-String not avaiable !"; +static const char _glu_n_a_string[] = "GLU-String not available !"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj, @@ -33,7 +33,7 @@ Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj, } static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _glu_lib_version_="2.8.1.0"; +static const char * _glu_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) @@ -265,3 +265,514 @@ Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj) return (jlong)((PointerHolder)disp__gluNewTess()); } +#include "MemoryManager.h" + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessBeginContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jbyteArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jbyte *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jshortArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jshort *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jintArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jint *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jfloatArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jfloat *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jdouble *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jbooleanArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jboolean *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jlongArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jlong *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndPolygon ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndPolygon == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndPolygon ( + (GLUtesselator *) (PointerHolder) tess + ); + FreeArrays(env, MEMM_TESSELATOR); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessNormal ( + JNIEnv *env, jobject obj, + jlong tess, + jdouble valueX, + jdouble valueY, + jdouble valueZ) + { + + if ( disp__gluTessNormal == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessNormal ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble) valueX, + (GLdouble) valueY, + (GLdouble) valueZ + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessProperty ( + JNIEnv *env, jobject obj, + jlong tess, + jint which, + jdouble data) + { + + if ( disp__gluTessProperty == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessProperty ( + (GLUtesselator *) (PointerHolder) tess, + (GLenum) which, + (GLdouble) data + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbyteArray data) + { + jdouble *ptr1 = NULL; + jbyte *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jbyte *) (*env)->GetByteArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BYTE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jshortArray data) + { + jdouble *ptr1 = NULL; + jshort *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jshort *) (*env)->GetShortArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_SHORT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jintArray data) + { + jdouble *ptr1 = NULL; + jint *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jint *) (*env)->GetIntArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_INT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jfloatArray data) + { + jdouble *ptr1 = NULL; + jfloat *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jfloat *) (*env)->GetFloatArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_FLOAT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jdoubleArray data) + { + jdouble *ptr1 = NULL; + jdouble *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jdouble *) (*env)->GetDoubleArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbooleanArray data) + { + jdouble *ptr1 = NULL; + jboolean *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jboolean *) (*env)->GetBooleanArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BOOLEAN_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jlongArray data) + { + jdouble *ptr1 = NULL; + jlong *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jlong *) (*env)->GetLongArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_LONG_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } diff --git a/C2J/manual/glu-manualCodedImplJNI.h b/C2J/manual/glu-manualCodedImplJNI.h index bfb8a40..9bff2fa 100644 --- a/C2J/manual/glu-manualCodedImplJNI.h +++ b/C2J/manual/glu-manualCodedImplJNI.h @@ -11,3 +11,28 @@ public native void gluTessCallback ( long tobj , int which , void ( fn[] ) ( ) ) public native byte gluGetString[] ( int name ) ; +public final native void gluTessBeginContour (long tess); + +public final native void gluTessBeginPolygon (long tess, byte[] data); +public final native void gluTessBeginPolygon (long tess, short[] data); +public final native void gluTessBeginPolygon (long tess, int[] data); +public final native void gluTessBeginPolygon (long tess, float[] data); +public final native void gluTessBeginPolygon (long tess, double[] data); +public final native void gluTessBeginPolygon (long tess, boolean[] data); +public final native void gluTessBeginPolygon (long tess, long[] data); + +public final native void gluTessEndContour (long tess); + +public final native void gluTessEndPolygon (long tess); + +public final native void gluTessNormal (long tess, double valueX, double valueY, double valueZ); + +public final native void gluTessProperty (long tess, int which, double data); + +public final native void gluTessVertex ( long tess, double[] location, byte[] data ) ; +public final native void gluTessVertex ( long tess, double[] location, short[] data ) ; +public final native void gluTessVertex ( long tess, double[] location, int[] data ) ; +public final native void gluTessVertex ( long tess, double[] location, float[] data ) ; +public final native void gluTessVertex ( long tess, double[] location, double[] data ) ; +public final native void gluTessVertex ( long tess, double[] location, boolean[] data ) ; +public final native void gluTessVertex ( long tess, double[] location, long[] data ) ; diff --git a/C2J/manual/glu-manualCodedImplJNI1-14.java b/C2J/manual/glu-manualCodedImplJNI1-14.java index 7f3837c..92af083 100644 --- a/C2J/manual/glu-manualCodedImplJNI1-14.java +++ b/C2J/manual/glu-manualCodedImplJNI1-14.java @@ -17,3 +17,19 @@ public class GLUFunc14JauJNI implements GLUFunc14
{
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ;
+ * </pre>
+ */
+public final native void gluTessBeginPolygon ( long tess, Buffer data) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ;
+ * </pre>
+ */
+public final native void gluTessVertex ( long tess, double[] location, Buffer data) ;
+
diff --git a/C2J/manual/glu-manualCodedImplJNI14.c b/C2J/manual/glu-manualCodedImplJNI14.c index 5688184..f5ec125 100644 --- a/C2J/manual/glu-manualCodedImplJNI14.c +++ b/C2J/manual/glu-manualCodedImplJNI14.c @@ -5,7 +5,7 @@ static const char _glu_n_a_string[] = "GLU-String not avaiable !";
static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
-static const char * _glu_lib_version_="2.8.1.0";
+static const char * _glu_lib_version_="2.8.3.0";
/* ---------------------------------------------------------------------- */
@@ -274,3 +274,579 @@ Java_gl4java_GLUFunc14JauJNI_gluNewTess( JNIEnv *env, jobject obj) return (jlong)((PointerHolder)disp__gluNewTess());
}
+#include "MemoryManager.h"
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tess ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jlong tess)
+ {
+
+ if ( disp__gluTessBeginContour == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginContour (
+ (GLUtesselator *) (PointerHolder) tess
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3B (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jbyteArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3S (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jshortArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3I (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jintArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3F (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jfloatArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3D (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3Z (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jbooleanArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3J (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jlongArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__JLjava_nio_Buffer_2 (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jobject data)
+ {
+ void *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (*env)->GetDirectBufferAddress(env, data);
+ if (ptr1 == NULL) {
+ (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"),
+ "Argument 1 was not a direct buffer");
+ return ;
+ }
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tess ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jlong tess)
+ {
+
+ if ( disp__gluTessEndContour == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessEndContour (
+ (GLUtesselator *) (PointerHolder) tess
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tess ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jlong tess)
+ {
+
+ if ( disp__gluTessEndPolygon == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessEndPolygon (
+ (GLUtesselator *) (PointerHolder) tess
+ );
+ FreeArrays(env, MEMM_TESSELATOR);
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdouble valueX,
+ jdouble valueY,
+ jdouble valueZ)
+ {
+
+ if ( disp__gluTessNormal == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessNormal (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble) valueX,
+ (GLdouble) valueY,
+ (GLdouble) valueZ
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jint which,
+ jdouble data)
+ {
+
+ if ( disp__gluTessProperty == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessProperty (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLenum) which,
+ (GLdouble) data
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3B (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jbyteArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jbyte *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetByteArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_BYTE, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3S (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jshortArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jshort *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetShortArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_SHORT, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3I (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jintArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jint *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetIntArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_INT, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3F (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jfloatArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetFloatArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_FLOAT, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3D (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jdoubleArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jdouble *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetDoubleArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jbooleanArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jboolean *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetBooleanArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_BOOLEAN, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3J (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jlongArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jlong *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetLongArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_LONG, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3DLjava_nio_Buffer_2 (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jobject data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ void *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr2 = (*env)->GetDirectBufferAddress(env, data);
+ if (ptr2 == NULL) {
+ (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"),
+ "Argument 2 was not a direct buffer");
+ return ;
+ }
+ }
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+
+ if(location!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
diff --git a/C2J/manual/glu-manualCodedImplJNI2.java b/C2J/manual/glu-manualCodedImplJNI2.java index 24fe05d..ab3b206 100644 --- a/C2J/manual/glu-manualCodedImplJNI2.java +++ b/C2J/manual/glu-manualCodedImplJNI2.java @@ -9,7 +9,7 @@ public final String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public final String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } /** @@ -224,3 +224,23 @@ public final int gluUnProject(double winx, return r; } +public final native void gluTessBeginContour (long tess); +public final native void gluTessBeginPolygon (long tess, boolean[] data); +public final native void gluTessBeginPolygon (long tess, short[] data); +public final native void gluTessBeginPolygon (long tess, byte[] data); +public final native void gluTessBeginPolygon (long tess, int[] data); +public final native void gluTessBeginPolygon (long tess, long[] data); +public final native void gluTessBeginPolygon (long tess, float[] data); +public final native void gluTessBeginPolygon (long tess, double[] data); +public final native void gluTessEndContour (long tess); +public final native void gluTessEndPolygon (long tess); +public final native void gluTessNormal (long tess, double valueX, double valueY, double valueZ); +public final native void gluTessProperty (long tess, int which, double data); +public final native void gluTessVertex ( long tess, double[] location, boolean[] data ); +public final native void gluTessVertex ( long tess, double[] location, byte[] data ); +public final native void gluTessVertex ( long tess, double[] location, short[] data ); +public final native void gluTessVertex ( long tess, double[] location, int[] data ); +public final native void gluTessVertex ( long tess, double[] location, long[] data ); +public final native void gluTessVertex ( long tess, double[] location, float[] data ); +public final native void gluTessVertex ( long tess, double[] location, double[] data ); + diff --git a/C2J/manual/glu-manualCodedVirt-14.java b/C2J/manual/glu-manualCodedVirt-14.java index d530809..642fb4f 100644 --- a/C2J/manual/glu-manualCodedVirt-14.java +++ b/C2J/manual/glu-manualCodedVirt-14.java @@ -17,3 +17,19 @@ public interface GLUFunc14 extends GLUFunc
{
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ;
+ * </pre>
+ */
+public void gluTessBeginPolygon ( long tess, Buffer data) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ;
+ * </pre>
+ */
+public void gluTessVertex ( long tess, double[] location, Buffer data) ;
+
diff --git a/C2J/manual/glu-manualCodedVirt-xx.java b/C2J/manual/glu-manualCodedVirt-xx.java index f764841..24c9130 100644 --- a/C2J/manual/glu-manualCodedVirt-xx.java +++ b/C2J/manual/glu-manualCodedVirt-xx.java @@ -109,3 +109,25 @@ public int gluUnProject(double winx, double[] obj); +public void gluTessBeginContour (long tess) ; +public void gluTessBeginPolygon (long tess, boolean[] data) ; +public void gluTessBeginPolygon (long tess, byte[] data) ; +public void gluTessBeginPolygon (long tess, short[] data) ; +public void gluTessBeginPolygon (long tess, int[] data) ; +public void gluTessBeginPolygon (long tess, long[] data) ; +public void gluTessBeginPolygon (long tess, float[] data) ; +public void gluTessBeginPolygon (long tess, double[] data) ; + +public void gluTessEndContour (long tess) ; +public void gluTessEndPolygon (long tess) ; +public void gluTessNormal (long tess, double valueX, double valueY, double valueZ) ; +public void gluTessProperty (long tess, int which, double data) ; + +public void gluTessVertex ( long tess, double[] location, boolean[] data ) ; +public void gluTessVertex ( long tess, double[] location, byte[] data ) ; +public void gluTessVertex ( long tess, double[] location, short[] data ) ; +public void gluTessVertex ( long tess, double[] location, int[] data ) ; +public void gluTessVertex ( long tess, double[] location, long[] data ) ; +public void gluTessVertex ( long tess, double[] location, float[] data ) ; +public void gluTessVertex ( long tess, double[] location, double[] data ) ; + diff --git a/CNativeCode/GLCallbackHelperJNI.c b/CNativeCode/GLCallbackHelperJNI.c index 28f6c68..6900b5e 100644 --- a/CNativeCode/GLCallbackHelperJNI.c +++ b/CNativeCode/GLCallbackHelperJNI.c @@ -18,6 +18,7 @@ */ static CallbackNode * pCallbackNodeRoot = 0; +static void *curCbObj = 0; void LIBAPIENTRY PrintCallbackEntry(const char *title, CallbackEntry * cbe) { @@ -129,13 +130,16 @@ CallbackNode * LIBAPIENTRY FindCallbackNode(GLenum which, jlong glx) cbe->methodName, cbe->signature, cbe->which, (long)(cbe->glx)); - if(cbe->which==which && cbe->glx==glx) + if( cbe->which == which && cbe->glx == glx && + ((curCbObj == NULL) || (cbe->cb_obj == curCbObj)) + ) break; cbn=cbn->next; } #else while(cbn!=NULL && - (cbn->this->which!=which || cbn->this->glx!=glx) + (cbn->this->which!=which || cbn->this->glx!=glx || + cbn->this->cb_obj!=curCbObj) ) cbn=cbn->next; #endif @@ -238,3 +242,13 @@ jlong LIBAPIENTRY GetCurrentGLContext() } +void* LIBAPIENTRY GetCurrentCallbackObject() +{ + return curCbObj; +} + +void LIBAPIENTRY SetCurrentCallbackObject(void* newCbObj) +{ + curCbObj = newCbObj; +} + diff --git a/CNativeCode/GLCallbackHelperJNI.h b/CNativeCode/GLCallbackHelperJNI.h index 210271d..0a1dd63 100644 --- a/CNativeCode/GLCallbackHelperJNI.h +++ b/CNativeCode/GLCallbackHelperJNI.h @@ -67,4 +67,7 @@ LIBAPI jlong LIBAPIENTRY GetCurrentGLContext(); + LIBAPI void* LIBAPIENTRY GetCurrentCallbackObject(); + LIBAPI void LIBAPIENTRY SetCurrentCallbackObject(void* newCbObj); + #endif diff --git a/CNativeCode/OpenGLU_JauJNI12_funcs.c b/CNativeCode/OpenGLU_JauJNI12_funcs.c index ca14454..c0792f4 100644 --- a/CNativeCode/OpenGLU_JauJNI12_funcs.c +++ b/CNativeCode/OpenGLU_JauJNI12_funcs.c @@ -33,7 +33,7 @@ * herein lies the native JAVA methods for the OpenGL functions.
*/
-static const char _glu_n_a_string[] = "GLU-String not avaiable !"; +static const char _glu_n_a_string[] = "GLU-String not available !"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj, @@ -68,7 +68,7 @@ Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj, } static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _glu_lib_version_="2.8.1.0"; +static const char * _glu_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) @@ -300,6 +300,517 @@ Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj) return (jlong)((PointerHolder)disp__gluNewTess()); } +#include "MemoryManager.h" + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessBeginContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jbyteArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jbyte *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jshortArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jshort *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jintArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jint *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jfloatArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jfloat *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jdouble *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jbooleanArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jboolean *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jlongArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jlong *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndPolygon ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndPolygon == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndPolygon ( + (GLUtesselator *) (PointerHolder) tess + ); + FreeArrays(env, MEMM_TESSELATOR); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessNormal ( + JNIEnv *env, jobject obj, + jlong tess, + jdouble valueX, + jdouble valueY, + jdouble valueZ) + { + + if ( disp__gluTessNormal == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessNormal ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble) valueX, + (GLdouble) valueY, + (GLdouble) valueZ + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessProperty ( + JNIEnv *env, jobject obj, + jlong tess, + jint which, + jdouble data) + { + + if ( disp__gluTessProperty == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessProperty ( + (GLUtesselator *) (PointerHolder) tess, + (GLenum) which, + (GLdouble) data + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbyteArray data) + { + jdouble *ptr1 = NULL; + jbyte *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jbyte *) (*env)->GetByteArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BYTE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jshortArray data) + { + jdouble *ptr1 = NULL; + jshort *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jshort *) (*env)->GetShortArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_SHORT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jintArray data) + { + jdouble *ptr1 = NULL; + jint *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jint *) (*env)->GetIntArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_INT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jfloatArray data) + { + jdouble *ptr1 = NULL; + jfloat *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jfloat *) (*env)->GetFloatArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_FLOAT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jdoubleArray data) + { + jdouble *ptr1 = NULL; + jdouble *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jdouble *) (*env)->GetDoubleArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbooleanArray data) + { + jdouble *ptr1 = NULL; + jboolean *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jboolean *) (*env)->GetBooleanArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BOOLEAN_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jlongArray data) + { + jdouble *ptr1 = NULL; + jlong *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jlong *) (*env)->GetLongArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_LONG_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -3352,564 +3863,6 @@ Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj) /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/CNativeCode/OpenGLU_JauJNI12nf_funcs.c b/CNativeCode/OpenGLU_JauJNI12nf_funcs.c index 45078da..b7c6237 100755 --- a/CNativeCode/OpenGLU_JauJNI12nf_funcs.c +++ b/CNativeCode/OpenGLU_JauJNI12nf_funcs.c @@ -33,7 +33,7 @@ * herein lies the native JAVA methods for the OpenGL functions.
*/
-static const char _glu_n_a_string[] = "GLU-String not avaiable !"; +static const char _glu_n_a_string[] = "GLU-String not available !"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNInf_gluErrorString ( JNIEnv *env, jobject obj, @@ -68,7 +68,7 @@ Java_gl4java_GLUFuncJauJNInf_gluGetString ( JNIEnv *env, jobject obj, } static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _glu_lib_version_="2.8.1.0"; +static const char * _glu_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNInf_getNativeVendor ( JNIEnv *env, jobject obj ) @@ -300,6 +300,517 @@ Java_gl4java_GLUFuncJauJNInf_gluNewTess( JNIEnv *env, jobject obj) return (jlong)((PointerHolder)disp__gluNewTess()); } +#include "MemoryManager.h" + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessBeginContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jbyteArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jbyte *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jshortArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jshort *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jintArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jint *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jfloatArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jfloat *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jdouble *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jbooleanArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jboolean *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jlongArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jlong *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessEndContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndPolygon ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessEndPolygon ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndPolygon == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndPolygon ( + (GLUtesselator *) (PointerHolder) tess + ); + FreeArrays(env, MEMM_TESSELATOR); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessNormal ( + JNIEnv *env, jobject obj, + jlong tess, + jdouble valueX, + jdouble valueY, + jdouble valueZ) + { + + if ( disp__gluTessNormal == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessNormal ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble) valueX, + (GLdouble) valueY, + (GLdouble) valueZ + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessProperty ( + JNIEnv *env, jobject obj, + jlong tess, + jint which, + jdouble data) + { + + if ( disp__gluTessProperty == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessProperty ( + (GLUtesselator *) (PointerHolder) tess, + (GLenum) which, + (GLdouble) data + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbyteArray data) + { + jdouble *ptr1 = NULL; + jbyte *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jbyte *) (*env)->GetByteArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BYTE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jshortArray data) + { + jdouble *ptr1 = NULL; + jshort *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jshort *) (*env)->GetShortArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_SHORT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jintArray data) + { + jdouble *ptr1 = NULL; + jint *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jint *) (*env)->GetIntArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_INT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jfloatArray data) + { + jdouble *ptr1 = NULL; + jfloat *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jfloat *) (*env)->GetFloatArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_FLOAT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jdoubleArray data) + { + jdouble *ptr1 = NULL; + jdouble *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jdouble *) (*env)->GetDoubleArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbooleanArray data) + { + jdouble *ptr1 = NULL; + jboolean *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jboolean *) (*env)->GetBooleanArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BOOLEAN_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jlongArray data) + { + jdouble *ptr1 = NULL; + jlong *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jlong *) (*env)->GetLongArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_LONG_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -3352,564 +3863,6 @@ Java_gl4java_GLUFuncJauJNInf_gluNewTess( JNIEnv *env, jobject obj) /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNInf_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/CNativeCode/OpenGLU_JauJNI12tst_funcs.c b/CNativeCode/OpenGLU_JauJNI12tst_funcs.c index 08b89e8..5ff2d5a 100644 --- a/CNativeCode/OpenGLU_JauJNI12tst_funcs.c +++ b/CNativeCode/OpenGLU_JauJNI12tst_funcs.c @@ -33,7 +33,7 @@ * herein lies the native JAVA methods for the OpenGL functions.
*/
-static const char _glu_n_a_string[] = "GLU-String not avaiable !"; +static const char _glu_n_a_string[] = "GLU-String not available !"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj, @@ -68,7 +68,7 @@ Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj, } static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _glu_lib_version_="2.8.1.0"; +static const char * _glu_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) @@ -300,6 +300,517 @@ Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj) return (jlong)((PointerHolder)disp__gluNewTess()); } +#include "MemoryManager.h" + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessBeginContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jbyteArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jbyte *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jshortArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jshort *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jintArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jint *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jfloatArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jfloat *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jdouble *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jbooleanArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jboolean *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jlongArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jlong *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndPolygon ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndPolygon == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndPolygon ( + (GLUtesselator *) (PointerHolder) tess + ); + FreeArrays(env, MEMM_TESSELATOR); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessNormal ( + JNIEnv *env, jobject obj, + jlong tess, + jdouble valueX, + jdouble valueY, + jdouble valueZ) + { + + if ( disp__gluTessNormal == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessNormal ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble) valueX, + (GLdouble) valueY, + (GLdouble) valueZ + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessProperty ( + JNIEnv *env, jobject obj, + jlong tess, + jint which, + jdouble data) + { + + if ( disp__gluTessProperty == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessProperty ( + (GLUtesselator *) (PointerHolder) tess, + (GLenum) which, + (GLdouble) data + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbyteArray data) + { + jdouble *ptr1 = NULL; + jbyte *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jbyte *) (*env)->GetByteArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BYTE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jshortArray data) + { + jdouble *ptr1 = NULL; + jshort *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jshort *) (*env)->GetShortArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_SHORT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jintArray data) + { + jdouble *ptr1 = NULL; + jint *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jint *) (*env)->GetIntArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_INT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jfloatArray data) + { + jdouble *ptr1 = NULL; + jfloat *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jfloat *) (*env)->GetFloatArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_FLOAT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jdoubleArray data) + { + jdouble *ptr1 = NULL; + jdouble *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jdouble *) (*env)->GetDoubleArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbooleanArray data) + { + jdouble *ptr1 = NULL; + jboolean *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jboolean *) (*env)->GetBooleanArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BOOLEAN_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jlongArray data) + { + jdouble *ptr1 = NULL; + jlong *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jlong *) (*env)->GetLongArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_LONG_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -3789,669 +4300,6 @@ Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj) /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - static int isWarned1 = 0; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessBeginPolygon arg: data"); - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - static int isWarned1 = 0; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - static int isWarned2 = 0; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - if( isCopiedArray1 == JNI_TRUE && isWarned1==0 ) { - isWarned1=1; - printf("COPY by gluTessVertex arg: location"); - } - } - if(data!=NULL) - { - ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - if( isCopiedArray2 == JNI_TRUE && isWarned2==0 ) { - isWarned2=1; - printf("COPY by gluTessVertex arg: data"); - } - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/CNativeCode/OpenGLU_JauJNI14_funcs.c b/CNativeCode/OpenGLU_JauJNI14_funcs.c index 5a2421e..ce0faa1 100644 --- a/CNativeCode/OpenGLU_JauJNI14_funcs.c +++ b/CNativeCode/OpenGLU_JauJNI14_funcs.c @@ -40,7 +40,7 @@ static const char _glu_n_a_string[] = "GLU-String not avaiable !";
static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development";
-static const char * _glu_lib_version_="2.8.1.0";
+static const char * _glu_lib_version_="2.8.3.0";
/* ---------------------------------------------------------------------- */
@@ -309,6 +309,582 @@ Java_gl4java_GLUFunc14JauJNI_gluNewTess( JNIEnv *env, jobject obj) return (jlong)((PointerHolder)disp__gluNewTess());
}
+#include "MemoryManager.h"
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginContour ( GLUtesselator * tess ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginContour (
+ JNIEnv *env, jobject obj,
+ jlong tess)
+ {
+
+ if ( disp__gluTessBeginContour == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginContour (
+ (GLUtesselator *) (PointerHolder) tess
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3B (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jbyteArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jbyte *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3S (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jshortArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jshort *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3I (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jintArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jint *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3F (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jfloatArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3D (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3Z (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jbooleanArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jboolean *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3J (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jlongArray data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jlong *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ if(data!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__JLjava_nio_Buffer_2 (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jobject data)
+ {
+ void *ptr1 = NULL;
+
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr1 = (*env)->GetDirectBufferAddress(env, data);
+ if (ptr1 == NULL) {
+ (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"),
+ "Argument 1 was not a direct buffer");
+ return ;
+ }
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessBeginPolygon (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLvoid *) ptr1
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndContour ( GLUtesselator * tess ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessEndContour (
+ JNIEnv *env, jobject obj,
+ jlong tess)
+ {
+
+ if ( disp__gluTessEndContour == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessEndContour (
+ (GLUtesselator *) (PointerHolder) tess
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessEndPolygon ( GLUtesselator * tess ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessEndPolygon (
+ JNIEnv *env, jobject obj,
+ jlong tess)
+ {
+
+ if ( disp__gluTessEndPolygon == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessEndPolygon (
+ (GLUtesselator *) (PointerHolder) tess
+ );
+ FreeArrays(env, MEMM_TESSELATOR);
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessNormal (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdouble valueX,
+ jdouble valueY,
+ jdouble valueZ)
+ {
+
+ if ( disp__gluTessNormal == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessNormal (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble) valueX,
+ (GLdouble) valueY,
+ (GLdouble) valueZ
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessProperty (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jint which,
+ jdouble data)
+ {
+
+ if ( disp__gluTessProperty == NULL ) return;
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessProperty (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLenum) which,
+ (GLdouble) data
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3B (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jbyteArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jbyte *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jbyte *) (*env)->GetByteArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_BYTE, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3S (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jshortArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jshort *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jshort *) (*env)->GetShortArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_SHORT, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3I (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jintArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jint *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jint *) (*env)->GetIntArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_INT, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3F (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jfloatArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jfloat *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetFloatArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_FLOAT, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3D (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jdoubleArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jdouble *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jdouble *) (*env)->GetDoubleArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3Z (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jbooleanArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jboolean *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jboolean *) (*env)->GetBooleanArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_BOOLEAN, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3J (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jlongArray data)
+ {
+ jdouble *ptr1 = NULL;
+ jlong *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0);
+ RegisterArray(env, location, ptr1, MEMM_DOUBLE, MEMM_TESSELATOR);
+ }
+ if(data!=NULL)
+ {
+ ptr2 = (jlong *) (*env)->GetLongArrayElements(env, data, 0);
+ RegisterArray(env, data, ptr2, MEMM_LONG, MEMM_TESSELATOR);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+ }
+ JNIEXPORT void JNICALL
+ Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3DLjava_nio_Buffer_2 (
+ JNIEnv *env, jobject obj,
+ jlong tess,
+ jdoubleArray location,
+ jobject data)
+ {
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jdouble *ptr1 = NULL;
+ void *ptr2 = NULL;
+
+ if ( disp__gluTessVertex == NULL ) return;
+
+ if(data!=NULL)
+ {
+ ptr2 = (*env)->GetDirectBufferAddress(env, data);
+ if (ptr2 == NULL) {
+ (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"),
+ "Argument 2 was not a direct buffer");
+ return ;
+ }
+ }
+ if(location!=NULL)
+ {
+ ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1);
+ }
+ SetCurrentCallbackObject((void *) (PointerHolder) tess);
+ disp__gluTessVertex (
+ (GLUtesselator *) (PointerHolder) tess,
+ (GLdouble *) ptr1,
+ (GLvoid *) ptr2
+ );
+
+ if(location!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
/** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -3659,626 +4235,6 @@ Java_gl4java_GLUFunc14JauJNI_gluNewTess( JNIEnv *env, jobject obj) /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessBeginPolygon__JLjava_nio_Buffer_2 ( - JNIEnv *env, jobject obj, - jlong tess, - jobject data) - { - void *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetDirectBufferAddress(env, data); - if (ptr1 == NULL) { - (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"), - "Argument 1 was not a direct buffer"); - return ; - } - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFunc14JauJNI_gluTessVertex__J_3DLjava_nio_Buffer_2 ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jobject data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - void *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(data!=NULL) - { - ptr2 = (*env)->GetDirectBufferAddress(env, data); - if (ptr2 == NULL) { - (*env)->ThrowNew(env, (*env)->FindClass(env, "java/lang/IllegalArgumentException"), - "Argument 2 was not a direct buffer"); - return ; - } - } - if(location!=NULL) - { - ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, location, &isCopiedArray1); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleasePrimitiveArrayCritical(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/CNativeCode/OpenGLU_JauJNI_funcs.c b/CNativeCode/OpenGLU_JauJNI_funcs.c index 89418db..9bc474c 100644 --- a/CNativeCode/OpenGLU_JauJNI_funcs.c +++ b/CNativeCode/OpenGLU_JauJNI_funcs.c @@ -33,7 +33,7 @@ * herein lies the native JAVA methods for the OpenGL functions.
*/
-static const char _glu_n_a_string[] = "GLU-String not avaiable !"; +static const char _glu_n_a_string[] = "GLU-String not available !"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_gluErrorString ( JNIEnv *env, jobject obj, @@ -68,7 +68,7 @@ Java_gl4java_GLUFuncJauJNI_gluGetString ( JNIEnv *env, jobject obj, } static const char * _glu_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _glu_lib_version_="2.8.1.0"; +static const char * _glu_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLUFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) @@ -300,6 +300,517 @@ Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj) return (jlong)((PointerHolder)disp__gluNewTess()); } +#include "MemoryManager.h" + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessBeginContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jbyteArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jbyte *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jshortArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jshort *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jshort *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jintArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jint *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jint *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jfloatArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jfloat *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jdouble *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jdouble *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jbooleanArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jboolean *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jboolean *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jlongArray data) + { + jboolean isCopiedArray1 = JNI_FALSE; + jlong *ptr1 = NULL; + + if ( disp__gluTessBeginPolygon == NULL ) return; + + if(data!=NULL) + { + ptr1 = (jlong *) (*env)->GetPrimitiveArrayCritical(env, data, &isCopiedArray1); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessBeginPolygon ( + (GLUtesselator *) (PointerHolder) tess, + (GLvoid *) ptr1 + ); + + if(data!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); + } + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndContour ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndContour == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndContour ( + (GLUtesselator *) (PointerHolder) tess + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessEndPolygon ( GLUtesselator * tess ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( + JNIEnv *env, jobject obj, + jlong tess) + { + + if ( disp__gluTessEndPolygon == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessEndPolygon ( + (GLUtesselator *) (PointerHolder) tess + ); + FreeArrays(env, MEMM_TESSELATOR); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessNormal ( + JNIEnv *env, jobject obj, + jlong tess, + jdouble valueX, + jdouble valueY, + jdouble valueZ) + { + + if ( disp__gluTessNormal == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessNormal ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble) valueX, + (GLdouble) valueY, + (GLdouble) valueZ + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessProperty ( + JNIEnv *env, jobject obj, + jlong tess, + jint which, + jdouble data) + { + + if ( disp__gluTessProperty == NULL ) return; + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessProperty ( + (GLUtesselator *) (PointerHolder) tess, + (GLenum) which, + (GLdouble) data + ); + + } + +/** + * Original Function-Prototype : + * <pre> + extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; + * </pre> + */ + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbyteArray data) + { + jdouble *ptr1 = NULL; + jbyte *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jbyte *) (*env)->GetByteArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BYTE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jshortArray data) + { + jdouble *ptr1 = NULL; + jshort *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jshort *) (*env)->GetShortArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_SHORT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jintArray data) + { + jdouble *ptr1 = NULL; + jint *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jint *) (*env)->GetIntArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_INT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jfloatArray data) + { + jdouble *ptr1 = NULL; + jfloat *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jfloat *) (*env)->GetFloatArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_FLOAT_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jdoubleArray data) + { + jdouble *ptr1 = NULL; + jdouble *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jdouble *) (*env)->GetDoubleArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jbooleanArray data) + { + jdouble *ptr1 = NULL; + jboolean *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jboolean *) (*env)->GetBooleanArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_BOOLEAN_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } + JNIEXPORT void JNICALL + Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( + JNIEnv *env, jobject obj, + jlong tess, + jdoubleArray location, + jlongArray data) + { + jdouble *ptr1 = NULL; + jlong *ptr2 = NULL; + + if ( disp__gluTessVertex == NULL ) return; + + if(location!=NULL) + { + ptr1 = (jdouble *) (*env)->GetDoubleArrayElements(env, location, 0); + RegisterArray(env, location, ptr1, T_DOUBLE_ARRAY, MEMM_TESSELATOR); + } + if(data!=NULL) + { + ptr2 = (jlong *) (*env)->GetLongArrayElements(env, data, 0); + RegisterArray(env, data, ptr2, T_LONG_ARRAY, MEMM_TESSELATOR); + } + SetCurrentCallbackObject((void *) (PointerHolder) tess); + disp__gluTessVertex ( + (GLUtesselator *) (PointerHolder) tess, + (GLdouble *) ptr1, + (GLvoid *) ptr2 + ); + } /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -3352,564 +3863,6 @@ Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj) /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessBeginContour == NULL ) return; - - disp__gluTessBeginContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jbyte *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetByteArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseByteArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jshort *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetShortArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseShortArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jint *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetIntArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseIntArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jfloat *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseFloatArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jboolean *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseBooleanArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jlong *ptr1 = NULL; - - if ( disp__gluTessBeginPolygon == NULL ) return; - - if(data!=NULL) - { - ptr1 = (*env)->GetLongArrayElements(env, data, &isCopiedArray1); - } - disp__gluTessBeginPolygon ( - (GLUtesselator *) (PointerHolder) tess, - (GLvoid *) ptr1 - ); - - if(data!=NULL) - { - (*env)->ReleaseLongArrayElements(env, data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndContour == NULL ) return; - - disp__gluTessEndContour ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( - JNIEnv *env, jobject obj, - jlong tess) - { - - if ( disp__gluTessEndPolygon == NULL ) return; - - disp__gluTessEndPolygon ( - (GLUtesselator *) (PointerHolder) tess - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessNormal ( - JNIEnv *env, jobject obj, - jlong tess, - jdouble valueX, - jdouble valueY, - jdouble valueZ) - { - - if ( disp__gluTessNormal == NULL ) return; - - disp__gluTessNormal ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble) valueX, - (GLdouble) valueY, - (GLdouble) valueZ - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessProperty ( - JNIEnv *env, jobject obj, - jlong tess, - jint which, - jdouble data) - { - - if ( disp__gluTessProperty == NULL ) return; - - disp__gluTessProperty ( - (GLUtesselator *) (PointerHolder) tess, - (GLenum) which, - (GLdouble) data - ); - - } - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbyteArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jbyte *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetByteArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseByteArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jshortArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jshort *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetShortArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseShortArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jintArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jint *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetIntArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseIntArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jfloatArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jfloat *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetFloatArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseFloatArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jdoubleArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jdouble *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetDoubleArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jbooleanArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jboolean *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetBooleanArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseBooleanArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - JNIEXPORT void JNICALL - Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J ( - JNIEnv *env, jobject obj, - jlong tess, - jdoubleArray location, - jlongArray data) - { - jboolean isCopiedArray1 = JNI_FALSE; - jdouble *ptr1 = NULL; - jboolean isCopiedArray2 = JNI_FALSE; - jlong *ptr2 = NULL; - - if ( disp__gluTessVertex == NULL ) return; - - if(location!=NULL) - { - ptr1 = (*env)->GetDoubleArrayElements(env, location, &isCopiedArray1); - } - if(data!=NULL) - { - ptr2 = (*env)->GetLongArrayElements(env, data, &isCopiedArray2); - } - disp__gluTessVertex ( - (GLUtesselator *) (PointerHolder) tess, - (GLdouble *) ptr1, - (GLvoid *) ptr2 - ); - - if(location!=NULL) - { - (*env)->ReleaseDoubleArrayElements(env, location, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); - } - if(data!=NULL) - { - (*env)->ReleaseLongArrayElements(env, data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); - } - } - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/CNativeCode/OpenGL_JauJNI12_funcs.c b/CNativeCode/OpenGL_JauJNI12_funcs.c index 54bcac6..2cd7231 100755 --- a/CNativeCode/OpenGL_JauJNI12_funcs.c +++ b/CNativeCode/OpenGL_JauJNI12_funcs.c @@ -71,7 +71,7 @@ Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj, } static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _gl_lib_version_="2.8.1.0"; +static const char * _gl_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) diff --git a/CNativeCode/OpenGL_JauJNI12nf_funcs.c b/CNativeCode/OpenGL_JauJNI12nf_funcs.c index b474628..b9a2685 100755 --- a/CNativeCode/OpenGL_JauJNI12nf_funcs.c +++ b/CNativeCode/OpenGL_JauJNI12nf_funcs.c @@ -71,7 +71,7 @@ Java_gl4java_GLFuncJauJNInf_glGetString ( JNIEnv *env, jobject obj, } static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _gl_lib_version_="2.8.1.0"; +static const char * _gl_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLFuncJauJNInf_getNativeVendor ( JNIEnv *env, jobject obj ) diff --git a/CNativeCode/OpenGL_JauJNI12tst_funcs.c b/CNativeCode/OpenGL_JauJNI12tst_funcs.c index b9ffcf6..822243a 100755 --- a/CNativeCode/OpenGL_JauJNI12tst_funcs.c +++ b/CNativeCode/OpenGL_JauJNI12tst_funcs.c @@ -71,7 +71,7 @@ Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj, } static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _gl_lib_version_="2.8.1.0"; +static const char * _gl_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) diff --git a/CNativeCode/OpenGL_JauJNI14_funcs.c b/CNativeCode/OpenGL_JauJNI14_funcs.c index edbb8b5..8633de3 100644 --- a/CNativeCode/OpenGL_JauJNI14_funcs.c +++ b/CNativeCode/OpenGL_JauJNI14_funcs.c @@ -55,7 +55,7 @@ static const char _gl_n_a_string[] = "GL-String not avaiable !"; static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _gl_lib_version_="2.8.1.0"; +static const char * _gl_lib_version_="2.8.3.0"; /* ---------------------------------------------------------------------- */ diff --git a/CNativeCode/OpenGL_JauJNI_funcs.c b/CNativeCode/OpenGL_JauJNI_funcs.c index 354a177..2202f70 100755 --- a/CNativeCode/OpenGL_JauJNI_funcs.c +++ b/CNativeCode/OpenGL_JauJNI_funcs.c @@ -71,7 +71,7 @@ Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj, } static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development"; -static const char * _gl_lib_version_="2.8.1.0"; +static const char * _gl_lib_version_="2.8.3.0"; JNIEXPORT jstring JNICALL Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj ) diff --git a/CNativeCode/glu-disp-fetch.hc b/CNativeCode/glu-disp-fetch.hc index 7251b21..f3f732c 100755 --- a/CNativeCode/glu-disp-fetch.hc +++ b/CNativeCode/glu-disp-fetch.hc @@ -38,6 +38,27 @@ disp__gluNewTess= ( GLUtesselator* (CALLBACK *) (void) ) GET_GL_PROCADDRESS("gluNewTess"); + disp__gluTessVertex = (void (CALLBACK *)(GLUtesselator *, GLdouble *, GLvoid *)) + GET_GL_PROCADDRESS ("gluTessVertex"); + + disp__gluTessBeginContour = (void (CALLBACK *)(GLUtesselator* tess)) + GET_GL_PROCADDRESS ("gluTessBeginContour"); + + disp__gluTessBeginPolygon = (void (CALLBACK *)(GLUtesselator* tess, GLvoid* data)) + GET_GL_PROCADDRESS ("gluTessBeginPolygon"); + + disp__gluTessEndContour = (void (CALLBACK *)(GLUtesselator* tess)) + GET_GL_PROCADDRESS ("gluTessEndContour"); + + disp__gluTessEndPolygon = (void (CALLBACK *)(GLUtesselator* tess)) + GET_GL_PROCADDRESS ("gluTessEndPolygon"); + + disp__gluTessNormal = (void (CALLBACK *)(GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ)) + GET_GL_PROCADDRESS ("gluTessNormal"); + + disp__gluTessProperty = (void (CALLBACK *)(GLUtesselator* tess, GLenum which, GLdouble data)) + GET_GL_PROCADDRESS ("gluTessProperty"); + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -156,27 +177,6 @@ disp__gluSphere = (void (CALLBACK *)(GLUquadric *, GLdouble, GLint, GLint)) GET_GL_PROCADDRESS ("gluSphere"); - disp__gluTessBeginContour = (void (CALLBACK *)(GLUtesselator *)) - GET_GL_PROCADDRESS ("gluTessBeginContour"); - - disp__gluTessBeginPolygon = (void (CALLBACK *)(GLUtesselator *, GLvoid *)) - GET_GL_PROCADDRESS ("gluTessBeginPolygon"); - - disp__gluTessEndContour = (void (CALLBACK *)(GLUtesselator *)) - GET_GL_PROCADDRESS ("gluTessEndContour"); - - disp__gluTessEndPolygon = (void (CALLBACK *)(GLUtesselator *)) - GET_GL_PROCADDRESS ("gluTessEndPolygon"); - - disp__gluTessNormal = (void (CALLBACK *)(GLUtesselator *, GLdouble, GLdouble, GLdouble)) - GET_GL_PROCADDRESS ("gluTessNormal"); - - disp__gluTessProperty = (void (CALLBACK *)(GLUtesselator *, GLenum, GLdouble)) - GET_GL_PROCADDRESS ("gluTessProperty"); - - disp__gluTessVertex = (void (CALLBACK *)(GLUtesselator *, GLdouble *, GLvoid *)) - GET_GL_PROCADDRESS ("gluTessVertex"); - disp__gluUnProject = (GLint (CALLBACK *)(GLdouble, GLdouble, GLdouble, const GLdouble *, const GLdouble *, const GLint *, GLdouble *, GLdouble *, GLdouble *)) GET_GL_PROCADDRESS ("gluUnProject"); diff --git a/CNativeCode/glu-disp-var.h b/CNativeCode/glu-disp-var.h index 9f45d41..1eafbf7 100755 --- a/CNativeCode/glu-disp-var.h +++ b/CNativeCode/glu-disp-var.h @@ -25,6 +25,21 @@ LIBAPI GLUquadricObj* (CALLBACK * disp__gluNewQuadric) ( void ); LIBAPI GLUnurbsObj* (CALLBACK * disp__gluNewNurbsRenderer) ( void ); LIBAPI GLUtesselator* (CALLBACK * disp__gluNewTess) ( void ); + +LIBAPI void (CALLBACK * disp__gluTessVertex )(GLUtesselator *, GLdouble *, GLvoid *); + +LIBAPI void (CALLBACK * disp__gluTessBeginContour)(GLUtesselator* tess); + +LIBAPI void (CALLBACK * disp__gluTessBeginPolygon)(GLUtesselator* tess, GLvoid* data); + +LIBAPI void (CALLBACK * disp__gluTessEndContour)(GLUtesselator* tess); + +LIBAPI void (CALLBACK * disp__gluTessEndPolygon)(GLUtesselator* tess); + +LIBAPI void (CALLBACK * disp__gluTessNormal)(GLUtesselator* tess, GLdouble valueX, GLdouble valueY, GLdouble valueZ); + +LIBAPI void (CALLBACK * disp__gluTessProperty)(GLUtesselator* tess, GLenum which, GLdouble data); + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -331,62 +346,6 @@ LIBAPI GLUtesselator* (CALLBACK * disp__gluNewTess) ( void ); /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessBeginContour )(GLUtesselator *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessBeginPolygon )(GLUtesselator *, GLvoid *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessEndContour )(GLUtesselator *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessEndPolygon )(GLUtesselator *); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessNormal )(GLUtesselator *, GLdouble, GLdouble, GLdouble); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessProperty )(GLUtesselator *, GLenum, GLdouble); - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - LIBAPI void (CALLBACK * disp__gluTessVertex )(GLUtesselator *, GLdouble *, GLvoid *); - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/CNativeCode/glu-disp-var.hc b/CNativeCode/glu-disp-var.hc index 68b06d8..0f89ba6 100755 --- a/CNativeCode/glu-disp-var.hc +++ b/CNativeCode/glu-disp-var.hc @@ -26,6 +26,21 @@ GLUquadricObj* (CALLBACK * disp__gluNewQuadric) ( void ) = NULL; GLUnurbsObj* (CALLBACK * disp__gluNewNurbsRenderer) ( void ) = NULL; GLUtesselator* (CALLBACK * disp__gluNewTess) ( void ) = NULL; + +void (CALLBACK * disp__gluTessBeginContour) ( GLUtesselator* ) = NULL; + +void (CALLBACK * disp__gluTessBeginPolygon) ( GLUtesselator* , GLvoid* ) = NULL; + +void (CALLBACK * disp__gluTessEndContour) ( GLUtesselator* ) = NULL; + +void (CALLBACK * disp__gluTessEndPolygon) ( GLUtesselator* ) = NULL; + +void (CALLBACK * disp__gluTessNormal) ( GLUtesselator*, GLdouble, GLdouble, GLdouble ) = NULL; + +void (CALLBACK * disp__gluTessProperty) ( GLUtesselator*, GLenum, GLdouble ) = NULL; + +void (CALLBACK * disp__gluTessVertex ) ( GLUtesselator*, GLdouble*, GLvoid*) = NULL; + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -107,20 +122,6 @@ GLUtesselator* (CALLBACK * disp__gluNewTess) ( void ) = NULL; void (CALLBACK * disp__gluSphere )(GLUquadric *, GLdouble, GLint, GLint) = NULL; - void (CALLBACK * disp__gluTessBeginContour )(GLUtesselator *) = NULL; - - void (CALLBACK * disp__gluTessBeginPolygon )(GLUtesselator *, GLvoid *) = NULL; - - void (CALLBACK * disp__gluTessEndContour )(GLUtesselator *) = NULL; - - void (CALLBACK * disp__gluTessEndPolygon )(GLUtesselator *) = NULL; - - void (CALLBACK * disp__gluTessNormal )(GLUtesselator *, GLdouble, GLdouble, GLdouble) = NULL; - - void (CALLBACK * disp__gluTessProperty )(GLUtesselator *, GLenum, GLdouble) = NULL; - - void (CALLBACK * disp__gluTessVertex )(GLUtesselator *, GLdouble *, GLvoid *) = NULL; - GLint (CALLBACK * disp__gluUnProject )(GLdouble, GLdouble, GLdouble, const GLdouble *, const GLdouble *, const GLint *, GLdouble *, GLdouble *, GLdouble *) = NULL; GLint (CALLBACK * disp__gluUnProject4 )(GLdouble, GLdouble, GLdouble, GLdouble, const GLdouble *, const GLdouble *, const GLint *, GLdouble, GLdouble, GLdouble *, GLdouble *, GLdouble *, GLdouble *) = NULL; diff --git a/gl4java/GLFunc14JauJNI.java b/gl4java/GLFunc14JauJNI.java index f14d31b..db96592 100644 --- a/gl4java/GLFunc14JauJNI.java +++ b/gl4java/GLFunc14JauJNI.java @@ -84,7 +84,7 @@ public final String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public final String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } diff --git a/gl4java/GLFuncJauJNI.java b/gl4java/GLFuncJauJNI.java index 609663a..f396425 100644 --- a/gl4java/GLFuncJauJNI.java +++ b/gl4java/GLFuncJauJNI.java @@ -32,7 +32,7 @@ public final String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public final String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } diff --git a/gl4java/GLFuncJauJNInf.java b/gl4java/GLFuncJauJNInf.java index db0cb8c..c0431bf 100644 --- a/gl4java/GLFuncJauJNInf.java +++ b/gl4java/GLFuncJauJNInf.java @@ -32,7 +32,7 @@ public String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } diff --git a/gl4java/GLUFunc.java b/gl4java/GLUFunc.java index d8a4adc..4fcb77b 100644 --- a/gl4java/GLUFunc.java +++ b/gl4java/GLUFunc.java @@ -132,6 +132,28 @@ public int gluUnProject(double winx, double[] obj); +public void gluTessBeginContour (long tess) ; +public void gluTessBeginPolygon (long tess, boolean[] data) ; +public void gluTessBeginPolygon (long tess, byte[] data) ; +public void gluTessBeginPolygon (long tess, short[] data) ; +public void gluTessBeginPolygon (long tess, int[] data) ; +public void gluTessBeginPolygon (long tess, long[] data) ; +public void gluTessBeginPolygon (long tess, float[] data) ; +public void gluTessBeginPolygon (long tess, double[] data) ; + +public void gluTessEndContour (long tess) ; +public void gluTessEndPolygon (long tess) ; +public void gluTessNormal (long tess, double valueX, double valueY, double valueZ) ; +public void gluTessProperty (long tess, int which, double data) ; + +public void gluTessVertex ( long tess, double[] location, boolean[] data ) ; +public void gluTessVertex ( long tess, double[] location, byte[] data ) ; +public void gluTessVertex ( long tess, double[] location, short[] data ) ; +public void gluTessVertex ( long tess, double[] location, int[] data ) ; +public void gluTessVertex ( long tess, double[] location, long[] data ) ; +public void gluTessVertex ( long tess, double[] location, float[] data ) ; +public void gluTessVertex ( long tess, double[] location, double[] data ) ; + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -1088,138 +1110,6 @@ public int gluUnProject(double winx, /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/gl4java/GLUFunc14.java b/gl4java/GLUFunc14.java index 7ef522c..2e81dec 100644 --- a/gl4java/GLUFunc14.java +++ b/gl4java/GLUFunc14.java @@ -23,6 +23,22 @@ public interface GLUFunc14 extends GLUFunc
{
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ;
+ * </pre>
+ */
+public void gluTessBeginPolygon ( long tess, Buffer data) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ;
+ * </pre>
+ */
+public void gluTessVertex ( long tess, double[] location, Buffer data) ;
+
public String gluErrorString ( int errorCode ) ; @@ -134,6 +150,28 @@ public int gluUnProject(double winx, double[] obj); +public void gluTessBeginContour (long tess) ; +public void gluTessBeginPolygon (long tess, boolean[] data) ; +public void gluTessBeginPolygon (long tess, byte[] data) ; +public void gluTessBeginPolygon (long tess, short[] data) ; +public void gluTessBeginPolygon (long tess, int[] data) ; +public void gluTessBeginPolygon (long tess, long[] data) ; +public void gluTessBeginPolygon (long tess, float[] data) ; +public void gluTessBeginPolygon (long tess, double[] data) ; + +public void gluTessEndContour (long tess) ; +public void gluTessEndPolygon (long tess) ; +public void gluTessNormal (long tess, double valueX, double valueY, double valueZ) ; +public void gluTessProperty (long tess, int which, double data) ; + +public void gluTessVertex ( long tess, double[] location, boolean[] data ) ; +public void gluTessVertex ( long tess, double[] location, byte[] data ) ; +public void gluTessVertex ( long tess, double[] location, short[] data ) ; +public void gluTessVertex ( long tess, double[] location, int[] data ) ; +public void gluTessVertex ( long tess, double[] location, long[] data ) ; +public void gluTessVertex ( long tess, double[] location, float[] data ) ; +public void gluTessVertex ( long tess, double[] location, double[] data ) ; + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -1164,147 +1202,6 @@ public int gluUnProject(double winx, /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - public void gluTessBeginPolygon ( - long tess, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - public void gluTessVertex ( - long tess, - double[] location, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/gl4java/GLUFunc14JauJNI.java b/gl4java/GLUFunc14JauJNI.java index 09037c5..5d24f22 100644 --- a/gl4java/GLUFunc14JauJNI.java +++ b/gl4java/GLUFunc14JauJNI.java @@ -23,6 +23,22 @@ public class GLUFunc14JauJNI implements GLUFunc14
{
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ;
+ * </pre>
+ */
+public final native void gluTessBeginPolygon ( long tess, Buffer data) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ;
+ * </pre>
+ */
+public final native void gluTessVertex ( long tess, double[] location, Buffer data) ;
+
public final native String gluErrorString ( int errorCode ) ; public final native String gluGetString ( int name ) ; @@ -34,7 +50,7 @@ public final String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public final String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } /** @@ -249,6 +265,26 @@ public final int gluUnProject(double winx, return r; } +public final native void gluTessBeginContour (long tess); +public final native void gluTessBeginPolygon (long tess, boolean[] data); +public final native void gluTessBeginPolygon (long tess, short[] data); +public final native void gluTessBeginPolygon (long tess, byte[] data); +public final native void gluTessBeginPolygon (long tess, int[] data); +public final native void gluTessBeginPolygon (long tess, long[] data); +public final native void gluTessBeginPolygon (long tess, float[] data); +public final native void gluTessBeginPolygon (long tess, double[] data); +public final native void gluTessEndContour (long tess); +public final native void gluTessEndPolygon (long tess); +public final native void gluTessNormal (long tess, double valueX, double valueY, double valueZ); +public final native void gluTessProperty (long tess, int which, double data); +public final native void gluTessVertex ( long tess, double[] location, boolean[] data ); +public final native void gluTessVertex ( long tess, double[] location, byte[] data ); +public final native void gluTessVertex ( long tess, double[] location, short[] data ); +public final native void gluTessVertex ( long tess, double[] location, int[] data ); +public final native void gluTessVertex ( long tess, double[] location, long[] data ); +public final native void gluTessVertex ( long tess, double[] location, float[] data ); +public final native void gluTessVertex ( long tess, double[] location, double[] data ); + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -1279,147 +1315,6 @@ public final int gluUnProject(double winx, /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public final native void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public final native void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - Buffer data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/gl4java/GLUFuncJauJNI.java b/gl4java/GLUFuncJauJNI.java index 82159a4..81d92af 100644 --- a/gl4java/GLUFuncJauJNI.java +++ b/gl4java/GLUFuncJauJNI.java @@ -32,7 +32,7 @@ public final String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public final String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } /** @@ -247,6 +247,26 @@ public final int gluUnProject(double winx, return r; } +public final native void gluTessBeginContour (long tess); +public final native void gluTessBeginPolygon (long tess, boolean[] data); +public final native void gluTessBeginPolygon (long tess, short[] data); +public final native void gluTessBeginPolygon (long tess, byte[] data); +public final native void gluTessBeginPolygon (long tess, int[] data); +public final native void gluTessBeginPolygon (long tess, long[] data); +public final native void gluTessBeginPolygon (long tess, float[] data); +public final native void gluTessBeginPolygon (long tess, double[] data); +public final native void gluTessEndContour (long tess); +public final native void gluTessEndPolygon (long tess); +public final native void gluTessNormal (long tess, double valueX, double valueY, double valueZ); +public final native void gluTessProperty (long tess, int which, double data); +public final native void gluTessVertex ( long tess, double[] location, boolean[] data ); +public final native void gluTessVertex ( long tess, double[] location, byte[] data ); +public final native void gluTessVertex ( long tess, double[] location, short[] data ); +public final native void gluTessVertex ( long tess, double[] location, int[] data ); +public final native void gluTessVertex ( long tess, double[] location, long[] data ); +public final native void gluTessVertex ( long tess, double[] location, float[] data ); +public final native void gluTessVertex ( long tess, double[] location, double[] data ); + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -1203,138 +1223,6 @@ public final int gluUnProject(double winx, /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public final native void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public final native void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public final native void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public final native void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public final native void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public final native void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ diff --git a/gl4java/GLUFuncJauJNInf.java b/gl4java/GLUFuncJauJNInf.java index 0e5e08d..6306c4b 100644 --- a/gl4java/GLUFuncJauJNInf.java +++ b/gl4java/GLUFuncJauJNInf.java @@ -32,7 +32,7 @@ public String getClassVendor ( ) { return "Jausoft - Sven Goethel Software Development"; } public String getClassVersion ( ) -{ return "2.8.1.0"; } +{ return "2.8.3.0"; } /** @@ -247,6 +247,26 @@ public int gluUnProject(double winx, return r; } +public native void gluTessBeginContour (long tess); +public native void gluTessBeginPolygon (long tess, boolean[] data); +public native void gluTessBeginPolygon (long tess, short[] data); +public native void gluTessBeginPolygon (long tess, byte[] data); +public native void gluTessBeginPolygon (long tess, int[] data); +public native void gluTessBeginPolygon (long tess, long[] data); +public native void gluTessBeginPolygon (long tess, float[] data); +public native void gluTessBeginPolygon (long tess, double[] data); +public native void gluTessEndContour (long tess); +public native void gluTessEndPolygon (long tess); +public native void gluTessNormal (long tess, double valueX, double valueY, double valueZ); +public native void gluTessProperty (long tess, int which, double data); +public native void gluTessVertex ( long tess, double[] location, boolean[] data ); +public native void gluTessVertex ( long tess, double[] location, byte[] data ); +public native void gluTessVertex ( long tess, double[] location, short[] data ); +public native void gluTessVertex ( long tess, double[] location, int[] data ); +public native void gluTessVertex ( long tess, double[] location, long[] data ); +public native void gluTessVertex ( long tess, double[] location, float[] data ); +public native void gluTessVertex ( long tess, double[] location, double[] data ); + /** * C2J Parser Version 3.0 * Jausoft - Sven Goethel Software Development @@ -1203,138 +1223,6 @@ public int gluUnProject(double winx, /** * Original Function-Prototype : * <pre> - extern void gluTessBeginContour ( GLUtesselator * tess ) ; - * </pre> - */ - public native void gluTessBeginContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessBeginPolygon ( GLUtesselator * tess , GLvoid * data ) ; - * </pre> - */ - public native void gluTessBeginPolygon ( - long tess, - byte[] data - ) ; - public native void gluTessBeginPolygon ( - long tess, - short[] data - ) ; - public native void gluTessBeginPolygon ( - long tess, - int[] data - ) ; - public native void gluTessBeginPolygon ( - long tess, - float[] data - ) ; - public native void gluTessBeginPolygon ( - long tess, - double[] data - ) ; - public native void gluTessBeginPolygon ( - long tess, - boolean[] data - ) ; - public native void gluTessBeginPolygon ( - long tess, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndContour ( GLUtesselator * tess ) ; - * </pre> - */ - public native void gluTessEndContour ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessEndPolygon ( GLUtesselator * tess ) ; - * </pre> - */ - public native void gluTessEndPolygon ( - long tess - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessNormal ( GLUtesselator * tess , GLdouble valueX , GLdouble valueY , GLdouble valueZ ) ; - * </pre> - */ - public native void gluTessNormal ( - long tess, - double valueX, - double valueY, - double valueZ - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessProperty ( GLUtesselator * tess , GLenum which , GLdouble data ) ; - * </pre> - */ - public native void gluTessProperty ( - long tess, - int which, - double data - ) ; - -/** - * Original Function-Prototype : - * <pre> - extern void gluTessVertex ( GLUtesselator * tess , GLdouble * location , GLvoid * data ) ; - * </pre> - */ - public native void gluTessVertex ( - long tess, - double[] location, - byte[] data - ) ; - public native void gluTessVertex ( - long tess, - double[] location, - short[] data - ) ; - public native void gluTessVertex ( - long tess, - double[] location, - int[] data - ) ; - public native void gluTessVertex ( - long tess, - double[] location, - float[] data - ) ; - public native void gluTessVertex ( - long tess, - double[] location, - double[] data - ) ; - public native void gluTessVertex ( - long tess, - double[] location, - boolean[] data - ) ; - public native void gluTessVertex ( - long tess, - double[] location, - long[] data - ) ; - -/** - * Original Function-Prototype : - * <pre> extern GLint gluUnProject ( GLdouble winX , GLdouble winY , GLdouble winZ , const GLdouble * model , const GLdouble * proj , const GLint * view , GLdouble * objX , GLdouble * objY , GLdouble * objZ ) ; * </pre> */ @@ -373,7 +373,8 @@ FILES1.c = $(CNATIVEDIR)/OpenGL_X11.c \ $(CNATIVEDIR)/OpenGLU_JauJNI_funcs.c \ $(CNATIVEDIR)/glf.c \ $(CNATIVEDIR)/GLF_JNI_funcs.c \ - $(CNATIVEDIR)/GLUCallbackJNI.c + $(CNATIVEDIR)/GLUCallbackJNI.c \ + $(CNATIVEDIR)/MemoryManager.c FILES2.c = $(CNATIVEDIR)/OpenGL_X11.c \ $(CNATIVEDIR)/OpenGL_X11_common.c \ @@ -388,7 +389,8 @@ FILES2.c = $(CNATIVEDIR)/OpenGL_X11.c \ $(CNATIVEDIR)/OpenGLU_JauJNI12_funcs.c \ $(CNATIVEDIR)/glf.c \ $(CNATIVEDIR)/GLF_JNI12_funcs.c \ - $(CNATIVEDIR)/GLUCallbackJNI.c + $(CNATIVEDIR)/GLUCallbackJNI.c \ + $(CNATIVEDIR)/MemoryManager.c FILES3.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/OpenGL_X11_common.c \ @@ -405,7 +407,8 @@ FILES3.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/OpenGLU_JauJNI12_funcs.c \ $(CNATIVEDIR)/glf.c \ $(CNATIVEDIR)/GLF_JNI12_funcs.c \ - $(CNATIVEDIR)/GLUCallbackJNI.c + $(CNATIVEDIR)/GLUCallbackJNI.c \ + $(CNATIVEDIR)/MemoryManager.c FILES4.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/OpenGL_X11_common.c \ @@ -425,7 +428,8 @@ FILES4.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/gl4java_utils_DirectBufferCleanup.c \ $(CNATIVEDIR)/glf.c \ $(CNATIVEDIR)/GLF_JNI12_funcs.c \ - $(CNATIVEDIR)/GLUCallbackJNI.c + $(CNATIVEDIR)/GLUCallbackJNI.c \ + $(CNATIVEDIR)/MemoryManager.c FILES3_NF.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/OpenGL_X11_common.c \ @@ -442,7 +446,8 @@ FILES3_NF.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/OpenGLU_JauJNI12nf_funcs.c \ $(CNATIVEDIR)/glf.c \ $(CNATIVEDIR)/GLF_JNI12_funcs.c \ - $(CNATIVEDIR)/GLUCallbackJNI.c + $(CNATIVEDIR)/GLUCallbackJNI.c \ + $(CNATIVEDIR)/MemoryManager.c FILES3_TST.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/OpenGL_X11_common.c \ @@ -459,7 +464,8 @@ FILES3_TST.c = $(CNATIVEDIR)/OpenGL_X11_jawt.c \ $(CNATIVEDIR)/OpenGLU_JauJNI12tst_funcs.c \ $(CNATIVEDIR)/glf.c \ $(CNATIVEDIR)/GLF_JNI12_funcs.c \ - $(CNATIVEDIR)/GLUCallbackJNI.c + $(CNATIVEDIR)/GLUCallbackJNI.c \ + $(CNATIVEDIR)/MemoryManager.c FILES1.o = ${FILES1.c:.c=.o} FILES2.o = ${FILES2.c:.c=.o} @@ -673,6 +679,9 @@ $(CNATIVEDIR)/GLCallbackHelperJNI.o: $(CNATIVEDIR)/jnitools.h $(CNATIVEDIR)/GLUCallbackJNI.o: $(CNATIVEDIR)/jnitools.h \ $(CNATIVEDIR)/GLCallbackHelperJNI.h +$(CNATIVEDIR)/MemoryManager.o: $(CNATIVEDIR)/jnitools.h \ + $(CNATIVEDIR)/MemoryManager.h + ###################################################################### # # now we have some administration/documentation stuff |