|
From: <ma...@us...> - 2006-12-12 21:31:02
|
Revision: 2693
http://svn.sourceforge.net/java-game-lib/?rev=2693&view=rev
Author: matzon
Date: 2006-12-12 13:30:58 -0800 (Tue, 12 Dec 2006)
Log Message:
-----------
added getVersion like lwjgl
bumped native version
Modified Paths:
--------------
trunk/LWJGL/src/java/org/lwjgl/devil/IL.java
trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java
Modified: trunk/LWJGL/src/java/org/lwjgl/devil/IL.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/devil/IL.java 2006-12-12 21:30:21 UTC (rev 2692)
+++ trunk/LWJGL/src/java/org/lwjgl/devil/IL.java 2006-12-12 21:30:58 UTC (rev 2693)
@@ -293,6 +293,13 @@
public static final int IL_SEEK_CUR = 1;
public static final int IL_SEEK_END = 2;
public static final int IL_EOF = -1;
+
+ /**
+ * Return the version of the core LWJGL libraries as a String.
+ */
+ public static String getVersion() {
+ return ILNative.VERSION;
+ }
public static native boolean ilActiveImage(int Number);
public static native boolean ilActiveLayer(int Number);
Modified: trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java
===================================================================
--- trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java 2006-12-12 21:30:21 UTC (rev 2692)
+++ trunk/LWJGL/src/java/org/lwjgl/devil/ILNative.java 2006-12-12 21:30:58 UTC (rev 2693)
@@ -53,10 +53,10 @@
private static String JNI_LIBRARY_NAME = "lwjgl-devil";
/** Version of IL */
- public static final String VERSION = "1.0beta4";
+ static final String VERSION = "1.0beta4";
/** Current version of the JNI library */
- static final int JNI_VERSION = 1;
+ static final int JNI_VERSION = 2;
private static void loadLibrary(final String lib_name) {
AccessController.doPrivileged(new PrivilegedAction() {
@@ -85,6 +85,13 @@
}
}
+ /**
+ * Return the version of the DevIL-lwjgl binding as a String.
+ */
+ public static String getVersion() {
+ return VERSION;
+ }
+
// IL
// ===========================================================
static native void initNativeStubsIL(Class clazz) throws LWJGLException;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|