Fixed tests
This commit is contained in:
parent
e3a4f5f7f7
commit
3122d0b1ba
|
@ -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...");
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue