*** empty log message ***
This commit is contained in:
parent
a8826b4b12
commit
da4eb5d83e
|
@ -332,5 +332,5 @@ public final class Window {
|
||||||
* Updates the windows internal state. This must be called at least once per video frame
|
* Updates the windows internal state. This must be called at least once per video frame
|
||||||
* to handle window close requests, moves, paints, etc.
|
* to handle window close requests, moves, paints, etc.
|
||||||
*/
|
*/
|
||||||
public static native void updateState();
|
public static native void update();
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,7 @@ public class WindowCreationTest {
|
||||||
System.out.println("Display created");
|
System.out.println("Display created");
|
||||||
|
|
||||||
while(!Window.isCloseRequested()) {
|
while(!Window.isCloseRequested()) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
@ -160,7 +160,7 @@ public class ControllerCreationTest {
|
||||||
|
|
||||||
while (Sys.getTime() < endtime) {
|
while (Sys.getTime() < endtime) {
|
||||||
|
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
Controller.poll();
|
Controller.poll();
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class ControllerTest {
|
||||||
|
|
||||||
private void wiggleController() {
|
private void wiggleController() {
|
||||||
while (!Window.isCloseRequested()) {
|
while (!Window.isCloseRequested()) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if(Window.isMinimized()) {
|
if(Window.isMinimized()) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -149,7 +149,7 @@ public class HWCursorTest {
|
||||||
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
||||||
&& !Window.isCloseRequested()) {
|
&& !Window.isCloseRequested()) {
|
||||||
// allow subsystem to get a chance to run too
|
// allow subsystem to get a chance to run too
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if (!Window.isMinimized()) {
|
if (!Window.isMinimized()) {
|
||||||
// check keyboard input
|
// check keyboard input
|
||||||
|
|
|
@ -118,7 +118,7 @@ public class KeyboardTest {
|
||||||
Keyboard.enableTranslation();
|
Keyboard.enableTranslation();
|
||||||
|
|
||||||
while (!Window.isCloseRequested()) {
|
while (!Window.isCloseRequested()) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if(Window.isMinimized()) {
|
if(Window.isMinimized()) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -162,7 +162,7 @@ public class MouseCreationTest {
|
||||||
long endtime = Sys.getTime() + Sys.getTimerResolution() * 5;
|
long endtime = Sys.getTime() + Sys.getTimerResolution() * 5;
|
||||||
|
|
||||||
while (Sys.getTime() < endtime) {
|
while (Sys.getTime() < endtime) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
Mouse.poll();
|
Mouse.poll();
|
||||||
|
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class MouseTest {
|
||||||
|
|
||||||
private void wiggleMouse() {
|
private void wiggleMouse() {
|
||||||
while (!Window.isCloseRequested()) {
|
while (!Window.isCloseRequested()) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if(Window.isMinimized()) {
|
if(Window.isMinimized()) {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -156,7 +156,7 @@ public class MovingSoundTest extends BasicTest {
|
||||||
System.out.println("Move source with arrow keys\nMove listener with right shift and arrowkeys\nEnable EAX effect by pressing e (if available)\nExit with ESC");
|
System.out.println("Move source with arrow keys\nMove listener with right shift and arrowkeys\nEnable EAX effect by pressing e (if available)\nExit with ESC");
|
||||||
|
|
||||||
while(!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
|
while(!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
Keyboard.poll();
|
Keyboard.poll();
|
||||||
if(Keyboard.isKeyDown(Keyboard.KEY_LEFT)) {
|
if(Keyboard.isKeyDown(Keyboard.KEY_LEFT)) {
|
||||||
|
|
|
@ -113,7 +113,7 @@ public class FullScreenWindowedTest {
|
||||||
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
||||||
&& !Window.isCloseRequested()) {
|
&& !Window.isCloseRequested()) {
|
||||||
// allow subsystem to get a chance to run too
|
// allow subsystem to get a chance to run too
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if (!Window.isMinimized()) {
|
if (!Window.isMinimized()) {
|
||||||
// check keyboard input
|
// check keyboard input
|
||||||
|
|
|
@ -98,7 +98,7 @@ public final class Game {
|
||||||
try {
|
try {
|
||||||
init();
|
init();
|
||||||
while (!finished) {
|
while (!finished) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if (Window.isMinimized())
|
if (Window.isMinimized())
|
||||||
Thread.sleep(200);
|
Thread.sleep(200);
|
||||||
|
|
|
@ -122,7 +122,7 @@ public class PbufferTest {
|
||||||
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
|
||||||
&& !Window.isCloseRequested()) {
|
&& !Window.isCloseRequested()) {
|
||||||
// allow subsystem to get a chance to run too
|
// allow subsystem to get a chance to run too
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if (!Window.isMinimized()) {
|
if (!Window.isMinimized()) {
|
||||||
// check keyboard input
|
// check keyboard input
|
||||||
|
|
|
@ -100,7 +100,7 @@ public final class VBOIndexTest {
|
||||||
try {
|
try {
|
||||||
init();
|
init();
|
||||||
while (!finished) {
|
while (!finished) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if (Window.isMinimized())
|
if (Window.isMinimized())
|
||||||
Thread.sleep(200);
|
Thread.sleep(200);
|
||||||
|
|
|
@ -96,7 +96,7 @@ public final class VBOTest {
|
||||||
try {
|
try {
|
||||||
init();
|
init();
|
||||||
while (!finished) {
|
while (!finished) {
|
||||||
Window.updateState();
|
Window.update();
|
||||||
|
|
||||||
if (Window.isMinimized())
|
if (Window.isMinimized())
|
||||||
Thread.sleep(200);
|
Thread.sleep(200);
|
||||||
|
|
|
@ -103,10 +103,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nDestroy
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: org_lwjgl_opengl_Window
|
* Class: org_lwjgl_opengl_Window
|
||||||
* Method: updateState
|
* Method: update
|
||||||
* Signature: ()V
|
* Signature: ()V
|
||||||
*/
|
*/
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_update
|
||||||
(JNIEnv *, jclass);
|
(JNIEnv *, jclass);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
|
|
@ -51,8 +51,8 @@ if test "x$JAVA_HOME" = x; then
|
||||||
else
|
else
|
||||||
AC_MSG_RESULT($JAVA_HOME)
|
AC_MSG_RESULT($JAVA_HOME)
|
||||||
JAVA_HOME="$JAVA_HOME"
|
JAVA_HOME="$JAVA_HOME"
|
||||||
CPPFLAGS="$CPPFLAGS -D_DEBUG -fno-rtti -fno-exceptions -pthread -D_X11 -Wall -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
CPPFLAGS="$CPPFLAGS -fno-rtti -fno-exceptions -pthread -D_X11 -Wall -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
||||||
CFLAGS="$CFLAGS -D_DEBUG -pthread -D_X11 -Wall -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
CFLAGS="$CFLAGS -pthread -D_X11 -Wall -I$JAVA_HOME/include -I$JAVA_HOME/include/linux"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl Checks for libraries.
|
dnl Checks for libraries.
|
||||||
|
|
|
@ -256,10 +256,10 @@ int getWindowHeight(void) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: org_lwjgl_Window
|
* Class: org_lwjgl_Window
|
||||||
* Method: updateState
|
* Method: update
|
||||||
* Signature: ()V
|
* Signature: ()V
|
||||||
*/
|
*/
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_update
|
||||||
(JNIEnv *env, jclass clazz)
|
(JNIEnv *env, jclass clazz)
|
||||||
{
|
{
|
||||||
handleMessages();
|
handleMessages();
|
||||||
|
|
|
@ -477,10 +477,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nSetTitle
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: org_lwjgl_Window
|
* Class: org_lwjgl_Window
|
||||||
* Method: updateState
|
* Method: update
|
||||||
* Signature: ()V
|
* Signature: ()V
|
||||||
*/
|
*/
|
||||||
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
|
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_update
|
||||||
(JNIEnv * env, jclass clazz)
|
(JNIEnv * env, jclass clazz)
|
||||||
{
|
{
|
||||||
handleMessages(env, clazz);
|
handleMessages(env, clazz);
|
||||||
|
|
Loading…
Reference in New Issue