JOGL + SWT

Has anyone tried to configure JOGL to work with SWT? Bo Majewski, Cisco Systems has created something that looks a lot like JOGL, and I’m wondering what it would take to make it compatible? Any ideas?

See http://www.eclipse.org/ – go to Using OpenGL with SWT

I have done that in the past. I uploaded an example with source code at:

http://www.g0dmode.com/javastuff/jogl-swt-example.zip

The example can be run in Windows via swt-example.cmd or swt-example.exe (Java Windows launcher).
The program should produce a simple native window with a tree control at the left hand side and a panel rendering a blinking rectangle at right.

I’ve successfully tested the example with ATI X800 Pro card - please report if you find any bugs or unstability in the program.

Have fun! :wink:

technically - thats bridged SWT and not pure SWT. This binding is SWT, however it uses LWJGL.
http://www.realityinteractive.com/software/oss/index.html#SWTOGL

It might be possible to port it to jogl tho - not sure about jogl’s backend.

That’s true. The example embeds the JOGL GLCanvas to a SWT composite by using the bridging SWT_AWT.new_Frame(composite) call.
I’ve found this approach satisfactory in most cases. However, the bridging may cause some side effects regarding the event loops and threading models in the SWT and AWT libraries.

As a non-formal announcement, my company has recently been contracted to develop SWT bindings to JOGL - more specificatlly the JSR-231 APIs. We’re waiting for final paperwork to be signed, but work should be starting within 1-2 weeks from today.

soory that i get back to this topic but i have one question : are there java launchers for other systems?
becouse in your example zip there is swt-example.exe , have you made it on your own or it is some part of swt libs, becouse i downloaded from :
http://download.eclipse.org/eclipse/downloads/drops/R-3.1.2-200601181600/index.php latest swt for windows jars etc and there are not such swt-example.jar, i noticed that is easy to use (through configuration file).

Can you give more info about it?
Are there such native launchers for other systems, and from where download it?

Sorry that maybe i ask such stupid questions but i have intrested swt today, and have not use it earlier