From cc7376ee5616743cdd7b7a5c711f054b32ae8e4e Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 18 Jun 2001 23:20:46 +0000 Subject: 2.8.0.0 pre-release cvs only --- C2J/glu-proto-auto.c | 500 +++++++++++++++++++++++++-------------------------- 1 file changed, 247 insertions(+), 253 deletions(-) (limited to 'C2J/glu-proto-auto.c') diff --git a/C2J/glu-proto-auto.c b/C2J/glu-proto-auto.c index d3cebc2..ac767b4 100644 --- a/C2J/glu-proto-auto.c +++ b/C2J/glu-proto-auto.c @@ -1,16 +1,16 @@ /** - * C2J Parser Version 2.1 + * C2J Parser Version 2.2 * Jausoft - Sven Goethel Software Development * Reading from file: glu-proto-auto.orig.h . . . * Destination-Class: gl4java_GLUFuncJauJNI ! */ - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluLookAt ( GLdouble eyex , GLdouble eyey , GLdouble eyez , GLdouble centerx , GLdouble centery , GLdouble centerz , GLdouble upx , GLdouble upy , GLdouble upz ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluLookAt ( JNIEnv *env, jobject obj, @@ -40,13 +40,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluOrtho2D ( GLdouble left , GLdouble right , GLdouble bottom , GLdouble top ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluOrtho2D ( JNIEnv *env, jobject obj, @@ -66,13 +66,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluPerspective ( GLdouble fovy , GLdouble aspect , GLdouble zNear , GLdouble zFar ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPerspective ( JNIEnv *env, jobject obj, @@ -92,13 +92,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluPickMatrix ( GLdouble x , GLdouble y , GLdouble width , GLdouble height , GLint * viewport ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPickMatrix ( JNIEnv *env, jobject obj, @@ -130,13 +130,13 @@ (*env)->ReleaseIntArrayElements(env, viewport, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    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 ) ;
- * 
- */ + *
+ */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluProject ( JNIEnv *env, jobject obj, @@ -226,13 +226,13 @@ } return ret; } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    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 ) ;
- * 
- */ + *
+ */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluUnProject ( JNIEnv *env, jobject obj, @@ -322,13 +322,13 @@ } return ret; } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern GLint gluScaleImage ( GLenum format , GLsizei widthin , GLsizei heightin , GLenum typein , const char * datain , GLsizei widthout , GLsizei heightout , GLenum typeout , char * dataout ) ;
- * 
- */ + *
+ */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluScaleImage ( JNIEnv *env, jobject obj, @@ -336,7 +336,7 @@ jint widthin, jint heightin, jint typein, - jbyteArray datain, + jstring datain, jint widthout, jint heightout, jint typeout, @@ -344,16 +344,13 @@ { jint ret; - jbyte *ptr4 = NULL; + char *ptr4 = NULL; jboolean isCopiedArray8 = JNI_FALSE; jbyte *ptr8 = NULL; if ( disp__gluScaleImage == NULL ) return 0; - if(datain!=NULL) - { - ptr4 = (*env)->GetByteArrayElements(env, datain, 0); - } + ptr4 = jnitoolsGetJavaString(env, datain); if(dataout!=NULL) { ptr8 = (*env)->GetByteArrayElements(env, dataout, &isCopiedArray8); @@ -370,23 +367,20 @@ (char *) ptr8 ); - if(datain!=NULL) - { - (*env)->ReleaseByteArrayElements(env, datain, ptr4, JNI_ABORT); - } + free(ptr4); if(dataout!=NULL) { (*env)->ReleaseByteArrayElements(env, dataout, ptr8, (isCopiedArray8 == JNI_TRUE)?0:JNI_ABORT); } return ret; } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern GLint gluBuild1DMipmaps ( GLenum target , GLint components , GLint width , GLenum format , GLenum type , const void * data ) ;
- * 
- */ + *
+ */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluBuild1DMipmaps__IIIII_3B ( JNIEnv *env, jobject obj, @@ -632,13 +626,13 @@ } return ret; } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern GLint gluBuild2DMipmaps ( GLenum target , GLint components , GLint width , GLint height , GLenum format , GLenum type , const void * data ) ;
- * 
- */ + *
+ */ JNIEXPORT jint JNICALL Java_gl4java_GLUFuncJauJNI_gluBuild2DMipmaps__IIIIII_3B ( JNIEnv *env, jobject obj, @@ -898,13 +892,13 @@ } return ret; } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle ( JNIEnv *env, jobject obj, @@ -920,13 +914,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluQuadricOrientation ( GLUquadricObj * quadObject , GLenum orientation ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation ( JNIEnv *env, jobject obj, @@ -942,13 +936,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluQuadricNormals ( GLUquadricObj * quadObject , GLenum normals ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricNormals ( JNIEnv *env, jobject obj, @@ -964,13 +958,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluQuadricTexture ( GLUquadricObj * quadObject , GLboolean textureCoords ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluQuadricTexture ( JNIEnv *env, jobject obj, @@ -986,13 +980,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluCylinder ( GLUquadricObj * qobj , GLdouble baseRadius , GLdouble topRadius , GLdouble height , GLint slices , GLint stacks ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluCylinder ( JNIEnv *env, jobject obj, @@ -1016,13 +1010,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluSphere ( GLUquadricObj * qobj , GLdouble radius , GLint slices , GLint stacks ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluSphere ( JNIEnv *env, jobject obj, @@ -1042,13 +1036,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluDisk ( JNIEnv *env, jobject obj, @@ -1070,13 +1064,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluPartialDisk ( GLUquadricObj * qobj , GLdouble innerRadius , GLdouble outerRadius , GLint slices , GLint loops , GLdouble startAngle , GLdouble sweepAngle ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPartialDisk ( JNIEnv *env, jobject obj, @@ -1102,13 +1096,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices ( JNIEnv *env, jobject obj, @@ -1155,13 +1149,13 @@ (*env)->ReleaseIntArrayElements(env, viewport, ptr3, JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat value ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNurbsProperty ( JNIEnv *env, jobject obj, @@ -1179,13 +1173,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluGetNurbsProperty ( GLUnurbsObj * nobj , GLenum property , GLfloat * value ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty ( JNIEnv *env, jobject obj, @@ -1213,13 +1207,13 @@ (*env)->ReleaseFloatArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluBeginCurve ( GLUnurbsObj * nobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginCurve ( JNIEnv *env, jobject obj, @@ -1233,13 +1227,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluEndCurve ( GLUnurbsObj * nobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndCurve ( JNIEnv *env, jobject obj, @@ -1253,13 +1247,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluNurbsCurve ( GLUnurbsObj * nobj , GLint nknots , GLfloat * knot , GLint stride , GLfloat * ctlarray , GLint order , GLenum type ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNurbsCurve ( JNIEnv *env, jobject obj, @@ -1305,13 +1299,13 @@ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluBeginSurface ( GLUnurbsObj * nobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginSurface ( JNIEnv *env, jobject obj, @@ -1325,13 +1319,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluEndSurface ( GLUnurbsObj * nobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndSurface ( JNIEnv *env, jobject obj, @@ -1345,13 +1339,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    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 ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNurbsSurface ( JNIEnv *env, jobject obj, @@ -1415,13 +1409,13 @@ (*env)->ReleaseFloatArrayElements(env, ctlarray, ptr7, (isCopiedArray7 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluBeginTrim ( GLUnurbsObj * nobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginTrim ( JNIEnv *env, jobject obj, @@ -1435,13 +1429,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluEndTrim ( GLUnurbsObj * nobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndTrim ( JNIEnv *env, jobject obj, @@ -1455,13 +1449,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluPwlCurve ( GLUnurbsObj * nobj , GLint count , GLfloat * array , GLint stride , GLenum type ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluPwlCurve ( JNIEnv *env, jobject obj, @@ -1493,13 +1487,13 @@ (*env)->ReleaseFloatArrayElements(env, array, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B ( JNIEnv *env, jobject obj, @@ -1675,13 +1669,13 @@ (*env)->ReleaseLongArrayElements(env, polygon_data, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluTessBeginContour ( GLUtesselator * tobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessBeginContour ( JNIEnv *env, jobject obj, @@ -1695,13 +1689,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluTessVertex ( GLUtesselator * tobj , GLdouble coords [ 3 ] , void * vertex_data ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B ( JNIEnv *env, jobject obj, @@ -1961,13 +1955,13 @@ (*env)->ReleaseLongArrayElements(env, vertex_data, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluTessEndContour ( GLUtesselator * tobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessEndContour ( JNIEnv *env, jobject obj, @@ -1981,13 +1975,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluTessEndPolygon ( GLUtesselator * tobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon ( JNIEnv *env, jobject obj, @@ -2001,13 +1995,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble value ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessProperty ( JNIEnv *env, jobject obj, @@ -2025,13 +2019,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluTessNormal ( GLUtesselator * tobj , GLdouble x , GLdouble y , GLdouble z ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluTessNormal ( JNIEnv *env, jobject obj, @@ -2051,13 +2045,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluGetTessProperty ( GLUtesselator * tobj , GLenum which , GLdouble * value ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluGetTessProperty ( JNIEnv *env, jobject obj, @@ -2085,13 +2079,13 @@ (*env)->ReleaseDoubleArrayElements(env, value, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT); } } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluBeginPolygon ( GLUtesselator * tobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluBeginPolygon ( JNIEnv *env, jobject obj, @@ -2105,13 +2099,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluNextContour ( GLUtesselator * tobj , GLenum type ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluNextContour ( JNIEnv *env, jobject obj, @@ -2127,13 +2121,13 @@ ); } - -/** - * Original Function-Prototype : - *
 
+
+/**
+ * Original Function-Prototype :
+ * 
 
    extern void gluEndPolygon ( GLUtesselator * tobj ) ;
- * 
- */ + *
+ */ JNIEXPORT void JNICALL Java_gl4java_GLUFuncJauJNI_gluEndPolygon ( JNIEnv *env, jobject obj, @@ -2147,5 +2141,5 @@ ); } - -/* C2J Parser Version 2.1: Java program parsed successfully. */ + +/* C2J Parser Version 2.2: Java program parsed successfully. */ -- cgit v1.2.3