aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/glu-proto-auto.c
diff options
context:
space:
mode:
Diffstat (limited to 'C2J/glu-proto-auto.c')
-rw-r--r--C2J/glu-proto-auto.c132
1 files changed, 130 insertions, 2 deletions
diff --git a/C2J/glu-proto-auto.c b/C2J/glu-proto-auto.c
index 39c2bb5..d3cebc2 100644
--- a/C2J/glu-proto-auto.c
+++ b/C2J/glu-proto-auto.c
@@ -1,5 +1,5 @@
/**
- * C2J Parser Version 2.0
+ * C2J Parser Version 2.1
* Jausoft - Sven Goethel Software Development
* Reading from file: glu-proto-auto.orig.h . . .
* Destination-Class: gl4java_GLUFuncJauJNI !
@@ -25,6 +25,8 @@
jdouble upz)
{
+ if ( disp__gluLookAt == NULL ) return;
+
disp__gluLookAt (
(GLdouble) eyex,
(GLdouble) eyey,
@@ -54,6 +56,8 @@
jdouble top)
{
+ if ( disp__gluOrtho2D == NULL ) return;
+
disp__gluOrtho2D (
(GLdouble) left,
(GLdouble) right,
@@ -78,6 +82,8 @@
jdouble zFar)
{
+ if ( disp__gluPerspective == NULL ) return;
+
disp__gluPerspective (
(GLdouble) fovy,
(GLdouble) aspect,
@@ -105,6 +111,8 @@
jboolean isCopiedArray4 = JNI_FALSE;
jint *ptr4 = NULL;
+ if ( disp__gluPickMatrix == NULL ) return;
+
if(viewport!=NULL)
{
ptr4 = (*env)->GetIntArrayElements(env, viewport, &isCopiedArray4);
@@ -154,6 +162,8 @@
jboolean isCopiedArray8 = JNI_FALSE;
jdouble *ptr8 = NULL;
+ if ( disp__gluProject == NULL ) return 0;
+
if(modelMatrix!=NULL)
{
ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
@@ -248,6 +258,8 @@
jboolean isCopiedArray8 = JNI_FALSE;
jdouble *ptr8 = NULL;
+ if ( disp__gluUnProject == NULL ) return 0;
+
if(modelMatrix!=NULL)
{
ptr3 = (*env)->GetDoubleArrayElements(env, modelMatrix, 0);
@@ -336,6 +348,8 @@
jboolean isCopiedArray8 = JNI_FALSE;
jbyte *ptr8 = NULL;
+ if ( disp__gluScaleImage == NULL ) return 0;
+
if(datain!=NULL)
{
ptr4 = (*env)->GetByteArrayElements(env, datain, 0);
@@ -387,6 +401,8 @@
jbyte *ptr5 = NULL;
+ if ( disp__gluBuild1DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr5 = (*env)->GetByteArrayElements(env, data, 0);
@@ -420,6 +436,8 @@
jshort *ptr5 = NULL;
+ if ( disp__gluBuild1DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr5 = (*env)->GetShortArrayElements(env, data, 0);
@@ -453,6 +471,8 @@
jint *ptr5 = NULL;
+ if ( disp__gluBuild1DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr5 = (*env)->GetIntArrayElements(env, data, 0);
@@ -486,6 +506,8 @@
jfloat *ptr5 = NULL;
+ if ( disp__gluBuild1DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr5 = (*env)->GetFloatArrayElements(env, data, 0);
@@ -519,6 +541,8 @@
jdouble *ptr5 = NULL;
+ if ( disp__gluBuild1DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr5 = (*env)->GetDoubleArrayElements(env, data, 0);
@@ -552,6 +576,8 @@
jboolean *ptr5 = NULL;
+ if ( disp__gluBuild1DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr5 = (*env)->GetBooleanArrayElements(env, data, 0);
@@ -585,6 +611,8 @@
jlong *ptr5 = NULL;
+ if ( disp__gluBuild1DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr5 = (*env)->GetLongArrayElements(env, data, 0);
@@ -626,6 +654,8 @@
jbyte *ptr6 = NULL;
+ if ( disp__gluBuild2DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr6 = (*env)->GetByteArrayElements(env, data, 0);
@@ -661,6 +691,8 @@
jshort *ptr6 = NULL;
+ if ( disp__gluBuild2DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr6 = (*env)->GetShortArrayElements(env, data, 0);
@@ -696,6 +728,8 @@
jint *ptr6 = NULL;
+ if ( disp__gluBuild2DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr6 = (*env)->GetIntArrayElements(env, data, 0);
@@ -731,6 +765,8 @@
jfloat *ptr6 = NULL;
+ if ( disp__gluBuild2DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr6 = (*env)->GetFloatArrayElements(env, data, 0);
@@ -766,6 +802,8 @@
jdouble *ptr6 = NULL;
+ if ( disp__gluBuild2DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr6 = (*env)->GetDoubleArrayElements(env, data, 0);
@@ -801,6 +839,8 @@
jboolean *ptr6 = NULL;
+ if ( disp__gluBuild2DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr6 = (*env)->GetBooleanArrayElements(env, data, 0);
@@ -836,6 +876,8 @@
jlong *ptr6 = NULL;
+ if ( disp__gluBuild2DMipmaps == NULL ) return 0;
+
if(data!=NULL)
{
ptr6 = (*env)->GetLongArrayElements(env, data, 0);
@@ -870,6 +912,8 @@
jint drawStyle)
{
+ if ( disp__gluQuadricDrawStyle == NULL ) return;
+
disp__gluQuadricDrawStyle (
(GLUquadricObj *) (PointerHolder) quadObject,
(GLenum) drawStyle
@@ -890,6 +934,8 @@
jint orientation)
{
+ if ( disp__gluQuadricOrientation == NULL ) return;
+
disp__gluQuadricOrientation (
(GLUquadricObj *) (PointerHolder) quadObject,
(GLenum) orientation
@@ -910,6 +956,8 @@
jint normals)
{
+ if ( disp__gluQuadricNormals == NULL ) return;
+
disp__gluQuadricNormals (
(GLUquadricObj *) (PointerHolder) quadObject,
(GLenum) normals
@@ -930,6 +978,8 @@
jboolean textureCoords)
{
+ if ( disp__gluQuadricTexture == NULL ) return;
+
disp__gluQuadricTexture (
(GLUquadricObj *) (PointerHolder) quadObject,
(GLboolean) textureCoords
@@ -954,6 +1004,8 @@
jint stacks)
{
+ if ( disp__gluCylinder == NULL ) return;
+
disp__gluCylinder (
(GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) baseRadius,
@@ -980,6 +1032,8 @@
jint stacks)
{
+ if ( disp__gluSphere == NULL ) return;
+
disp__gluSphere (
(GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) radius,
@@ -1005,6 +1059,8 @@
jint loops)
{
+ if ( disp__gluDisk == NULL ) return;
+
disp__gluDisk (
(GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) innerRadius,
@@ -1033,6 +1089,8 @@
jdouble sweepAngle)
{
+ if ( disp__gluPartialDisk == NULL ) return;
+
disp__gluPartialDisk (
(GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) innerRadius,
@@ -1063,6 +1121,8 @@
jfloat *ptr2 = NULL;
jint *ptr3 = NULL;
+ if ( disp__gluLoadSamplingMatrices == NULL ) return;
+
if(modelMatrix!=NULL)
{
ptr1 = (*env)->GetFloatArrayElements(env, modelMatrix, 0);
@@ -1110,6 +1170,8 @@
jfloat value)
{
+ if ( disp__gluNurbsProperty == NULL ) return;
+
disp__gluNurbsProperty (
(GLUnurbsObj *) (PointerHolder) nobj,
(GLenum) property,
@@ -1134,6 +1196,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jfloat *ptr2 = NULL;
+ if ( disp__gluGetNurbsProperty == NULL ) return;
+
if(value!=NULL)
{
ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
@@ -1162,6 +1226,8 @@
jlong nobj)
{
+ if ( disp__gluBeginCurve == NULL ) return;
+
disp__gluBeginCurve (
(GLUnurbsObj *) (PointerHolder) nobj
);
@@ -1180,6 +1246,8 @@
jlong nobj)
{
+ if ( disp__gluEndCurve == NULL ) return;
+
disp__gluEndCurve (
(GLUnurbsObj *) (PointerHolder) nobj
);
@@ -1208,6 +1276,8 @@
jboolean isCopiedArray4 = JNI_FALSE;
jfloat *ptr4 = NULL;
+ if ( disp__gluNurbsCurve == NULL ) return;
+
if(knot!=NULL)
{
ptr2 = (*env)->GetFloatArrayElements(env, knot, &isCopiedArray2);
@@ -1248,6 +1318,8 @@
jlong nobj)
{
+ if ( disp__gluBeginSurface == NULL ) return;
+
disp__gluBeginSurface (
(GLUnurbsObj *) (PointerHolder) nobj
);
@@ -1266,6 +1338,8 @@
jlong nobj)
{
+ if ( disp__gluEndSurface == NULL ) return;
+
disp__gluEndSurface (
(GLUnurbsObj *) (PointerHolder) nobj
);
@@ -1300,6 +1374,8 @@
jboolean isCopiedArray7 = JNI_FALSE;
jfloat *ptr7 = NULL;
+ if ( disp__gluNurbsSurface == NULL ) return;
+
if(sknot!=NULL)
{
ptr2 = (*env)->GetFloatArrayElements(env, sknot, &isCopiedArray2);
@@ -1352,6 +1428,8 @@
jlong nobj)
{
+ if ( disp__gluBeginTrim == NULL ) return;
+
disp__gluBeginTrim (
(GLUnurbsObj *) (PointerHolder) nobj
);
@@ -1370,6 +1448,8 @@
jlong nobj)
{
+ if ( disp__gluEndTrim == NULL ) return;
+
disp__gluEndTrim (
(GLUnurbsObj *) (PointerHolder) nobj
);
@@ -1394,6 +1474,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jfloat *ptr2 = NULL;
+ if ( disp__gluPwlCurve == NULL ) return;
+
if(array!=NULL)
{
ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
@@ -1427,6 +1509,8 @@
jboolean isCopiedArray1 = JNI_FALSE;
jbyte *ptr1 = NULL;
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
if(polygon_data!=NULL)
{
ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
@@ -1450,6 +1534,8 @@
jboolean isCopiedArray1 = JNI_FALSE;
jshort *ptr1 = NULL;
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
if(polygon_data!=NULL)
{
ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
@@ -1473,6 +1559,8 @@
jboolean isCopiedArray1 = JNI_FALSE;
jint *ptr1 = NULL;
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
if(polygon_data!=NULL)
{
ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
@@ -1496,6 +1584,8 @@
jboolean isCopiedArray1 = JNI_FALSE;
jfloat *ptr1 = NULL;
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
if(polygon_data!=NULL)
{
ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
@@ -1519,6 +1609,8 @@
jboolean isCopiedArray1 = JNI_FALSE;
jdouble *ptr1 = NULL;
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
if(polygon_data!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
@@ -1542,6 +1634,8 @@
jboolean isCopiedArray1 = JNI_FALSE;
jboolean *ptr1 = NULL;
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
if(polygon_data!=NULL)
{
ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
@@ -1565,6 +1659,8 @@
jboolean isCopiedArray1 = JNI_FALSE;
jlong *ptr1 = NULL;
+ if ( disp__gluTessBeginPolygon == NULL ) return;
+
if(polygon_data!=NULL)
{
ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
@@ -1592,6 +1688,8 @@
jlong tobj)
{
+ if ( disp__gluTessBeginContour == NULL ) return;
+
disp__gluTessBeginContour (
(GLUtesselator *) (PointerHolder) tobj
);
@@ -1616,6 +1714,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jbyte *ptr2 = NULL;
+ if ( disp__gluTessVertex == NULL ) return;
+
if(coords!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
@@ -1651,6 +1751,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jshort *ptr2 = NULL;
+ if ( disp__gluTessVertex == NULL ) return;
+
if(coords!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
@@ -1686,6 +1788,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jint *ptr2 = NULL;
+ if ( disp__gluTessVertex == NULL ) return;
+
if(coords!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
@@ -1721,6 +1825,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jfloat *ptr2 = NULL;
+ if ( disp__gluTessVertex == NULL ) return;
+
if(coords!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
@@ -1756,6 +1862,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jdouble *ptr2 = NULL;
+ if ( disp__gluTessVertex == NULL ) return;
+
if(coords!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
@@ -1791,6 +1899,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jboolean *ptr2 = NULL;
+ if ( disp__gluTessVertex == NULL ) return;
+
if(coords!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
@@ -1826,6 +1936,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jlong *ptr2 = NULL;
+ if ( disp__gluTessVertex == NULL ) return;
+
if(coords!=NULL)
{
ptr1 = (*env)->GetDoubleArrayElements(env, coords, &isCopiedArray1);
@@ -1862,6 +1974,8 @@
jlong tobj)
{
+ if ( disp__gluTessEndContour == NULL ) return;
+
disp__gluTessEndContour (
(GLUtesselator *) (PointerHolder) tobj
);
@@ -1880,6 +1994,8 @@
jlong tobj)
{
+ if ( disp__gluTessEndPolygon == NULL ) return;
+
disp__gluTessEndPolygon (
(GLUtesselator *) (PointerHolder) tobj
);
@@ -1900,6 +2016,8 @@
jdouble value)
{
+ if ( disp__gluTessProperty == NULL ) return;
+
disp__gluTessProperty (
(GLUtesselator *) (PointerHolder) tobj,
(GLenum) which,
@@ -1923,6 +2041,8 @@
jdouble z)
{
+ if ( disp__gluTessNormal == NULL ) return;
+
disp__gluTessNormal (
(GLUtesselator *) (PointerHolder) tobj,
(GLdouble) x,
@@ -1948,6 +2068,8 @@
jboolean isCopiedArray2 = JNI_FALSE;
jdouble *ptr2 = NULL;
+ if ( disp__gluGetTessProperty == NULL ) return;
+
if(value!=NULL)
{
ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
@@ -1976,6 +2098,8 @@
jlong tobj)
{
+ if ( disp__gluBeginPolygon == NULL ) return;
+
disp__gluBeginPolygon (
(GLUtesselator *) (PointerHolder) tobj
);
@@ -1995,6 +2119,8 @@
jint type)
{
+ if ( disp__gluNextContour == NULL ) return;
+
disp__gluNextContour (
(GLUtesselator *) (PointerHolder) tobj,
(GLenum) type
@@ -2014,10 +2140,12 @@
jlong tobj)
{
+ if ( disp__gluEndPolygon == NULL ) return;
+
disp__gluEndPolygon (
(GLUtesselator *) (PointerHolder) tobj
);
}
-/* C2J Parser Version 2.0: Java program parsed successfully. */
+/* C2J Parser Version 2.1: Java program parsed successfully. */