mirror of
https://github.com/shadowfacts/lwjgl2-arm64.git
synced 2026-04-05 14:35:58 +00:00
Big changes for the new 0.6 LWJGL release
This commit is contained in:
parent
07fdc052e0
commit
157e7673cc
5 changed files with 42 additions and 9 deletions
|
|
@ -139,7 +139,7 @@ public final class Display {
|
|||
* Reset the display mode to whatever it was when LWJGL was initialized.
|
||||
* Fails silently.
|
||||
*/
|
||||
public static native void resetDisplayMode() throws Exception;
|
||||
public static native void resetDisplayMode();
|
||||
|
||||
/**
|
||||
* Retrieves the width of the created display
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ public abstract class Window {
|
|||
/**
|
||||
* Destroy the window.
|
||||
*/
|
||||
public final void destroy() {
|
||||
public final synchronized void destroy() {
|
||||
if (!created)
|
||||
return;
|
||||
doDestroy();
|
||||
|
|
@ -239,4 +239,10 @@ public abstract class Window {
|
|||
return "Window["+title+"]";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return the current window, or null, if there is no current window
|
||||
*/
|
||||
public static Window getCurrentWindow() {
|
||||
return currentWindow;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue