aboutsummaryrefslogtreecommitdiffstats
path: root/C2J/manual/gl-manualCodedImplJNI.c
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
committerSven Gothel <[email protected]>2000-11-18 06:43:49 +0000
commit880653d31a8f1ff8384fdbc75b84934bceecfdb8 (patch)
treebdafb71416f176d2a4b73bf716c9dc3f13685a8b /C2J/manual/gl-manualCodedImplJNI.c
Initial revision
Diffstat (limited to 'C2J/manual/gl-manualCodedImplJNI.c')
-rw-r--r--C2J/manual/gl-manualCodedImplJNI.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/C2J/manual/gl-manualCodedImplJNI.c b/C2J/manual/gl-manualCodedImplJNI.c
new file mode 100644
index 0000000..d0d378c
--- /dev/null
+++ b/C2J/manual/gl-manualCodedImplJNI.c
@@ -0,0 +1,34 @@
+/** THIS IS A MANUAL CODED PART
+ gl-manualCodedImplJNI.java
+*/
+
+static const char _gl_n_a_string[] = "GL-String not avaiable !";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ tmpString = glGetString ( /* jint */ name);
+ if(tmpString==NULL)
+ tmpString=_gl_n_a_string;
+
+ return (*env)->NewStringUTF(env, tmpString);
+}
+
+static const char * _gl_lib_vendor_="Jausoft - Sven Goethel Software Development";
+static const char * _gl_lib_version_="2.4.1.0";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFuncJauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+