Fixed tests

This commit is contained in:
Elias Naur 2004-02-15 15:34:57 +00:00
parent e3a4f5f7f7
commit 3122d0b1ba
15 changed files with 25 additions and 25 deletions

View File

@ -55,7 +55,7 @@ public class WindowCreationTest {
// Create the actual window
try {
Window.create("WindowCreationTest", 50, 50, 320, 240, 16, 0, 0, 0);
Window.create("WindowCreationTest", 50, 50, 320, 240, 16, 0, 0, 0, 0);
} catch (Exception e) {
e.printStackTrace();
System.out.println("Unable to create window!, exiting...");

View File

@ -74,9 +74,9 @@ public class ControllerCreationTest {
try {
if(fullscreen) {
Display.setDisplayMode(displayMode);
Window.create("ControllerCreationTest", 16, 0, 0, 0);
Window.create("ControllerCreationTest", 16, 0, 0, 0, 0);
} else {
Window.create("ControllerCreationTest", 50, 50, 640, 480, 16, 0, 0, 0);
Window.create("ControllerCreationTest", 50, 50, 640, 480, 16, 0, 0, 0, 0);
}
} catch (Exception e) {

View File

@ -117,9 +117,9 @@ public class ControllerTest {
private void setupDisplay() {
try {
if (FULLSCREEN) {
Window.create("ControllerTest", 16, 0, 0, 0);
Window.create("ControllerTest", 16, 0, 0, 0, 0);
} else {
Window.create("ControllerTest", 50, 50, WINDOW_WIDTH, WINDOW_HEIGHT, 16, 0, 0, 0);
Window.create("ControllerTest", 50, 50, WINDOW_WIDTH, WINDOW_HEIGHT, 16, 0, 0, 0, 0);
}
Window.setVSyncEnabled(true);
} catch (Exception e) {

View File

@ -84,7 +84,7 @@ public class HWCursorTest {
mode = findDisplayMode(800, 600, 16);
// start of in windowed mode
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0);
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0, 0);
glInit();
@ -234,7 +234,7 @@ public class HWCursorTest {
Window.destroy();
Display.setDisplayMode(mode);
Window.create("Test", mode.bpp, 0, 0, 0);
Window.create("Test", mode.bpp, 0, 0, 0, 0);
glInit();
@ -260,7 +260,7 @@ public class HWCursorTest {
Window.destroy();
Display.resetDisplayMode();
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0);
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0, 0);
glInit();

View File

@ -76,7 +76,7 @@ public class KeyboardTest {
private void setupDisplay(boolean fullscreen) {
try {
Window.create("KeyboardTest", 50, 50, 640, 480, 16, 0, 0, 0);
Window.create("KeyboardTest", 50, 50, 640, 480, 16, 0, 0, 0, 0);
} catch (Exception e) {
e.printStackTrace();
System.exit(-1);

View File

@ -74,9 +74,9 @@ public class MouseCreationTest {
try {
if(fullscreen) {
Display.setDisplayMode(displayMode);
Window.create("MouseCreationTest", 16, 0, 0, 0);
Window.create("MouseCreationTest", 16, 0, 0, 0, 0);
} else {
Window.create("MouseCreationTest", 50, 50, 640, 480, 16, 0, 0, 0);
Window.create("MouseCreationTest", 50, 50, 640, 480, 16, 0, 0, 0, 0);
}
} catch (Exception e) {

View File

@ -118,9 +118,9 @@ public class MouseTest {
private void setupDisplay() {
try {
if (FULLSCREEN) {
Window.create("MouseTest", 16, 0, 0, 0);
Window.create("MouseTest", 16, 0, 0, 0, 0);
} else {
Window.create("MouseTest", 50, 50, WINDOW_WIDTH, WINDOW_HEIGHT, 16, 0, 0, 0);
Window.create("MouseTest", 50, 50, WINDOW_WIDTH, WINDOW_HEIGHT, 16, 0, 0, 0, 0);
}
Window.setVSyncEnabled(true);
} catch (Exception e) {

View File

@ -70,7 +70,7 @@ public class MovingSoundTest extends BasicTest {
}
try {
Window.create("Moving Sound Test", 100, 100, 320, 240, 32, 0 ,0 ,0);
Window.create("Moving Sound Test", 100, 100, 320, 240, 32, 0 ,0 ,0, 0);
} catch (Exception e) {
e.printStackTrace();
}

View File

@ -119,7 +119,7 @@ public class PositionTest extends BasicTest {
int centerY = (Display.getHeight() - WINDOW_HEIGHT) / 2;
// setup window
Window.create("PositionTest", centerX, centerY, WINDOW_WIDTH, WINDOW_HEIGHT, Display.getDepth(), 0, 8, 0);
Window.create("PositionTest", centerX, centerY, WINDOW_WIDTH, WINDOW_HEIGHT, Display.getDepth(), 0, 8, 0, 0);
// -----------------------------------------------------
// Setup OpenGL

View File

@ -93,7 +93,7 @@ public class FullScreenWindowedTest {
mode = findDisplayMode(800, 600, 16);
// start of in windowed mode
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0);
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0, 0);
glInit();
@ -202,7 +202,7 @@ public class FullScreenWindowedTest {
Window.destroy();
Display.setDisplayMode(mode);
Window.create("Test", mode.bpp, 0, 0, 0);
Window.create("Test", mode.bpp, 0, 0, 0, 0);
glInit();
@ -219,7 +219,7 @@ public class FullScreenWindowedTest {
Window.destroy();
Display.resetDisplayMode();
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0);
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0, 0);
glInit();

View File

@ -81,7 +81,7 @@ public final class Game {
static {
try {
Window.create("LWJGL Game Example", 16, 0, 0,0);
Window.create("LWJGL Game Example", 16, 0, 0,0, 0);
System.out.println("Created OpenGL.");
} catch (Exception e) {
System.err.println("Failed to create OpenGL due to "+e);

View File

@ -100,7 +100,7 @@ public class Grass {
static {
try {
Window.create("LWJGL Grass", 50, 50, 640, 480, 16, 0, 0,0);
Window.create("LWJGL Grass", 50, 50, 640, 480, 16, 0, 0,0, 0);
Keyboard.create();
Keyboard.enableBuffer();
Mouse.create();

View File

@ -98,7 +98,7 @@ public class PbufferTest {
mode = findDisplayMode(800, 600, 16);
// start of in windowed mode
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0);
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0, 0);
// gl = new GLWindow("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0);
if ((Pbuffer.getPbufferCaps() & Pbuffer.PBUFFER_SUPPORTED) == 0) {
System.out.println("No Pbuffer support!");
@ -261,7 +261,7 @@ public class PbufferTest {
Window.destroy();
Display.setDisplayMode(mode);
Window.create("Test", mode.bpp, 0, 0, 0);
Window.create("Test", mode.bpp, 0, 0, 0, 0);
glInit();
initPbuffer();
@ -281,7 +281,7 @@ public class PbufferTest {
Window.destroy();
Display.resetDisplayMode();
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0);
Window.create("Test", 50, 50, mode.width, mode.height, mode.bpp, 0, 0, 0, 0);
glInit();
initPbuffer();

View File

@ -84,7 +84,7 @@ public final class VBOIndexTest {
static {
try {
Window.create("LWJGL Game Example", 16, 0, 0,0);
Window.create("LWJGL Game Example", 16, 0, 0,0, 0);
System.out.println("Created OpenGL.");
} catch (Exception e) {
System.err.println("Failed to create OpenGL due to "+e);

View File

@ -84,7 +84,7 @@ public final class VBOTest {
static {
try {
Window.create("LWJGL Game Example", 16, 0, 0,0);
Window.create("LWJGL Game Example", 16, 0, 0,0, 0);
System.out.println("Created OpenGL.");
} catch (Exception e) {
System.err.println("Failed to create OpenGL due to "+e);