mod: tick is now called updateState - bitch all you will :p

This commit is contained in:
Brian Matzon 2003-08-17 09:27:32 +00:00
parent 21b4ec41a2
commit 7e283db15c
17 changed files with 21 additions and 22 deletions

View File

@ -329,9 +329,8 @@ public final class Window {
}
/**
* 'Tick' the window. 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.
*/
public static native void tick();
public static native void updateState();
}

View File

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

View File

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

View File

@ -113,7 +113,7 @@ public class ControllerTest {
private void wiggleController() {
while (!Window.isCloseRequested()) {
Window.tick();
Window.updateState();
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.tick();
Window.updateState();
if (!Window.isMinimized()) {
// check keyboard input

View File

@ -118,7 +118,7 @@ public class KeyboardTest {
Keyboard.enableTranslation();
while (!Window.isCloseRequested()) {
Window.tick();
Window.updateState();
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.tick();
Window.updateState();
Mouse.poll();

View File

@ -113,7 +113,7 @@ public class MouseTest {
private void wiggleMouse() {
while (!Window.isCloseRequested()) {
Window.tick();
Window.updateState();
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.tick();
Window.updateState();
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.tick();
Window.updateState();
if (!Window.isMinimized()) {
// check keyboard input

View File

@ -98,7 +98,7 @@ public final class Game {
try {
init();
while (!finished) {
Window.tick();
Window.updateState();
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.tick();
Window.updateState();
if (!Window.isMinimized()) {
// check keyboard input

View File

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

View File

@ -96,7 +96,7 @@ public final class VBOTest {
try {
init();
while (!finished) {
Window.tick();
Window.updateState();
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: tick
* Method: updateState
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_tick
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
(JNIEnv *, jclass);
#ifdef __cplusplus

View File

@ -256,10 +256,10 @@ int getWindowHeight(void) {
/*
* Class: org_lwjgl_Window
* Method: tick
* Method: updateState
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_tick
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
(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: tick
* Method: updateState
* Signature: ()V
*/
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_tick
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_Window_updateState
(JNIEnv * env, jclass clazz)
{
handleMessages(env, clazz);