aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/glu-proto-auto-tst-jni12.c
diff options
context:
space:
mode:
Diffstat (limited to 'C2J/glu-proto-auto-tst-jni12.c')
-rw-r--r--C2J/glu-proto-auto-tst-jni12.c506
1 files changed, 247 insertions, 259 deletions
diff --git a/C2J/glu-proto-auto-tst-jni12.c b/C2J/glu-proto-auto-tst-jni12.c
index ad16fd4..fb1fb9f 100644
--- a/C2J/glu-proto-auto-tst-jni12.c
+++ b/C2J/glu-proto-auto-tst-jni12.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 :
- * <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>
+
+/**
+ * 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>
- */
+ * </pre>
+ */
JNIEXPORT jint JNICALL
Java_gl4java_GLUFuncJauJNI_gluScaleImage (
JNIEnv *env, jobject obj,
@@ -407,7 +407,7 @@
jint widthin,
jint heightin,
jint typein,
- jbyteArray datain,
+ jstring datain,
jint widthout,
jint heightout,
jint typeout,
@@ -415,23 +415,14 @@
{
jint ret;
- jboolean isCopiedArray4 = JNI_FALSE;
- jbyte *ptr4 = NULL;
- static int isWarned4 = 0;
+ char *ptr4 = NULL;
jboolean isCopiedArray8 = JNI_FALSE;
jbyte *ptr8 = NULL;
static int isWarned8 = 0;
if ( disp__gluScaleImage == NULL ) return 0;
- if(datain!=NULL)
- {
- ptr4 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, datain, &isCopiedArray4);
- if( isCopiedArray4 == JNI_TRUE && isWarned4==0 ) {
- isWarned4=1;
- printf("COPY by gluScaleImage arg: datain");
- }
- }
+ ptr4 = jnitoolsGetJavaString(env, datain);
if(dataout!=NULL)
{
ptr8 = (jbyte *) (*env)->GetPrimitiveArrayCritical(env, dataout, &isCopiedArray8);
@@ -452,23 +443,20 @@
(char *) ptr8
);
- if(datain!=NULL)
- {
- (*env)->ReleasePrimitiveArrayCritical(env, datain, ptr4, JNI_ABORT);
- }
+ free(ptr4);
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,
@@ -756,13 +744,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,
@@ -1064,13 +1052,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,
@@ -1086,13 +1074,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,
@@ -1108,13 +1096,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,
@@ -1130,13 +1118,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,
@@ -1152,13 +1140,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,
@@ -1182,13 +1170,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,
@@ -1208,13 +1196,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,
@@ -1236,13 +1224,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,
@@ -1268,13 +1256,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,
@@ -1339,13 +1327,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,
@@ -1363,13 +1351,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,
@@ -1402,13 +1390,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,
@@ -1422,13 +1410,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,
@@ -1442,13 +1430,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,
@@ -1504,13 +1492,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,
@@ -1524,13 +1512,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,
@@ -1544,13 +1532,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,
@@ -1629,13 +1617,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,
@@ -1649,13 +1637,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,
@@ -1669,13 +1657,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,
@@ -1712,13 +1700,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,
@@ -1929,13 +1917,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,
@@ -1949,13 +1937,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,
@@ -2285,13 +2273,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,
@@ -2305,13 +2293,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,
@@ -2325,13 +2313,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,
@@ -2349,13 +2337,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,
@@ -2375,13 +2363,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,
@@ -2414,13 +2402,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,
@@ -2434,13 +2422,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,
@@ -2456,13 +2444,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,
@@ -2476,5 +2464,5 @@
);
}
-
-/* C2J Parser Version 2.1: Java program parsed successfully. */
+
+/* C2J Parser Version 2.2: Java program parsed successfully. */