Created
July 11, 2013 10:21
-
-
Save misdake/5974298 to your computer and use it in GitHub Desktop.
JOGL create view.
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
setLayout(new BorderLayout(0, 0)); | |
final GLCanvas canvas = new GLCanvas(); | |
canvas.setMinimumSize(new Dimension()); //fix a GLCanvas resize bug. | |
animator = new Animator(canvas); //TODO switch to FPSAnimator to save energy. | |
canvas.addGLEventListener(OpenglCore.getInstance()); | |
this.add(canvas); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment