Login  Register

Re: The Current State Of JOGL/SWT Integration

Posted by Sven Gothel on Oct 02, 2012; 12:38am
URL: https://forum.jogamp.org/The-Current-State-Of-JOGL-SWT-Integration-tp4026329p4026333.html

On 10/02/2012 12:41 AM, rhatcher [via jogamp] wrote:

> Can somebody in the know possibly summarize the current state of a
> comprehensive AWT-free integration of JogAmp JOGL and SWT, perhaps focusing on
> what's left to do as of RC10?
>
> I know this topic has been tossed around now and then on the forums, and Sven
> has said that it hasn't been a priority for reasons that are easy to understand.
>
> I ask because our group recently discarded our Eclipse 3.x prototype front-end
> and started over with Eclipse 4.  The experience under E4 has been a good one
> and things are working very well.  However, our JOGL components are still
> sitting on top of the SWT_AWT bridge, and that has always felt kind of like a
> Rube Goldberg machine that should be eliminated.
You can use NewtCanvasSWT now,
pls test w/ latest aggregated build (pre RC11)
  <http://jogamp.org/deployment/archive/master/gluegen_594-joal_362-jogl_819-jocl_683-signed/>

NewtCanvasSWT:
  <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/newt/classes/com/jogamp/newt/swt/NewtCanvasSWT.java;hb=HEAD#l66>

JOGL's SWT GLCanvas:
  <http://jogamp.org/git/?p=jogl.git;a=blob;f=src/jogl/classes/com/jogamp/opengl/swt/GLCanvas.java;hb=HEAD#l74>

Due to the lifecycle of creating an SWT peer, the SWT GLCanvas can NOT deal w/
custom GLCapabilities (MSAA, ..) properly.
Hence it is strongly advised to use the NEWT SWT bridge, i.e. NewtCanvasSWT.

The NewtCanvasSWT allows you to attach a native NEWT window to your SWT Canvas,
similar to NewtCanvasAWT. Since it allows us to have full control of the resource
you can:
  - Use custom GLCapabilities
  - Native reparenting (fullscreen in/out, pull NEWT window out/in of SWT peer, ..)

However, if this seems to be a burden and SWT GLCanvas is the only thing you like,
we may discuss it's required enhancement to make it a full solution w/ custom GLCapabilities.
Of course, help & support is always welcome!

~Sven



signature.asc (907 bytes) Download Attachment