Created
December 12, 2012 09:41
-
-
Save mattdesl/4266435 to your computer and use it in GitHub Desktop.
Simple LWJGL Display test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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