Re: New tutorial on AWT/SWT/Swing/GLJPanel/GLCanvas
Posted by
Wade Walker on
Feb 02, 2011; 3:05am
URL: https://forum.jogamp.org/New-tutorial-on-AWT-SWT-Swing-GLJPanel-GLCanvas-tp2363921p2402775.html
gouessej wrote
... You need to implement ... a NEWT SWT display based on the Display class of SWT, ... and a Shell instance as a frame.
Would this work for cases like Eclipse RCP apps where the framework creates the Display and Shell for you? In that case you wouldn't be able to create a new NEWT-based Display and Shell. I'm not sure how to handle that situation other than:
- Use SWT_AWT bridge (could be faster, but at least it works right now)
- Use SWT GLCanvas (fast, but only if you're restricting yourself to <= OGL 2.0 and don't need multisampling)
- Somehow wrap a NEWT window inside an SWT Canvas (but no NEWT on Mac yet?)
- Fix SWT's GLCanvas (difficult and thankless task?)
I don't think I understand these issues well enough yet... I need to dig into the code some more.