|
From: Caspian Rychlik-P. <ci...@us...> - 2003-02-07 21:50:07
|
Update of /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl In directory sc8-pr-cvs1:/tmp/cvs-serv14702/src/java/org/lwjgl Modified Files: Display.java Log Message: Index: Display.java CVS Browser: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java =================================================================== RCS file: /cvsroot/java-game-lib/LWJGL/src/java/org/lwjgl/Display.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- Display.java 6 Feb 2003 18:23:44 -0000 1.11 +++ Display.java 7 Feb 2003 21:50:02 -0000 1.12 @@ -55,9 +55,9 @@ /** The current display mode, if created */ private static DisplayMode mode; - /** A pointer to the native display window */ + /** A pointer to the native display window. On Windows this will be an hWnd. */ private static int handle; - + /** * No construction allowed. */ @@ -205,4 +205,14 @@ return created; } + /** + * Determines if the display is minimized. When the display is minimized it is + * effectively invisible, and you need perform no rendering in your game loop. + * On the native side, when the application is switched to some other application, + * the display window will minimize; when focus is regained, it will maximize and + * automatically gain focus and become the foreground window again. + * @return true if the display is minimized + */ + public static native boolean isMinimized(); + } |