Skip to content

Instantly share code, notes, and snippets.

@mattdesl
Created December 12, 2012 09:41
Show Gist options
  • Save mattdesl/4266435 to your computer and use it in GitHub Desktop.
Save mattdesl/4266435 to your computer and use it in GitHub Desktop.
Simple LWJGL Display test
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
public class SimpleTest {
public static void main(String[] args) throws LWJGLException {
Display.setDisplayMode(new DisplayMode(800, 600));
Display.create();
while (!Display.isCloseRequested()) {
// render here
Display.update();
Display.sync(60);
}
Display.destroy();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment