diff options
Diffstat (limited to 'C2J/glu-proto-auto-tst-jni12.c')
-rw-r--r-- | C2J/glu-proto-auto-tst-jni12.c | 510 |
1 files changed, 261 insertions, 249 deletions
diff --git a/C2J/glu-proto-auto-tst-jni12.c b/C2J/glu-proto-auto-tst-jni12.c index fb1fb9f..f13f9d2 100644 --- a/C2J/glu-proto-auto-tst-jni12.c +++ b/C2J/glu-proto-auto-tst-jni12.c @@ -4,13 +4,13 @@ * Reading from file: glu-proto-auto.orig.h . . . * Destination-Class: gl4java_GLUFuncJauJNI ! */ -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluLookAt ( JNIEnv *env, jobject obj, @@ -40,13 +40,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluOrtho2D ( JNIEnv *env, jobject obj, @@ -66,13 +66,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPerspective ( JNIEnv *env, jobject obj, @@ -92,13 +92,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPickMatrix ( JNIEnv *env, jobject obj, @@ -135,13 +135,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern GLint gluProject ( GLdouble objx , GLdouble objy , GLdouble objz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * winx , GLdouble * winy , GLdouble * winz ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluProject ( JNIEnv *env, jobject obj, @@ -264,13 +264,13 @@ } return ret; } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern GLint gluUnProject ( GLdouble winx , GLdouble winy , GLdouble winz , const GLdouble modelMatrix [ 16 ] , const GLdouble projMatrix [ 16 ] , const GLint viewport [ 4 ] , GLdouble * objx , GLdouble * objy , GLdouble * objz ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluUnProject ( JNIEnv *env, jobject obj, @@ -393,13 +393,13 @@ } return ret; } -
-/**
- * Original Function-Prototype :
- * <pre>
- extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ; - * </pre>
- */
+ +/** + * Original Function-Prototype : + * <pre> + extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const GLbyte * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , GLbyte * dataout ) ; + * </pre> + */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluScaleImage ( JNIEnv *env, jobject obj, @@ -407,7 +407,7 @@ jint widthin, jint heightin, jint typein, - jstring datain, + jbyteArray datain, jint widthout, jint heightout, jint typeout, @@ -415,14 +415,23 @@ { jint ret; - char *ptr4 = NULL; + jboolean isCopiedArray4 = JNI_FALSE; + jbyte *ptr4 = NULL; + static int isWarned4 = 0; jboolean isCopiedArray8 = JNI_FALSE; jbyte *ptr8 = NULL; static int isWarned8 = 0; if ( disp__gluScaleImage == NULL ) return 0; - ptr4 = jnitoolsGetJavaString(env, datain); + if(datain!=NULL) + { + ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, datain, &isCopiedArray4); + if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) { + isWarned4=1; + printf("COPY by gluScaleImage arg: datain"); + } + } if(dataout!=NULL) { ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, dataout, &isCopiedArray8); @@ -436,27 +445,30 @@ (GLsizei) widthin, (GLsizei) heightin, (GLenum) typein, - (const char *) ptr4, + (const GLbyte *) ptr4, (GLsizei) widthout, (GLsizei) heightout, (GLenum) typeout, - (char *) ptr8 + (GLbyte *) ptr8 ); - free(ptr4); + if(datain!=NULL) + { + (*env)->ReleasePrimitiveArrayCritical(env, datain, ptr4, JNI_ABORT); + } if(dataout!=NULL) { (*env)->ReleasePrimitiveArrayCritical(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT); } return ret; } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B ( JNIEnv *env, jobject obj, @@ -744,13 +756,13 @@ } return ret; } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B ( JNIEnv *env, jobject obj, @@ -1052,13 +1064,13 @@ } return ret; } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle ( JNIEnv *env, jobject obj, @@ -1074,13 +1086,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation ( JNIEnv *env, jobject obj, @@ -1096,13 +1108,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricNormals ( JNIEnv *env, jobject obj, @@ -1118,13 +1130,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricTexture ( JNIEnv *env, jobject obj, @@ -1140,13 +1152,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluCylinder ( JNIEnv *env, jobject obj, @@ -1170,13 +1182,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluSphere ( JNIEnv *env, jobject obj, @@ -1196,13 +1208,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluDisk ( JNIEnv *env, jobject obj, @@ -1224,13 +1236,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPartialDisk ( JNIEnv *env, jobject obj, @@ -1256,13 +1268,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices ( JNIEnv *env, jobject obj, @@ -1327,13 +1339,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, viewport, ptr3, JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNurbsProperty ( JNIEnv *env, jobject obj, @@ -1351,13 +1363,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty ( JNIEnv *env, jobject obj, @@ -1390,13 +1402,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluBeginCurve ( GLUnurbsObj * nobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginCurve ( JNIEnv *env, jobject obj, @@ -1410,13 +1422,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluEndCurve ( GLUnurbsObj * nobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndCurve ( JNIEnv *env, jobject obj, @@ -1430,13 +1442,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNurbsCurve ( JNIEnv *env, jobject obj, @@ -1492,13 +1504,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluBeginSurface ( GLUnurbsObj * nobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginSurface ( JNIEnv *env, jobject obj, @@ -1512,13 +1524,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluEndSurface ( GLUnurbsObj * nobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndSurface ( JNIEnv *env, jobject obj, @@ -1532,13 +1544,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluNurbsSurface ( GLUnurbsObj * nobj , GLint sknot_count , GLfloat * sknot , GLint tknot_count , GLfloat * tknot , GLint s_stride , GLint t_stride , GLfloat * ctlarray , GLint sorder , GLint torder , GLenum type ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNurbsSurface ( JNIEnv *env, jobject obj, @@ -1617,13 +1629,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluBeginTrim ( GLUnurbsObj * nobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginTrim ( JNIEnv *env, jobject obj, @@ -1637,13 +1649,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluEndTrim ( GLUnurbsObj * nobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndTrim ( JNIEnv *env, jobject obj, @@ -1657,13 +1669,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPwlCurve ( JNIEnv *env, jobject obj, @@ -1700,13 +1712,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( JNIEnv *env, jobject obj, @@ -1917,13 +1929,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluTessBeginContour ( GLUtesselator * tobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( JNIEnv *env, jobject obj, @@ -1937,13 +1949,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( JNIEnv *env, jobject obj, @@ -2273,13 +2285,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluTessEndContour ( GLUtesselator * tobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( JNIEnv *env, jobject obj, @@ -2293,13 +2305,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluTessEndPolygon ( GLUtesselator * tobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( JNIEnv *env, jobject obj, @@ -2313,13 +2325,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessProperty ( JNIEnv *env, jobject obj, @@ -2337,13 +2349,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessNormal ( JNIEnv *env, jobject obj, @@ -2363,13 +2375,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluGetTessProperty ( JNIEnv *env, jobject obj, @@ -2402,13 +2414,13 @@ (*env)->ReleasePrimitiveArrayCritical(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluBeginPolygon ( GLUtesselator * tobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginPolygon ( JNIEnv *env, jobject obj, @@ -2422,13 +2434,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNextContour ( JNIEnv *env, jobject obj, @@ -2444,13 +2456,13 @@ ); } -
-/**
- * Original Function-Prototype :
- * <pre>
+ +/** + * Original Function-Prototype : + * <pre> extern void gluEndPolygon ( GLUtesselator * tobj ) ; - * </pre>
- */
+ * </pre> + */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndPolygon ( JNIEnv *env, jobject obj, @@ -2464,5 +2476,5 @@ ); } -
-/* C2J Parser Version 2.2: Java program parsed successfully. */
+ +/* C2J Parser Version 2.2: Java program parsed successfully. */ |