Skip to content

Instantly share code, notes, and snippets.

@zzuegg
Created October 25, 2014 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzuegg/592b73549048ba5ae172 to your computer and use it in GitHub Desktop.
Save zzuegg/592b73549048ba5ae172 to your computer and use it in GitHub Desktop.
final GLWindow glWindow = GLWindow.create(capabilities);
glWindow.setFullscreen(settings.isFullscreen());
glWindow.setSize(settings.getResolutionX(), settings.getResolutionY());
final JoglGraphicsContext newContext = new JoglGraphicsContextSurface(graphicsModuleJogl, capabilities, profile, glWindow, settings);
final GLContext newGlContext = glWindow.createContext(context);
glWindow.setContext(newGlContext, true);
glWindow.setVisible(true);
newContext.update();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment