aboutsummaryrefslogtreecommitdiffstats
path: root/CNativeCode/OpenGLU_JauJNI_funcs.c
diff options
context:
space:
mode:
Diffstat (limited to 'CNativeCode/OpenGLU_JauJNI_funcs.c')
-rw-r--r--CNativeCode/OpenGLU_JauJNI_funcs.c381
1 files changed, 164 insertions, 217 deletions
diff --git a/CNativeCode/OpenGLU_JauJNI_funcs.c b/CNativeCode/OpenGLU_JauJNI_funcs.c
index 55b3351..1fda2a3 100644
--- a/CNativeCode/OpenGLU_JauJNI_funcs.c
+++ b/CNativeCode/OpenGLU_JauJNI_funcs.c
@@ -16,40 +16,14 @@
* September 1997
*/
-/*
- * need to include the JAVA internal header files for macros and function
- * prototypes required to maipulated JAVA data structures and functions
- *
- * StubPreamble.h includes the structure and macro definitions neede to
- * convert JAVA data structures into C data structures.
- *
- */
-
-#ifdef _WIN32_
- #include "winstuff.h"
-#endif
-
-#include <stdio.h>
-#include <stdlib.h>
-
-#include <jni.h>
-
-/*
- * the next thing to include are special headers that were created by
- * JAVAH. They include the C structure definitions for the JAVA classes
- */
-#include "gl4java_GLUFuncJauJNI.h"
/*--------------------------------------------------------------------------
* here on in is just regular apple pie C
*/
-/*
- * next put any specific header files that are necessary to implement
- * this native code
- */
-#include<GL/gl.h>
-#include <GL/glu.h>
+#include "OpenGL_misc.h"
+
+#include "gl4java_GLUFuncJauJNI.h"
#include "GLCallbackHelperJNI.h"
#include "GLUCallbackJNI.h"
@@ -103,7 +77,7 @@ Java_gl4java_GLUFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
}
static void _AddCallbackNode(JNIEnv *env,
- jint qnt_obj, jint which,
+ jlong qnt_obj, jint which,
jobject methodClassInstance,
jstring methodName,
jstring signature,
@@ -122,7 +96,7 @@ static void _AddCallbackNode(JNIEnv *env,
AddCallbackNode(env, methodClassInstance, strMethodName, strSignature,
arrayLen1, arrayLen2, arrayLen3,
arrayLen4, arrayLen5,
- (void *)qnt_obj, which, glx);
+ (void *)((PointerHolder)qnt_obj), which, glx);
free(strMethodName);
free(strSignature);
}
@@ -130,7 +104,7 @@ static void _AddCallbackNode(JNIEnv *env,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
- jint qobj, jint which,
+ jlong qobj, jint which,
jobject methodClassInstance,
jstring methodName,
jstring signature)
@@ -138,8 +112,8 @@ Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
switch(which)
{
case GLU_ERROR:
- gluQuadricCallback((void *)qobj, which,
- cbf_GLU_ERROR );
+ gluQuadricCallback((void *)((PointerHolder)qobj),
+ which, cbf_GLU_ERROR );
break;
default:
jnitoolsThrowByName(env, "java/lang/IllegalArgumentException", "Wrong Callback-Function type (\"which\") !");
@@ -154,7 +128,7 @@ Java_gl4java_GLUFuncJauJNI_gluQuadricCallback( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
- jint nobj, jint which,
+ jlong nobj, jint which,
jobject methodClassInstance,
jstring methodName,
jstring signature)
@@ -162,7 +136,7 @@ Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
switch(which)
{
case GLU_ERROR:
- gluNurbsCallback((void *)nobj, which,
+ gluNurbsCallback((void *)((PointerHolder)nobj), which,
cbf_GLU_ERROR );
break;
default:
@@ -177,7 +151,7 @@ Java_gl4java_GLUFuncJauJNI_gluNurbsCallback( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
- jint tobj, jint which,
+ jlong tobj, jint which,
jobject methodClassInstance,
jstring methodName,
jstring signature,
@@ -190,51 +164,63 @@ Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
switch(which)
{
case GLU_TESS_BEGIN:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_BEGIN );
break;
case GLU_TESS_BEGIN_DATA:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_BEGIN_DATA );
break;
case GLU_TESS_EDGE_FLAG:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_EDGE_FLAG );
break;
case GLU_TESS_EDGE_FLAG_DATA:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_EDGE_FLAG_DATA );
break;
case GLU_TESS_VERTEX:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_VERTEX );
break;
case GLU_TESS_VERTEX_DATA:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_VERTEX_DATA );
break;
case GLU_TESS_END:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_END );
break;
case GLU_TESS_END_DATA:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_END_DATA );
break;
case GLU_TESS_ERROR:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_ERROR );
break;
case GLU_TESS_ERROR_DATA:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_ERROR_DATA );
break;
case GLU_TESS_COMBINE:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_COMBINE );
break;
case GLU_TESS_COMBINE_DATA:
- gluTessCallback((GLUtesselator *)tobj, which,
+ gluTessCallback((GLUtesselator *)((PointerHolder)tobj),
+ which,
cbf_GLU_TESS_COMBINE_DATA );
break;
default:
@@ -250,30 +236,48 @@ Java_gl4java_GLUFuncJauJNI_gluTessCallback( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluDeleteQuadric( JNIEnv *env, jobject obj,
- jint qobj )
+ jlong qobj )
{
- gluDeleteQuadric((void *)qobj);
- RemoveCallbackNodes((void *)qobj);
+ gluDeleteQuadric((void *)((PointerHolder)qobj));
+ RemoveCallbackNodes((void *)((PointerHolder)qobj));
}
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluDeleteNurbsRenderer( JNIEnv *env, jobject obj,
- jint nobj )
+ jlong nobj )
{
- gluDeleteNurbsRenderer((void *)nobj);
- RemoveCallbackNodes((void *)nobj);
+ gluDeleteNurbsRenderer((void *)((PointerHolder)nobj));
+ RemoveCallbackNodes((void *)((PointerHolder)nobj));
}
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
- jint tobj )
+ jlong tobj )
+{
+ gluDeleteTess((GLUtesselator *)((PointerHolder)tobj));
+ RemoveCallbackNodes((void *)((PointerHolder)tobj));
+}
+
+JNIEXPORT jlong JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNewQuadric( JNIEnv *env, jobject obj)
+{
+ return (jlong)((PointerHolder)gluNewQuadric());
+}
+
+JNIEXPORT jlong JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer( JNIEnv *env, jobject obj)
+{
+ return (jlong)((PointerHolder)gluNewNurbsRenderer());
+}
+
+JNIEXPORT jlong JNICALL
+Java_gl4java_GLUFuncJauJNI_gluNewTess( JNIEnv *env, jobject obj)
{
- gluDeleteTess((GLUtesselator *)tobj);
- RemoveCallbackNodes((void *)tobj);
+ return (jlong)((PointerHolder)gluNewTess());
}
/**
- * C2J Parser Version 1.4 Beta
+ * C2J Parser Version 1.5 Beta
* Jausoft - Sven Goethel Software Development
* Reading from file: glu-proto-auto.orig.h . . .
* Destination-Class: gl4java_GLUFuncJauJNI !
@@ -1134,37 +1138,18 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
/**
* Original Function-Prototype :
* <pre>
- extern GLUquadricObj * gluNewQuadric ( void ) ;
- * </pre>
- */
- JNIEXPORT jint JNICALL
- Java_gl4java_GLUFuncJauJNI_gluNewQuadric (
- JNIEnv *env, jobject obj)
- {
- jint ret;
-
-
- ret = (jint) gluNewQuadric (
- );
-
- return ret;
- }
-
-/**
- * Original Function-Prototype :
- * <pre>
extern void gluQuadricDrawStyle ( GLUquadricObj * quadObject , GLenum drawStyle ) ;
* </pre>
*/
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluQuadricDrawStyle (
JNIEnv *env, jobject obj,
- jint quadObject,
+ jlong quadObject,
jint drawStyle)
{
gluQuadricDrawStyle (
- (GLUquadricObj *) quadObject,
+ (GLUquadricObj *) (PointerHolder) quadObject,
(GLenum) drawStyle
);
@@ -1179,12 +1164,12 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluQuadricOrientation (
JNIEnv *env, jobject obj,
- jint quadObject,
+ jlong quadObject,
jint orientation)
{
gluQuadricOrientation (
- (GLUquadricObj *) quadObject,
+ (GLUquadricObj *) (PointerHolder) quadObject,
(GLenum) orientation
);
@@ -1199,12 +1184,12 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluQuadricNormals (
JNIEnv *env, jobject obj,
- jint quadObject,
+ jlong quadObject,
jint normals)
{
gluQuadricNormals (
- (GLUquadricObj *) quadObject,
+ (GLUquadricObj *) (PointerHolder) quadObject,
(GLenum) normals
);
@@ -1219,12 +1204,12 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluQuadricTexture (
JNIEnv *env, jobject obj,
- jint quadObject,
+ jlong quadObject,
jboolean textureCoords)
{
gluQuadricTexture (
- (GLUquadricObj *) quadObject,
+ (GLUquadricObj *) (PointerHolder) quadObject,
(GLboolean) textureCoords
);
@@ -1239,7 +1224,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluCylinder (
JNIEnv *env, jobject obj,
- jint qobj,
+ jlong qobj,
jdouble baseRadius,
jdouble topRadius,
jdouble height,
@@ -1248,7 +1233,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
{
gluCylinder (
- (GLUquadricObj *) qobj,
+ (GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) baseRadius,
(GLdouble) topRadius,
(GLdouble) height,
@@ -1267,14 +1252,14 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluSphere (
JNIEnv *env, jobject obj,
- jint qobj,
+ jlong qobj,
jdouble radius,
jint slices,
jint stacks)
{
gluSphere (
- (GLUquadricObj *) qobj,
+ (GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) radius,
(GLint) slices,
(GLint) stacks
@@ -1291,7 +1276,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluDisk (
JNIEnv *env, jobject obj,
- jint qobj,
+ jlong qobj,
jdouble innerRadius,
jdouble outerRadius,
jint slices,
@@ -1299,7 +1284,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
{
gluDisk (
- (GLUquadricObj *) qobj,
+ (GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) innerRadius,
(GLdouble) outerRadius,
(GLint) slices,
@@ -1317,7 +1302,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluPartialDisk (
JNIEnv *env, jobject obj,
- jint qobj,
+ jlong qobj,
jdouble innerRadius,
jdouble outerRadius,
jint slices,
@@ -1327,7 +1312,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
{
gluPartialDisk (
- (GLUquadricObj *) qobj,
+ (GLUquadricObj *) (PointerHolder) qobj,
(GLdouble) innerRadius,
(GLdouble) outerRadius,
(GLint) slices,
@@ -1341,32 +1326,13 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
/**
* Original Function-Prototype :
* <pre>
- extern GLUnurbsObj * gluNewNurbsRenderer ( void ) ;
- * </pre>
- */
- JNIEXPORT jint JNICALL
- Java_gl4java_GLUFuncJauJNI_gluNewNurbsRenderer (
- JNIEnv *env, jobject obj)
- {
- jint ret;
-
-
- ret = (jint) gluNewNurbsRenderer (
- );
-
- return ret;
- }
-
-/**
- * Original Function-Prototype :
- * <pre>
extern void gluLoadSamplingMatrices ( GLUnurbsObj * nobj , const GLfloat modelMatrix [ 16 ] , const GLfloat projMatrix [ 16 ] , const GLint viewport [ 4 ] ) ;
* </pre>
*/
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluLoadSamplingMatrices (
JNIEnv *env, jobject obj,
- jint nobj,
+ jlong nobj,
jfloatArray modelMatrix,
jfloatArray projMatrix,
jintArray viewport)
@@ -1388,7 +1354,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr3 = (*env)->GetIntArrayElements(env, viewport, 0);
}
gluLoadSamplingMatrices (
- (GLUnurbsObj *) nobj,
+ (GLUnurbsObj *) (PointerHolder) nobj,
(const GLfloat *) ptr1,
(const GLfloat *) ptr2,
(const GLint *) ptr3
@@ -1417,13 +1383,13 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluNurbsProperty (
JNIEnv *env, jobject obj,
- jint nobj,
+ jlong nobj,
jint property,
jfloat value)
{
gluNurbsProperty (
- (GLUnurbsObj *) nobj,
+ (GLUnurbsObj *) (PointerHolder) nobj,
(GLenum) property,
(GLfloat) value
);
@@ -1439,7 +1405,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluGetNurbsProperty (
JNIEnv *env, jobject obj,
- jint nobj,
+ jlong nobj,
jint property,
jfloatArray value)
{
@@ -1451,7 +1417,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetFloatArrayElements(env, value, &isCopiedArray2);
}
gluGetNurbsProperty (
- (GLUnurbsObj *) nobj,
+ (GLUnurbsObj *) (PointerHolder) nobj,
(GLenum) property,
(GLfloat *) ptr2
);
@@ -1471,11 +1437,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluBeginCurve (
JNIEnv *env, jobject obj,
- jint nobj)
+ jlong nobj)
{
gluBeginCurve (
- (GLUnurbsObj *) nobj
+ (GLUnurbsObj *) (PointerHolder) nobj
);
}
@@ -1489,11 +1455,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluEndCurve (
JNIEnv *env, jobject obj,
- jint nobj)
+ jlong nobj)
{
gluEndCurve (
- (GLUnurbsObj *) nobj
+ (GLUnurbsObj *) (PointerHolder) nobj
);
}
@@ -1507,7 +1473,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluNurbsCurve (
JNIEnv *env, jobject obj,
- jint nobj,
+ jlong nobj,
jint nknots,
jfloatArray knot,
jint stride,
@@ -1529,7 +1495,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr4 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray4);
}
gluNurbsCurve (
- (GLUnurbsObj *) nobj,
+ (GLUnurbsObj *) (PointerHolder) nobj,
(GLint) nknots,
(GLfloat *) ptr2,
(GLint) stride,
@@ -1557,11 +1523,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluBeginSurface (
JNIEnv *env, jobject obj,
- jint nobj)
+ jlong nobj)
{
gluBeginSurface (
- (GLUnurbsObj *) nobj
+ (GLUnurbsObj *) (PointerHolder) nobj
);
}
@@ -1575,11 +1541,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluEndSurface (
JNIEnv *env, jobject obj,
- jint nobj)
+ jlong nobj)
{
gluEndSurface (
- (GLUnurbsObj *) nobj
+ (GLUnurbsObj *) (PointerHolder) nobj
);
}
@@ -1593,7 +1559,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluNurbsSurface (
JNIEnv *env, jobject obj,
- jint nobj,
+ jlong nobj,
jint sknot_count,
jfloatArray sknot,
jint tknot_count,
@@ -1625,7 +1591,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr7 = (*env)->GetFloatArrayElements(env, ctlarray, &isCopiedArray7);
}
gluNurbsSurface (
- (GLUnurbsObj *) nobj,
+ (GLUnurbsObj *) (PointerHolder) nobj,
(GLint) sknot_count,
(GLfloat *) ptr2,
(GLint) tknot_count,
@@ -1661,11 +1627,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluBeginTrim (
JNIEnv *env, jobject obj,
- jint nobj)
+ jlong nobj)
{
gluBeginTrim (
- (GLUnurbsObj *) nobj
+ (GLUnurbsObj *) (PointerHolder) nobj
);
}
@@ -1679,11 +1645,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluEndTrim (
JNIEnv *env, jobject obj,
- jint nobj)
+ jlong nobj)
{
gluEndTrim (
- (GLUnurbsObj *) nobj
+ (GLUnurbsObj *) (PointerHolder) nobj
);
}
@@ -1697,7 +1663,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluPwlCurve (
JNIEnv *env, jobject obj,
- jint nobj,
+ jlong nobj,
jint count,
jfloatArray array,
jint stride,
@@ -1711,7 +1677,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetFloatArrayElements(env, array, &isCopiedArray2);
}
gluPwlCurve (
- (GLUnurbsObj *) nobj,
+ (GLUnurbsObj *) (PointerHolder) nobj,
(GLint) count,
(GLfloat *) ptr2,
(GLint) stride,
@@ -1727,32 +1693,13 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
/**
* Original Function-Prototype :
* <pre>
- extern GLUtesselator * gluNewTess ( void ) ;
- * </pre>
- */
- JNIEXPORT jint JNICALL
- Java_gl4java_GLUFuncJauJNI_gluNewTess (
- JNIEnv *env, jobject obj)
- {
- jint ret;
-
-
- ret = (jint) gluNewTess (
- );
-
- return ret;
- }
-
-/**
- * Original Function-Prototype :
- * <pre>
extern void gluTessBeginPolygon ( GLUtesselator * tobj , void * polygon_data ) ;
* </pre>
*/
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3B (
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3B (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jbyteArray polygon_data)
{
jboolean isCopiedArray1 = JNI_FALSE;
@@ -1763,7 +1710,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr1 = (*env)->GetByteArrayElements(env, polygon_data, &isCopiedArray1);
}
gluTessBeginPolygon (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(void *) ptr1
);
@@ -1773,9 +1720,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3S (
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3S (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jshortArray polygon_data)
{
jboolean isCopiedArray1 = JNI_FALSE;
@@ -1786,7 +1733,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr1 = (*env)->GetShortArrayElements(env, polygon_data, &isCopiedArray1);
}
gluTessBeginPolygon (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(void *) ptr1
);
@@ -1796,9 +1743,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3I (
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3I (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jintArray polygon_data)
{
jboolean isCopiedArray1 = JNI_FALSE;
@@ -1809,7 +1756,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr1 = (*env)->GetIntArrayElements(env, polygon_data, &isCopiedArray1);
}
gluTessBeginPolygon (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(void *) ptr1
);
@@ -1819,9 +1766,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3F (
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3F (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jfloatArray polygon_data)
{
jboolean isCopiedArray1 = JNI_FALSE;
@@ -1832,7 +1779,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr1 = (*env)->GetFloatArrayElements(env, polygon_data, &isCopiedArray1);
}
gluTessBeginPolygon (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(void *) ptr1
);
@@ -1842,9 +1789,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3D (
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3D (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray polygon_data)
{
jboolean isCopiedArray1 = JNI_FALSE;
@@ -1855,7 +1802,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr1 = (*env)->GetDoubleArrayElements(env, polygon_data, &isCopiedArray1);
}
gluTessBeginPolygon (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(void *) ptr1
);
@@ -1865,9 +1812,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3Z (
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3Z (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jbooleanArray polygon_data)
{
jboolean isCopiedArray1 = JNI_FALSE;
@@ -1878,7 +1825,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr1 = (*env)->GetBooleanArrayElements(env, polygon_data, &isCopiedArray1);
}
gluTessBeginPolygon (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(void *) ptr1
);
@@ -1888,9 +1835,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__I_3J (
+ Java_gl4java_GLUFuncJauJNI_gluTessBeginPolygon__J_3J (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jlongArray polygon_data)
{
jboolean isCopiedArray1 = JNI_FALSE;
@@ -1901,7 +1848,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr1 = (*env)->GetLongArrayElements(env, polygon_data, &isCopiedArray1);
}
gluTessBeginPolygon (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(void *) ptr1
);
@@ -1920,11 +1867,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluTessBeginContour (
JNIEnv *env, jobject obj,
- jint tobj)
+ jlong tobj)
{
gluTessBeginContour (
- (GLUtesselator *) tobj
+ (GLUtesselator *) (PointerHolder) tobj
);
}
@@ -1936,9 +1883,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
* </pre>
*/
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3B (
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3B (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray coords,
jbyteArray vertex_data)
{
@@ -1956,7 +1903,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetByteArrayElements(env, vertex_data, &isCopiedArray2);
}
gluTessVertex (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble *) ptr1,
(void *) ptr2
);
@@ -1971,9 +1918,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3S (
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3S (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray coords,
jshortArray vertex_data)
{
@@ -1991,7 +1938,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetShortArrayElements(env, vertex_data, &isCopiedArray2);
}
gluTessVertex (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble *) ptr1,
(void *) ptr2
);
@@ -2006,9 +1953,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3I (
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3I (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray coords,
jintArray vertex_data)
{
@@ -2026,7 +1973,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetIntArrayElements(env, vertex_data, &isCopiedArray2);
}
gluTessVertex (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble *) ptr1,
(void *) ptr2
);
@@ -2041,9 +1988,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3F (
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3F (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray coords,
jfloatArray vertex_data)
{
@@ -2061,7 +2008,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetFloatArrayElements(env, vertex_data, &isCopiedArray2);
}
gluTessVertex (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble *) ptr1,
(void *) ptr2
);
@@ -2076,9 +2023,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3D (
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3D (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray coords,
jdoubleArray vertex_data)
{
@@ -2096,7 +2043,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetDoubleArrayElements(env, vertex_data, &isCopiedArray2);
}
gluTessVertex (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble *) ptr1,
(void *) ptr2
);
@@ -2111,9 +2058,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3Z (
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3Z (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray coords,
jbooleanArray vertex_data)
{
@@ -2131,7 +2078,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetBooleanArrayElements(env, vertex_data, &isCopiedArray2);
}
gluTessVertex (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble *) ptr1,
(void *) ptr2
);
@@ -2146,9 +2093,9 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
}
}
JNIEXPORT void JNICALL
- Java_gl4java_GLUFuncJauJNI_gluTessVertex__I_3D_3J (
+ Java_gl4java_GLUFuncJauJNI_gluTessVertex__J_3D_3J (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdoubleArray coords,
jlongArray vertex_data)
{
@@ -2166,7 +2113,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetLongArrayElements(env, vertex_data, &isCopiedArray2);
}
gluTessVertex (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble *) ptr1,
(void *) ptr2
);
@@ -2190,11 +2137,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluTessEndContour (
JNIEnv *env, jobject obj,
- jint tobj)
+ jlong tobj)
{
gluTessEndContour (
- (GLUtesselator *) tobj
+ (GLUtesselator *) (PointerHolder) tobj
);
}
@@ -2208,11 +2155,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluTessEndPolygon (
JNIEnv *env, jobject obj,
- jint tobj)
+ jlong tobj)
{
gluTessEndPolygon (
- (GLUtesselator *) tobj
+ (GLUtesselator *) (PointerHolder) tobj
);
}
@@ -2226,13 +2173,13 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluTessProperty (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jint which,
jdouble value)
{
gluTessProperty (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLenum) which,
(GLdouble) value
);
@@ -2248,14 +2195,14 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluTessNormal (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jdouble x,
jdouble y,
jdouble z)
{
gluTessNormal (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLdouble) x,
(GLdouble) y,
(GLdouble) z
@@ -2272,7 +2219,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluGetTessProperty (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jint which,
jdoubleArray value)
{
@@ -2284,7 +2231,7 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
ptr2 = (*env)->GetDoubleArrayElements(env, value, &isCopiedArray2);
}
gluGetTessProperty (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLenum) which,
(GLdouble *) ptr2
);
@@ -2304,11 +2251,11 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluBeginPolygon (
JNIEnv *env, jobject obj,
- jint tobj)
+ jlong tobj)
{
gluBeginPolygon (
- (GLUtesselator *) tobj
+ (GLUtesselator *) (PointerHolder) tobj
);
}
@@ -2322,12 +2269,12 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluNextContour (
JNIEnv *env, jobject obj,
- jint tobj,
+ jlong tobj,
jint type)
{
gluNextContour (
- (GLUtesselator *) tobj,
+ (GLUtesselator *) (PointerHolder) tobj,
(GLenum) type
);
@@ -2342,13 +2289,13 @@ Java_gl4java_GLUFuncJauJNI_gluDeleteTess( JNIEnv *env, jobject obj,
JNIEXPORT void JNICALL
Java_gl4java_GLUFuncJauJNI_gluEndPolygon (
JNIEnv *env, jobject obj,
- jint tobj)
+ jlong tobj)
{
gluEndPolygon (
- (GLUtesselator *) tobj
+ (GLUtesselator *) (PointerHolder) tobj
);
}
-/* C2J Parser Version 1.4 Beta: Java program parsed successfully. */
+/* C2J Parser Version 1.5 Beta: Java program parsed successfully. */