added getVersion like lwjgl

bumped native version
This commit is contained in:
Brian Matzon 2006-12-12 21:30:58 +00:00
parent fcb1f55eb9
commit 1011b614e5
2 changed files with 16 additions and 2 deletions

View file

@ -293,6 +293,13 @@ public class IL {
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);

View file

@ -53,10 +53,10 @@ class ILNative {
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 @@ class ILNative {
}
}
/**
* 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;