Search code examples
javaopengljogl

JOGL creating window using NEWT - examples?


I have been looking at using JOGL to create some things and have been looking through what documentation I can find.

Brief tutorials they all mention how using the JOGL version of canvas can have performance issues and instead you should use NEWT. However each and every tutorial / FAQ then goes on to use the canvas! Or simply specify a few tiny snippets of methods to create a window using NEWT but which (on my machine at least) I cannot get to correctly run.

Does anyone have a good source of examples of how to correctly implement creating and rendering to a window in JOGL using the NEWT method? I'm not even sure how it functions compared to the Canvas so an explanation of the differences between the two and a typical layout of methods to create / manage / render to a window would be ideal.

Just a little lost and cannot find anything useful. Hope someone's come across something before!


Solution

  • take a look at JOGL's junit tests, they cover large parts of the NEWT API.