mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-04 22:17:59 +00:00
New getPlatform() method added
This commit is contained in:
parent
0d620e9125
commit
c1fd8957df
3 changed files with 66 additions and 0 deletions
|
|
@ -83,6 +83,7 @@ public final class Sys {
|
|||
*/
|
||||
public static final boolean DEBUG;
|
||||
|
||||
|
||||
private static boolean _debug;
|
||||
static {
|
||||
try {
|
||||
|
|
@ -100,6 +101,20 @@ public final class Sys {
|
|||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Platforms. This will let you determine which platform you are running
|
||||
* on, which is handy to know for some GL calls.
|
||||
*/
|
||||
|
||||
/** Windows platform */
|
||||
public static final int PLATFORM_WGL = 0;
|
||||
|
||||
/** GLX (Linux/Unix) platform */
|
||||
public static final int PLATFORM_GLX = 1;
|
||||
|
||||
/** Apply platform */
|
||||
public static final int PLATFORM_AGL = 2;
|
||||
|
||||
/**
|
||||
* @return the name of the native library to load
|
||||
*/
|
||||
|
|
@ -207,5 +222,15 @@ public final class Sys {
|
|||
* @param message The message text for the alert.
|
||||
*/
|
||||
public static native void alert(String title, String message);
|
||||
|
||||
/**
|
||||
* Returns the operating system windowing platform. This will be one of the
|
||||
* constants defined above. There is no "unknown" platform; a native library port
|
||||
* has to provide a unique platform number for this mechanism to work. If the LWJGL
|
||||
* is ported to, say, QNX, we will have a PLATFORM_QNX at the ready.
|
||||
*
|
||||
* @return the windowing system
|
||||
*/
|
||||
public static native int getPlatform();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue