aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2001-09-26 00:25:53 +0000
committerSven Gothel <[email protected]>2001-09-26 00:25:53 +0000
commit770388782ee969cfc6774cefaa4c2025213d6f0f (patch)
tree9bf9f4c2dd43f94c53ff8ad23fc80bd9a1c8e661
parent744ceb659539753d571dc46aebb601d4a2f0b401 (diff)
-rwxr-xr-xC2J/glf-enum-auto.java30
-rwxr-xr-xC2J/glf-proto-auto-jni.c1272
-rwxr-xr-xC2J/glf-proto-auto-jni12.c1272
-rwxr-xr-xC2J/glf-proto-auto.java615
-rwxr-xr-xgl4java/applet/SimpleGLApplet1.java173
5 files changed, 3362 insertions, 0 deletions
diff --git a/C2J/glf-enum-auto.java b/C2J/glf-enum-auto.java
new file mode 100755
index 0000000..25b011e
--- /dev/null
+++ b/C2J/glf-enum-auto.java
@@ -0,0 +1,30 @@
+/**
+ * C2J Parser Version 2.2
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glf-enum-auto.orig.h . . .
+ * Destination-Class: gl4java_GLFEnum !
+ */
+
+ public static final int GLF_ERROR = - 1;
+ public static final int GLF_OK = 0;
+ public static final int GLF_YES = 1;
+ public static final int GLF_NO = 2;
+ public static final int GLF_CONSOLE_MESSAGES = 10;
+ public static final int GLF_TEXTURING = 11;
+ public static final int GLF_CONTOURING = 12;
+ public static final int GLF_LEFT_UP = 20;
+ public static final int GLF_LEFT_CENTER = 21;
+ public static final int GLF_LEFT_DOWN = 22;
+ public static final int GLF_CENTER_UP = 23;
+ public static final int GLF_CENTER_CENTER = 24;
+ public static final int GLF_CENTER_DOWN = 25;
+ public static final int GLF_RIGHT_UP = 26;
+ public static final int GLF_RIGHT_CENTER = 27;
+ public static final int GLF_RIGHT_DOWN = 28;
+ public static final int GLF_CENTER = 24;
+ public static final int GLF_LEFT = 1;
+ public static final int GLF_RIGHT = 2;
+ public static final int GLF_UP = 3;
+ public static final int GLF_DOWN = 4;
+ public static final int GLF_CONSOLE_CURSOR = 30;
+/* C2J Parser Version 2.2: Java program parsed successfully. */
diff --git a/C2J/glf-proto-auto-jni.c b/C2J/glf-proto-auto-jni.c
new file mode 100755
index 0000000..c7eb481
--- /dev/null
+++ b/C2J/glf-proto-auto-jni.c
@@ -0,0 +1,1272 @@
+/**
+ * C2J Parser Version 2.2
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glf-proto-auto.orig.h . . .
+ * Destination-Class: gl4java_utils_glf_GLFFuncJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfInit ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfInit (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfInit (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfClose ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfClose (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfClose (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadBFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadBFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadBFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadFontD ( int font_descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadFontD (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadFontD (
+ (int) font_descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadBFontD ( int bmf_descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadBFontD (
+ JNIEnv *env, jobject obj,
+ jint bmf_descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadBFontD (
+ (int) bmf_descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawWiredSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawWiredString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawSolidSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawSolidString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDraw3DWiredSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDraw3DWiredString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDraw3DSolidSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDraw3DSolidString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfBeginBFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfBeginBFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfBeginBFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfEndBFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfEndBFont (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfEndBFont (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawBSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawBString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBMaskSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBMaskSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawBMaskSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBMaskString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBMaskString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawBMaskString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDrawWiredSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDrawWiredStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDrawSolidSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDrawSolidStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDraw3DWiredSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDraw3DWiredStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDraw3DSolidSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDraw3DSolidStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfGetStringBoundsF ( int fd , const char * s , float * minx , float * miny , float * maxx , float * maxy ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringBoundsF (
+ JNIEnv *env, jobject obj,
+ jint fd,
+ jstring s,
+ jfloatArray minx,
+ jfloatArray miny,
+ jfloatArray maxx,
+ jfloatArray maxy)
+ {
+ char *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ if(minx!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, minx, &isCopiedArray2);
+ }
+ if(miny!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, miny, &isCopiedArray3);
+ }
+ if(maxx!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, maxx, &isCopiedArray4);
+ }
+ if(maxy!=NULL)
+ {
+ ptr5 = (*env)->GetFloatArrayElements(env, maxy, &isCopiedArray5);
+ }
+ glfGetStringBoundsF (
+ (int) fd,
+ (const char *) ptr1,
+ (float *) ptr2,
+ (float *) ptr3,
+ (float *) ptr4,
+ (float *) ptr5
+ );
+
+ free(ptr1);
+ if(minx!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, minx, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(miny!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, miny, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxx!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, maxx, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxy!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, maxy, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfGetStringBounds ( const char * s , float * minx , float * miny , float * maxx , float * maxy ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringBounds (
+ JNIEnv *env, jobject obj,
+ jstring s,
+ jfloatArray minx,
+ jfloatArray miny,
+ jfloatArray maxx,
+ jfloatArray maxy)
+ {
+ char *ptr0 = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ if(minx!=NULL)
+ {
+ ptr1 = (*env)->GetFloatArrayElements(env, minx, &isCopiedArray1);
+ }
+ if(miny!=NULL)
+ {
+ ptr2 = (*env)->GetFloatArrayElements(env, miny, &isCopiedArray2);
+ }
+ if(maxx!=NULL)
+ {
+ ptr3 = (*env)->GetFloatArrayElements(env, maxx, &isCopiedArray3);
+ }
+ if(maxy!=NULL)
+ {
+ ptr4 = (*env)->GetFloatArrayElements(env, maxy, &isCopiedArray4);
+ }
+ glfGetStringBounds (
+ (const char *) ptr0,
+ (float *) ptr1,
+ (float *) ptr2,
+ (float *) ptr3,
+ (float *) ptr4
+ );
+
+ free(ptr0);
+ if(minx!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, minx, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(miny!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, miny, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxx!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, maxx, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxy!=NULL)
+ {
+ (*env)->ReleaseFloatArrayElements(env, maxy, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSymbolSpace ( float sp ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetSymbolSpace (
+ JNIEnv *env, jobject obj,
+ jfloat sp)
+ {
+
+ glfSetSymbolSpace (
+ (float) sp
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSymbolSpace ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jfloat JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetSymbolSpace (
+ JNIEnv *env, jobject obj)
+ {
+ jfloat ret;
+
+
+ ret = (jfloat) glfGetSymbolSpace (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSpaceSize ( float sp ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetSpaceSize (
+ JNIEnv *env, jobject obj,
+ jfloat sp)
+ {
+
+ glfSetSpaceSize (
+ (float) sp
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSpaceSize ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jfloat JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetSpaceSize (
+ JNIEnv *env, jobject obj)
+ {
+ jfloat ret;
+
+
+ ret = (jfloat) glfGetSpaceSize (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSymbolDepth ( float dpth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetSymbolDepth (
+ JNIEnv *env, jobject obj,
+ jfloat dpth)
+ {
+
+ glfSetSymbolDepth (
+ (float) dpth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSymbolDepth ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jfloat JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetSymbolDepth (
+ JNIEnv *env, jobject obj)
+ {
+ jfloat ret;
+
+
+ ret = (jfloat) glfGetSymbolDepth (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetCurrentFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetCurrentFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfSetCurrentFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetCurrentBFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetCurrentBFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfSetCurrentBFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfGetCurrentFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetCurrentFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfGetCurrentFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfGetCurrentBFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetCurrentBFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfGetCurrentBFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetAnchorPoint ( int anchp ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetAnchorPoint (
+ JNIEnv *env, jobject obj,
+ jint anchp)
+ {
+
+ glfSetAnchorPoint (
+ (int) anchp
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetContourColor ( float r , float g , float b , float a ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetContourColor (
+ JNIEnv *env, jobject obj,
+ jfloat r,
+ jfloat g,
+ jfloat b,
+ jfloat a)
+ {
+
+ glfSetContourColor (
+ (float) r,
+ (float) g,
+ (float) b,
+ (float) a
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfEnable ( int what ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfEnable (
+ JNIEnv *env, jobject obj,
+ jint what)
+ {
+
+ glfEnable (
+ (int) what
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDisable ( int what ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDisable (
+ JNIEnv *env, jobject obj,
+ jint what)
+ {
+
+ glfDisable (
+ (int) what
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetConsoleParam ( int width , int height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetConsoleParam (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height)
+ {
+
+ glfSetConsoleParam (
+ (int) width,
+ (int) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetConsoleFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetConsoleFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfSetConsoleFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfConsoleClear ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfConsoleClear (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfConsoleClear (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrint ( const char * s , int lenght ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfPrint (
+ JNIEnv *env, jobject obj,
+ jstring s,
+ jint lenght)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfPrint (
+ (const char *) ptr0,
+ (int) lenght
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrintString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfPrintString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfPrintString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrintChar ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfPrintChar (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfPrintChar (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfConsoleDraw ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfConsoleDraw (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfConsoleDraw (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetCursorBlinkRate ( int Rate ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetCursorBlinkRate (
+ JNIEnv *env, jobject obj,
+ jint Rate)
+ {
+
+ glfSetCursorBlinkRate (
+ (int) Rate
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfStringCentering ( GLboolean center ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfStringCentering (
+ JNIEnv *env, jobject obj,
+ jboolean center)
+ {
+
+ glfStringCentering (
+ (GLboolean) center
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLboolean glfGetStringCentering ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringCentering (
+ JNIEnv *env, jobject obj)
+ {
+ jboolean ret;
+
+
+ ret = (jboolean) glfGetStringCentering (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfBitmapStringCentering ( GLboolean center ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfBitmapStringCentering (
+ JNIEnv *env, jobject obj,
+ jboolean center)
+ {
+
+ glfBitmapStringCentering (
+ (GLboolean) center
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLboolean glfBitmapGetStringCentering ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfBitmapGetStringCentering (
+ JNIEnv *env, jobject obj)
+ {
+ jboolean ret;
+
+
+ ret = (jboolean) glfBitmapGetStringCentering (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfStringDirection ( GLuint direction ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfStringDirection (
+ JNIEnv *env, jobject obj,
+ jint direction)
+ {
+
+ glfStringDirection (
+ (GLuint) direction
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLuint glfGetStringDirection ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringDirection (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfGetStringDirection (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetRotateAngle ( float angle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetRotateAngle (
+ JNIEnv *env, jobject obj,
+ jfloat angle)
+ {
+
+ glfSetRotateAngle (
+ (float) angle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetBRotateAngle ( float angle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetBRotateAngle (
+ JNIEnv *env, jobject obj,
+ jfloat angle)
+ {
+
+ glfSetBRotateAngle (
+ (float) angle
+ );
+
+ }
+
+/* C2J Parser Version 2.2: Java program parsed successfully. */
diff --git a/C2J/glf-proto-auto-jni12.c b/C2J/glf-proto-auto-jni12.c
new file mode 100755
index 0000000..046d312
--- /dev/null
+++ b/C2J/glf-proto-auto-jni12.c
@@ -0,0 +1,1272 @@
+/**
+ * C2J Parser Version 2.2
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glf-proto-auto.orig.h . . .
+ * Destination-Class: gl4java_utils_glf_GLFFuncJNI !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfInit ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfInit (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfInit (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfClose ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfClose (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfClose (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadBFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadBFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadBFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadFontD ( int font_descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadFontD (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadFontD (
+ (int) font_descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadBFontD ( int bmf_descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfUnloadBFontD (
+ JNIEnv *env, jobject obj,
+ jint bmf_descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfUnloadBFontD (
+ (int) bmf_descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawWiredSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawWiredString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawSolidSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawSolidString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDraw3DWiredSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDraw3DWiredString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDraw3DSolidSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDraw3DSolidString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfBeginBFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfBeginBFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfBeginBFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfEndBFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfEndBFont (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfEndBFont (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawBSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawBString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBMaskSymbol ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBMaskSymbol (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfDrawBMaskSymbol (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBMaskString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawBMaskString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfDrawBMaskString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDrawWiredSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawWiredStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDrawWiredStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDrawSolidSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDrawSolidStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDrawSolidStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDraw3DWiredSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DWiredStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDraw3DWiredStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidSymbolF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jbyte s)
+ {
+
+ glfDraw3DSolidSymbolF (
+ (int) font_descriptor,
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDraw3DSolidStringF (
+ JNIEnv *env, jobject obj,
+ jint font_descriptor,
+ jstring s)
+ {
+ char *ptr1 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ glfDraw3DSolidStringF (
+ (int) font_descriptor,
+ (const char *) ptr1
+ );
+
+ free(ptr1);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfGetStringBoundsF ( int fd , const char * s , float * minx , float * miny , float * maxx , float * maxy ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringBoundsF (
+ JNIEnv *env, jobject obj,
+ jint fd,
+ jstring s,
+ jfloatArray minx,
+ jfloatArray miny,
+ jfloatArray maxx,
+ jfloatArray maxy)
+ {
+ char *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+ jboolean isCopiedArray5 = JNI_FALSE;
+ jfloat *ptr5 = NULL;
+
+ ptr1 = jnitoolsGetJavaString(env, s);
+ if(minx!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, minx, &isCopiedArray2);
+ }
+ if(miny!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, miny, &isCopiedArray3);
+ }
+ if(maxx!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, maxx, &isCopiedArray4);
+ }
+ if(maxy!=NULL)
+ {
+ ptr5 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, maxy, &isCopiedArray5);
+ }
+ glfGetStringBoundsF (
+ (int) fd,
+ (const char *) ptr1,
+ (float *) ptr2,
+ (float *) ptr3,
+ (float *) ptr4,
+ (float *) ptr5
+ );
+
+ free(ptr1);
+ if(minx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, minx, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(miny!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, miny, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, maxx, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, maxy, ptr5, (isCopiedArray5 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfGetStringBounds ( const char * s , float * minx , float * miny , float * maxx , float * maxy ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringBounds (
+ JNIEnv *env, jobject obj,
+ jstring s,
+ jfloatArray minx,
+ jfloatArray miny,
+ jfloatArray maxx,
+ jfloatArray maxy)
+ {
+ char *ptr0 = NULL;
+ jboolean isCopiedArray1 = JNI_FALSE;
+ jfloat *ptr1 = NULL;
+ jboolean isCopiedArray2 = JNI_FALSE;
+ jfloat *ptr2 = NULL;
+ jboolean isCopiedArray3 = JNI_FALSE;
+ jfloat *ptr3 = NULL;
+ jboolean isCopiedArray4 = JNI_FALSE;
+ jfloat *ptr4 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ if(minx!=NULL)
+ {
+ ptr1 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, minx, &isCopiedArray1);
+ }
+ if(miny!=NULL)
+ {
+ ptr2 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, miny, &isCopiedArray2);
+ }
+ if(maxx!=NULL)
+ {
+ ptr3 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, maxx, &isCopiedArray3);
+ }
+ if(maxy!=NULL)
+ {
+ ptr4 = (jfloat *) (*env)->GetPrimitiveArrayCritical(env, maxy, &isCopiedArray4);
+ }
+ glfGetStringBounds (
+ (const char *) ptr0,
+ (float *) ptr1,
+ (float *) ptr2,
+ (float *) ptr3,
+ (float *) ptr4
+ );
+
+ free(ptr0);
+ if(minx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, minx, ptr1, (isCopiedArray1 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(miny!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, miny, ptr2, (isCopiedArray2 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxx!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, maxx, ptr3, (isCopiedArray3 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ if(maxy!=NULL)
+ {
+ (*env)->ReleasePrimitiveArrayCritical(env, maxy, ptr4, (isCopiedArray4 == JNI_TRUE)?0:JNI_ABORT);
+ }
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSymbolSpace ( float sp ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetSymbolSpace (
+ JNIEnv *env, jobject obj,
+ jfloat sp)
+ {
+
+ glfSetSymbolSpace (
+ (float) sp
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSymbolSpace ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jfloat JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetSymbolSpace (
+ JNIEnv *env, jobject obj)
+ {
+ jfloat ret;
+
+
+ ret = (jfloat) glfGetSymbolSpace (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSpaceSize ( float sp ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetSpaceSize (
+ JNIEnv *env, jobject obj,
+ jfloat sp)
+ {
+
+ glfSetSpaceSize (
+ (float) sp
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSpaceSize ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jfloat JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetSpaceSize (
+ JNIEnv *env, jobject obj)
+ {
+ jfloat ret;
+
+
+ ret = (jfloat) glfGetSpaceSize (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSymbolDepth ( float dpth ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetSymbolDepth (
+ JNIEnv *env, jobject obj,
+ jfloat dpth)
+ {
+
+ glfSetSymbolDepth (
+ (float) dpth
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSymbolDepth ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jfloat JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetSymbolDepth (
+ JNIEnv *env, jobject obj)
+ {
+ jfloat ret;
+
+
+ ret = (jfloat) glfGetSymbolDepth (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetCurrentFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetCurrentFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfSetCurrentFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetCurrentBFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetCurrentBFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfSetCurrentBFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfGetCurrentFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetCurrentFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfGetCurrentFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfGetCurrentBFont ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetCurrentBFont (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfGetCurrentBFont (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetAnchorPoint ( int anchp ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetAnchorPoint (
+ JNIEnv *env, jobject obj,
+ jint anchp)
+ {
+
+ glfSetAnchorPoint (
+ (int) anchp
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetContourColor ( float r , float g , float b , float a ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetContourColor (
+ JNIEnv *env, jobject obj,
+ jfloat r,
+ jfloat g,
+ jfloat b,
+ jfloat a)
+ {
+
+ glfSetContourColor (
+ (float) r,
+ (float) g,
+ (float) b,
+ (float) a
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfEnable ( int what ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfEnable (
+ JNIEnv *env, jobject obj,
+ jint what)
+ {
+
+ glfEnable (
+ (int) what
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDisable ( int what ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfDisable (
+ JNIEnv *env, jobject obj,
+ jint what)
+ {
+
+ glfDisable (
+ (int) what
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetConsoleParam ( int width , int height ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetConsoleParam (
+ JNIEnv *env, jobject obj,
+ jint width,
+ jint height)
+ {
+
+ glfSetConsoleParam (
+ (int) width,
+ (int) height
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetConsoleFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetConsoleFont (
+ JNIEnv *env, jobject obj,
+ jint Font_Descriptor)
+ {
+ jint ret;
+
+
+ ret = (jint) glfSetConsoleFont (
+ (int) Font_Descriptor
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfConsoleClear ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfConsoleClear (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfConsoleClear (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrint ( const char * s , int lenght ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfPrint (
+ JNIEnv *env, jobject obj,
+ jstring s,
+ jint lenght)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfPrint (
+ (const char *) ptr0,
+ (int) lenght
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrintString ( const char * s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfPrintString (
+ JNIEnv *env, jobject obj,
+ jstring s)
+ {
+ char *ptr0 = NULL;
+
+ ptr0 = jnitoolsGetJavaString(env, s);
+ glfPrintString (
+ (const char *) ptr0
+ );
+
+ free(ptr0);
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrintChar ( char s ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfPrintChar (
+ JNIEnv *env, jobject obj,
+ jbyte s)
+ {
+
+ glfPrintChar (
+ (char) s
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfConsoleDraw ( ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfConsoleDraw (
+ JNIEnv *env, jobject obj)
+ {
+
+ glfConsoleDraw (
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetCursorBlinkRate ( int Rate ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetCursorBlinkRate (
+ JNIEnv *env, jobject obj,
+ jint Rate)
+ {
+
+ glfSetCursorBlinkRate (
+ (int) Rate
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfStringCentering ( GLboolean center ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfStringCentering (
+ JNIEnv *env, jobject obj,
+ jboolean center)
+ {
+
+ glfStringCentering (
+ (GLboolean) center
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLboolean glfGetStringCentering ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringCentering (
+ JNIEnv *env, jobject obj)
+ {
+ jboolean ret;
+
+
+ ret = (jboolean) glfGetStringCentering (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfBitmapStringCentering ( GLboolean center ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfBitmapStringCentering (
+ JNIEnv *env, jobject obj,
+ jboolean center)
+ {
+
+ glfBitmapStringCentering (
+ (GLboolean) center
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLboolean glfBitmapGetStringCentering ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jboolean JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfBitmapGetStringCentering (
+ JNIEnv *env, jobject obj)
+ {
+ jboolean ret;
+
+
+ ret = (jboolean) glfBitmapGetStringCentering (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfStringDirection ( GLuint direction ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfStringDirection (
+ JNIEnv *env, jobject obj,
+ jint direction)
+ {
+
+ glfStringDirection (
+ (GLuint) direction
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLuint glfGetStringDirection ( ) ;
+ * </pre>
+ */
+ JNIEXPORT jint JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfGetStringDirection (
+ JNIEnv *env, jobject obj)
+ {
+ jint ret;
+
+
+ ret = (jint) glfGetStringDirection (
+ );
+
+ return ret;
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetRotateAngle ( float angle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetRotateAngle (
+ JNIEnv *env, jobject obj,
+ jfloat angle)
+ {
+
+ glfSetRotateAngle (
+ (float) angle
+ );
+
+ }
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetBRotateAngle ( float angle ) ;
+ * </pre>
+ */
+ JNIEXPORT void JNICALL
+ Java_gl4java_utils_glf_GLFFuncJNI_glfSetBRotateAngle (
+ JNIEnv *env, jobject obj,
+ jfloat angle)
+ {
+
+ glfSetBRotateAngle (
+ (float) angle
+ );
+
+ }
+
+/* C2J Parser Version 2.2: Java program parsed successfully. */
diff --git a/C2J/glf-proto-auto.java b/C2J/glf-proto-auto.java
new file mode 100755
index 0000000..e632aff
--- /dev/null
+++ b/C2J/glf-proto-auto.java
@@ -0,0 +1,615 @@
+/**
+ * C2J Parser Version 2.2
+ * Jausoft - Sven Goethel Software Development
+ * Reading from file: glf-proto-auto.orig.h . . .
+ * Destination-Class: gl4java_utils_glf_GLF !
+ */
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfInit ( ) ;
+ * </pre>
+ */
+ public final native void glfInit (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfClose ( ) ;
+ * </pre>
+ */
+ public final native void glfClose (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadFont ( ) ;
+ * </pre>
+ */
+ public final native int glfUnloadFont (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadBFont ( ) ;
+ * </pre>
+ */
+ public final native int glfUnloadBFont (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadFontD ( int font_descriptor ) ;
+ * </pre>
+ */
+ public final native int glfUnloadFontD (
+ int font_descriptor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfUnloadBFontD ( int bmf_descriptor ) ;
+ * </pre>
+ */
+ public final native int glfUnloadBFontD (
+ int bmf_descriptor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredSymbol ( char s ) ;
+ * </pre>
+ */
+ public final native void glfDrawWiredSymbol (
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredString ( const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDrawWiredString (
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidSymbol ( char s ) ;
+ * </pre>
+ */
+ public final native void glfDrawSolidSymbol (
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidString ( const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDrawSolidString (
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredSymbol ( char s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DWiredSymbol (
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredString ( const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DWiredString (
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidSymbol ( char s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DSolidSymbol (
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidString ( const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DSolidString (
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfBeginBFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ public final native int glfBeginBFont (
+ int Font_Descriptor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfEndBFont ( ) ;
+ * </pre>
+ */
+ public final native void glfEndBFont (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBSymbol ( char s ) ;
+ * </pre>
+ */
+ public final native void glfDrawBSymbol (
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBString ( const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDrawBString (
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBMaskSymbol ( char s ) ;
+ * </pre>
+ */
+ public final native void glfDrawBMaskSymbol (
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawBMaskString ( const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDrawBMaskString (
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ public final native void glfDrawWiredSymbolF (
+ int font_descriptor,
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawWiredStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDrawWiredStringF (
+ int font_descriptor,
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ public final native void glfDrawSolidSymbolF (
+ int font_descriptor,
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDrawSolidStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDrawSolidStringF (
+ int font_descriptor,
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DWiredSymbolF (
+ int font_descriptor,
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DWiredStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DWiredStringF (
+ int font_descriptor,
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidSymbolF ( int font_descriptor , char s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DSolidSymbolF (
+ int font_descriptor,
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDraw3DSolidStringF ( int font_descriptor , const char * s ) ;
+ * </pre>
+ */
+ public final native void glfDraw3DSolidStringF (
+ int font_descriptor,
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfGetStringBoundsF ( int fd , const char * s , float * minx , float * miny , float * maxx , float * maxy ) ;
+ * </pre>
+ */
+ public final native void glfGetStringBoundsF (
+ int fd,
+ String s,
+ float[] minx,
+ float[] miny,
+ float[] maxx,
+ float[] maxy
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfGetStringBounds ( const char * s , float * minx , float * miny , float * maxx , float * maxy ) ;
+ * </pre>
+ */
+ public final native void glfGetStringBounds (
+ String s,
+ float[] minx,
+ float[] miny,
+ float[] maxx,
+ float[] maxy
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSymbolSpace ( float sp ) ;
+ * </pre>
+ */
+ public final native void glfSetSymbolSpace (
+ float sp
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSymbolSpace ( ) ;
+ * </pre>
+ */
+ public final native float glfGetSymbolSpace (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSpaceSize ( float sp ) ;
+ * </pre>
+ */
+ public final native void glfSetSpaceSize (
+ float sp
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSpaceSize ( ) ;
+ * </pre>
+ */
+ public final native float glfGetSpaceSize (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetSymbolDepth ( float dpth ) ;
+ * </pre>
+ */
+ public final native void glfSetSymbolDepth (
+ float dpth
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ float glfGetSymbolDepth ( ) ;
+ * </pre>
+ */
+ public final native float glfGetSymbolDepth (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetCurrentFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ public final native int glfSetCurrentFont (
+ int Font_Descriptor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetCurrentBFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ public final native int glfSetCurrentBFont (
+ int Font_Descriptor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfGetCurrentFont ( ) ;
+ * </pre>
+ */
+ public final native int glfGetCurrentFont (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfGetCurrentBFont ( ) ;
+ * </pre>
+ */
+ public final native int glfGetCurrentBFont (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetAnchorPoint ( int anchp ) ;
+ * </pre>
+ */
+ public final native void glfSetAnchorPoint (
+ int anchp
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetContourColor ( float r , float g , float b , float a ) ;
+ * </pre>
+ */
+ public final native void glfSetContourColor (
+ float r,
+ float g,
+ float b,
+ float a
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfEnable ( int what ) ;
+ * </pre>
+ */
+ public final native void glfEnable (
+ int what
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfDisable ( int what ) ;
+ * </pre>
+ */
+ public final native void glfDisable (
+ int what
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetConsoleParam ( int width , int height ) ;
+ * </pre>
+ */
+ public final native void glfSetConsoleParam (
+ int width,
+ int height
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ int glfSetConsoleFont ( int Font_Descriptor ) ;
+ * </pre>
+ */
+ public final native int glfSetConsoleFont (
+ int Font_Descriptor
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfConsoleClear ( ) ;
+ * </pre>
+ */
+ public final native void glfConsoleClear (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrint ( const char * s , int lenght ) ;
+ * </pre>
+ */
+ public final native void glfPrint (
+ String s,
+ int lenght
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrintString ( const char * s ) ;
+ * </pre>
+ */
+ public final native void glfPrintString (
+ String s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfPrintChar ( char s ) ;
+ * </pre>
+ */
+ public final native void glfPrintChar (
+ byte s
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfConsoleDraw ( ) ;
+ * </pre>
+ */
+ public final native void glfConsoleDraw (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetCursorBlinkRate ( int Rate ) ;
+ * </pre>
+ */
+ public final native void glfSetCursorBlinkRate (
+ int Rate
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfStringCentering ( GLboolean center ) ;
+ * </pre>
+ */
+ public final native void glfStringCentering (
+ boolean center
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLboolean glfGetStringCentering ( ) ;
+ * </pre>
+ */
+ public final native boolean glfGetStringCentering (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfBitmapStringCentering ( GLboolean center ) ;
+ * </pre>
+ */
+ public final native void glfBitmapStringCentering (
+ boolean center
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLboolean glfBitmapGetStringCentering ( ) ;
+ * </pre>
+ */
+ public final native boolean glfBitmapGetStringCentering (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfStringDirection ( GLuint direction ) ;
+ * </pre>
+ */
+ public final native void glfStringDirection (
+ int direction
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ GLuint glfGetStringDirection ( ) ;
+ * </pre>
+ */
+ public final native int glfGetStringDirection (
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetRotateAngle ( float angle ) ;
+ * </pre>
+ */
+ public final native void glfSetRotateAngle (
+ float angle
+ ) ;
+
+/**
+ * Original Function-Prototype :
+ * <pre>
+ void glfSetBRotateAngle ( float angle ) ;
+ * </pre>
+ */
+ public final native void glfSetBRotateAngle (
+ float angle
+ ) ;
+
+/* C2J Parser Version 2.2: Java program parsed successfully. */
diff --git a/gl4java/applet/SimpleGLApplet1.java b/gl4java/applet/SimpleGLApplet1.java
new file mode 100755
index 0000000..8da7104
--- /dev/null
+++ b/gl4java/applet/SimpleGLApplet1.java
@@ -0,0 +1,173 @@
+/**
+ * @(#) SimpleGLApplet.java
+ * @(#) author: Sven Goethel
+ */
+
+package gl4java.applet;
+
+/* This program is licensed under the LGPL */
+
+import java.applet.*;
+import java.awt.*;
+import java.awt.event.*;
+import java.lang.*;
+import gl4java.GLContext;
+import gl4java.GLFunc;
+import gl4java.GLUFunc;
+import gl4java.awt.GLCanvas;
+
+public class SimpleGLApplet1 extends Applet
+ implements ActionListener,WindowListener
+{
+ public GLCanvas canvas = null;
+
+ public Button buttonInfo = null;
+
+ Frame fInfo = null;
+
+ /* Initialize the applet */
+
+ public void init()
+ {
+ setLayout(new BorderLayout());
+
+ buttonInfo = new Button("GL4Java");
+ add("South",buttonInfo);
+ }
+
+
+ public void start()
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("SGLApplet start ..");
+
+ buttonInfo.addActionListener(this);
+
+ canvas.setVisible(true);
+ canvas.repaint();
+ }
+
+
+ public void stop()
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("SGLApplet stop ..");
+ buttonInfo.removeActionListener(this);
+
+ canvas.cvsDispose();
+ }
+
+
+ public void destroy()
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("SGLApplet destroy ..");
+ if(fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ canvas.cvsDispose();
+ }
+
+
+ protected void finalize()
+ throws Throwable
+ {
+ if(GLContext.gljClassDebug)
+ System.out.println("SGLApplet finalize ..");
+
+ super.finalize();
+ }
+
+ public void actionPerformed(ActionEvent event)
+ {
+ Object source = event.getSource();
+
+ if( source.equals(buttonInfo) )
+ {
+ if(fInfo==null && canvas!=null && canvas.getGLContext()!=null)
+ fInfo = showGLInfo();
+ }
+ }
+
+ public void windowOpened(WindowEvent e)
+ {
+ }
+
+ public void windowClosing(WindowEvent e)
+ {
+ Window w = e.getWindow();
+ if(w == fInfo && fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ }
+
+ public void windowClosed(WindowEvent e)
+ {
+ Window w = e.getWindow();
+ if(w == fInfo && fInfo!=null)
+ {
+ fInfo.dispose();
+ fInfo=null;
+ }
+ }
+
+ public void windowIconified(WindowEvent e)
+ {
+ }
+
+ public void windowDeiconified(WindowEvent e)
+ {
+ }
+
+ public void windowActivated(WindowEvent e)
+ {
+ }
+
+ public void windowDeactivated(WindowEvent e)
+ {
+ }
+
+ public Frame showGLInfo()
+ {
+ if(canvas==null) return null;
+
+ GLContext glc = canvas.getGLContext();
+ if(glc==null) return null;
+
+ GLFunc gl = glc.getGLFunc();
+ if(gl==null) return null;
+
+ GLUFunc glu = glc.getGLUFunc();
+ if(gl==null) return null;
+
+ Frame f = new Frame("GL4Java Version");
+ TextArea info= new TextArea(25, 80);
+ info.setEditable(false);
+ f.add(info);
+ f.setSize(600, 400);
+
+ String str = "null string";
+ if( glc.gljMakeCurrent() == false )
+ {
+ str="problem in use() method\n";
+ } else {
+ str=canvas.getGLContext().gljGetVersions();
+ if(str==null)
+ str="could not get versions";
+ System.out.println(str);
+ glc.gljFree();
+ }
+ info.append(str);
+
+ f.addWindowListener(this);
+
+ f.pack();
+ f.setVisible(true);
+
+ return f;
+ }
+}