New getPlatform() method added
This commit is contained in:
parent
c1fd8957df
commit
8575ae0496
|
@ -112,7 +112,7 @@ public final class Sys {
|
||||||
/** GLX (Linux/Unix) platform */
|
/** GLX (Linux/Unix) platform */
|
||||||
public static final int PLATFORM_GLX = 1;
|
public static final int PLATFORM_GLX = 1;
|
||||||
|
|
||||||
/** Apply platform */
|
/** MacOSX platform */
|
||||||
public static final int PLATFORM_AGL = 2;
|
public static final int PLATFORM_AGL = 2;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -49,21 +49,6 @@ __int64 hires_timer_freq; // Hires timer frequency
|
||||||
__int64 hires_timer_start; // Hires timer start
|
__int64 hires_timer_start; // Hires timer start
|
||||||
__int64 hires_timer; // Hires timer current time
|
__int64 hires_timer; // Hires timer current time
|
||||||
|
|
||||||
// Platform
|
|
||||||
#ifdef _WIN32
|
|
||||||
#define PLATFORM 0
|
|
||||||
#else
|
|
||||||
#ifdef _X11
|
|
||||||
#define PLATFORM 1
|
|
||||||
#else
|
|
||||||
#ifdef APPLE
|
|
||||||
#define PLATFORM 2
|
|
||||||
#else
|
|
||||||
#error Unsupported Platform!
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: org_lwjgl_Sys
|
* Class: org_lwjgl_Sys
|
||||||
* Method: getDirectBufferAddress
|
* Method: getDirectBufferAddress
|
||||||
|
|
Loading…
Reference in New Issue