Login  Register

Re: Render problems for custom context menu in OpenGL / SWT

Posted by gouessej on Jan 14, 2011; 3:41pm
URL: https://forum.jogamp.org/Render-problems-for-custom-context-menu-in-OpenGL-SWT-tp2255271p2256136.html

No there is no "natural" way of mixing SWT and OpenGL as the GLCanvas of SWT is broken and mixing AWT, SWT and JOGL is not trivial.

The GLCanvas of SWT is no more maintained since 2006 so using it is not a really good idea on my view. I use Eclipse RCP too. You should use AWT until we get a nice SWT implementation of NEWT. Make an AWT PopupMenu and add it to the parent of the JOGL GLCanvas. Use SWT_AWT to create an AWT Frame and put it into your EditorPart or ViewPart. If you need an example, I wrote something simple in a bug report.
Julien Gouesse | Personal blog | Website