*** empty log message ***
This commit is contained in:
parent
023e1df80d
commit
bf72447cec
|
@ -54,10 +54,10 @@ public abstract class Window {
|
||||||
private int y;
|
private int y;
|
||||||
|
|
||||||
/** Width of the window */
|
/** Width of the window */
|
||||||
private final int width;
|
private int width;
|
||||||
|
|
||||||
/** Height of the window */
|
/** Height of the window */
|
||||||
private final int height;
|
private int height;
|
||||||
|
|
||||||
/** Title of the window */
|
/** Title of the window */
|
||||||
private String title;
|
private String title;
|
||||||
|
@ -66,6 +66,9 @@ public abstract class Window {
|
||||||
* Construct a Window. Some OSs may not support non-fullscreen windows; in
|
* Construct a Window. Some OSs may not support non-fullscreen windows; in
|
||||||
* which case the window will be fullscreen regardless.
|
* which case the window will be fullscreen regardless.
|
||||||
*
|
*
|
||||||
|
* A fullscreen window MUST track changes to the display settings and change its
|
||||||
|
* width and height accordingly.
|
||||||
|
*
|
||||||
* In this abstract base class, no actual window peer is constructed. This should be
|
* In this abstract base class, no actual window peer is constructed. This should be
|
||||||
* done in specialised derived classes.
|
* done in specialised derived classes.
|
||||||
*
|
*
|
||||||
|
@ -141,6 +144,23 @@ public abstract class Window {
|
||||||
return minimized;
|
return minimized;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Minimize the game and allow the operating system's default display to become
|
||||||
|
* visible. It is NOT the responsibility of LWJGL's native code to restore the display
|
||||||
|
* to its normal display settings.
|
||||||
|
*
|
||||||
|
* If the display is already minimized then this is a no-op.
|
||||||
|
*/
|
||||||
|
public final native void minimize();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Restore the game and hide the operating system away. It is NOT the responsibility of
|
||||||
|
* LWJGL's native code to restore the display to its game display settings.
|
||||||
|
*
|
||||||
|
* If the display is not minimized then this is a no-op/
|
||||||
|
*/
|
||||||
|
public final native void restore();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determine if the window's contents have been damaged by external events.
|
* Determine if the window's contents have been damaged by external events.
|
||||||
* If you are writing a straightforward game rendering loop and simply paint
|
* If you are writing a straightforward game rendering loop and simply paint
|
||||||
|
|
|
@ -24,6 +24,22 @@ JNIEXPORT void JNICALL Java_org_lwjgl_Window_nSetTitle
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_Window_tick
|
JNIEXPORT void JNICALL Java_org_lwjgl_Window_tick
|
||||||
(JNIEnv *, jobject);
|
(JNIEnv *, jobject);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class: org_lwjgl_Window
|
||||||
|
* Method: minimize
|
||||||
|
* Signature: ()V
|
||||||
|
*/
|
||||||
|
JNIEXPORT void JNICALL Java_org_lwjgl_Window_minimize
|
||||||
|
(JNIEnv *, jobject);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Class: org_lwjgl_Window
|
||||||
|
* Method: restore
|
||||||
|
* Signature: ()V
|
||||||
|
*/
|
||||||
|
JNIEXPORT void JNICALL Java_org_lwjgl_Window_restore
|
||||||
|
(JNIEnv *, jobject);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue