Re: New tutorial on AWT/SWT/Swing/GLJPanel/GLCanvas
Posted by
gouessej on
Jan 27, 2011; 10:13pm
URL: https://forum.jogamp.org/New-tutorial-on-AWT-SWT-Swing-GLJPanel-GLCanvas-tp2363921p2364285.html
Hi
Thank you for this nice wiki page.
My "complications" are
mandatory to use the debug pipeline (which is very useful when developing an OpenGL application) and to work around some known limitations/bugs of the SWT/AWT bridge. Not using them exposes you to threading, layout problems and stack overflow errors on Linux (except if Java is up to date) in more elaborated applications. Therefore, it would have been fine to evoke such problems. There is one missing example: SWT with SWT/AWT bridge + GLJPanel (which works very bad when resizing the SWT component).
In my humble opinion, it would be fine to keep your simplified and very clear example (to allow people to really see the differences between all solutions) and to provide a more robust one with my fixes (these are neither complications nor optimizations).
Maybe you could be a little bit more accurate concerning the limitations of GLCanvas that you can go beyond with GLJPanel (non opaque components, support of JInternalFrame instances, etc...). You speak about performance, it is very important to mention that GLJPanel is quite very "memory expensive" like the GLCanvas with auto swap buffer mode off.
Best regards.