renamed updateStatus to update

This commit is contained in:
Brian Matzon 2003-08-17 14:10:53 +00:00
parent 7e283db15c
commit 4f39c59b45
17 changed files with 20 additions and 20 deletions

View file

@ -332,5 +332,5 @@ public final class Window {
* Updates the windows internal state. This must be called at least once per video frame
* to handle window close requests, moves, paints, etc.
*/
public static native void updateState();
public static native void update();
}

View file

@ -31,7 +31,7 @@ public class WindowCreationTest {
System.out.println("Display created");
while(!Window.isCloseRequested()) {
Window.updateState();
Window.update();
try {
Thread.sleep(100);
} catch (Exception e) {

View file

@ -160,7 +160,7 @@ public class ControllerCreationTest {
while (Sys.getTime() < endtime) {
Window.updateState();
Window.update();
Controller.poll();

View file

@ -113,7 +113,7 @@ public class ControllerTest {
private void wiggleController() {
while (!Window.isCloseRequested()) {
Window.updateState();
Window.update();
if(Window.isMinimized()) {
try {

View file

@ -149,7 +149,7 @@ public class HWCursorTest {
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
&& !Window.isCloseRequested()) {
// allow subsystem to get a chance to run too
Window.updateState();
Window.update();
if (!Window.isMinimized()) {
// check keyboard input

View file

@ -118,7 +118,7 @@ public class KeyboardTest {
Keyboard.enableTranslation();
while (!Window.isCloseRequested()) {
Window.updateState();
Window.update();
if(Window.isMinimized()) {
try {

View file

@ -162,7 +162,7 @@ public class MouseCreationTest {
long endtime = Sys.getTime() + Sys.getTimerResolution() * 5;
while (Sys.getTime() < endtime) {
Window.updateState();
Window.update();
Mouse.poll();

View file

@ -113,7 +113,7 @@ public class MouseTest {
private void wiggleMouse() {
while (!Window.isCloseRequested()) {
Window.updateState();
Window.update();
if(Window.isMinimized()) {
try {

View file

@ -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");
while(!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)) {
Window.updateState();
Window.update();
Keyboard.poll();
if(Keyboard.isKeyDown(Keyboard.KEY_LEFT)) {

View file

@ -113,7 +113,7 @@ public class FullScreenWindowedTest {
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
&& !Window.isCloseRequested()) {
// allow subsystem to get a chance to run too
Window.updateState();
Window.update();
if (!Window.isMinimized()) {
// check keyboard input

View file

@ -98,7 +98,7 @@ public final class Game {
try {
init();
while (!finished) {
Window.updateState();
Window.update();
if (Window.isMinimized())
Thread.sleep(200);

View file

@ -122,7 +122,7 @@ public class PbufferTest {
while (!Keyboard.isKeyDown(Keyboard.KEY_ESCAPE)
&& !Window.isCloseRequested()) {
// allow subsystem to get a chance to run too
Window.updateState();
Window.update();
if (!Window.isMinimized()) {
// check keyboard input

View file

@ -100,7 +100,7 @@ public final class VBOIndexTest {
try {
init();
while (!finished) {
Window.updateState();
Window.update();
if (Window.isMinimized())
Thread.sleep(200);

View file

@ -96,7 +96,7 @@ public final class VBOTest {
try {
init();
while (!finished) {
Window.updateState();
Window.update();
if (Window.isMinimized())
Thread.sleep(200);

View file

@ -102,10 +102,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nDestroy
/*
* Class: org_lwjgl_opengl_Window
* Method: updateState
* Method: update
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_update
(JNIEnv *, jclass);
#ifdef __cplusplus

View file

@ -256,10 +256,10 @@ int getWindowHeight(void) {
/*
* Class: org_lwjgl_Window
* Method: updateState
* Method: update
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_update
(JNIEnv *env, jclass clazz)
{
handleMessages();

View file

@ -477,10 +477,10 @@ JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_nSetTitle
/*
* Class: org_lwjgl_Window
* Method: updateState
* Method: update
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_update
(JNIEnv * env, jclass clazz)
{
handleMessages(env, clazz);