mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-03-26 15:15:40 +01:00
added getVersion like lwjgl
bumped native version
This commit is contained in:
parent
fcb1f55eb9
commit
1011b614e5
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue