
Untitled
By: a guest on Feb 11th, 2012 | syntax:
Java | size: 0.64 KB | hits: 50 | expires: Never
package rubesoft.games.testengine;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
public class TestEngine {
public void start() {
try {
Display.setDisplayMode(new DisplayMode(640,480));
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) {
TestEngine displayExample = new TestEngine();
displayExample.start();
}
}