Skip to content

Instantly share code, notes, and snippets.

@misdake
Created July 11, 2013 10:21
Show Gist options
  • Save misdake/5974298 to your computer and use it in GitHub Desktop.
Save misdake/5974298 to your computer and use it in GitHub Desktop.
JOGL create view.
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