Big changes for the new 0.6 LWJGL release

This commit is contained in:
Caspian Rychlik-Prince 2003-03-28 23:16:15 +00:00
parent 07fdc052e0
commit 157e7673cc
5 changed files with 42 additions and 9 deletions

View file

@ -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

View file

@ -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;
}
}