diff options
author | Sven Gothel <[email protected]> | 2001-11-06 08:20:20 +0000 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2001-11-06 08:20:20 +0000 |
commit | 603d6cac0aee219f4d24270e3669712f5b5f0900 (patch) | |
tree | 198adc2f79fd7904ab99fa6435e5d16f51502847 /C2J/manual/gl-manualCodedImplJNI14.c | |
parent | 29a4ca7a93fc2547466a732441b8374a5c99019b (diff) |
java.nio, mesa-4.0 (gl1.3)rel-2-8-0-8-prerelease
Diffstat (limited to 'C2J/manual/gl-manualCodedImplJNI14.c')
-rw-r--r-- | C2J/manual/gl-manualCodedImplJNI14.c | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/C2J/manual/gl-manualCodedImplJNI14.c b/C2J/manual/gl-manualCodedImplJNI14.c new file mode 100644 index 0000000..9bbf519 --- /dev/null +++ b/C2J/manual/gl-manualCodedImplJNI14.c @@ -0,0 +1,37 @@ +/** 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_GLFunc14JauJNI_glGetString ( JNIEnv *env, jobject obj,
+ jint name )
+{
+ const char * tmpString=0;
+
+ if ( disp__glGetString == NULL )
+ return (*env)->NewStringUTF(env, _gl_n_a_string);
+
+ tmpString = disp__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.8.0.8";
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFunc14JauJNI_getNativeVendor ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_vendor_);
+}
+
+JNIEXPORT jstring JNICALL
+Java_gl4java_GLFunc14JauJNI_getNativeVersion ( JNIEnv *env, jobject obj )
+{
+ return (*env)->NewStringUTF(env, _gl_lib_version_);
+}
+
|