I'm following tutorials on the lwjgl wiki but when I run the program in the first tutorial nothing happens at all (no window appears).
Here is my code for the program:
public Test()
{}
public void start() {
try {
Display.setDisplayMode(new DisplayMode(800,600));
Display.setTitle("Test");
Display.create();
} catch (LWJGLException e) {
e.printStackTrace();
System.exit(0);
}
// init OpenGL here
while (!Display.isCloseRequested()) {
// render OpenGL here
Display.update();
}
Display.destroy();
}
public static void main(String[] argv) {
Test displayExample = new Test();
displayExample.start();
}
Any ideas why nothing happens when I run this? The IDE I am using is eclipse and I set up the build path as the tutorial showed.
Thanks