JOGL's SWT Binding Update

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

JOGL's SWT Binding Update

Sven Gothel
Administrator
JOGL's SWT Binding is updated.

Commit <http://jogamp.org/git/?p=jogl.git;&a=commit&h=7cb6cf2a9708d3f4e06f2215eb0d06b00fa6cd15>

+++

SWT GLCanvas: Fix sporadic drop of redraw on X11 _and_ allow using custom GLCapabilities on X11 (feature complete)

To allow custom GLCapabilities, we had to use native parenting on X11 w/ a new child window.
The desired visualID chosen by the users GLCapabilities is passed to the new child window.

The redraw drops must be caused by the original GDK or the new child GDK window.
Now we use a plain X11 child window similar to NEWT's X11 window and NewtCanvasSWT,
which doesn't expose this bug.
(Note: SWTAccessor/GLCanvas still contains the uncommented GDK code path for further inspection, if desired)

Also added SWTNewtEventFactory to test event handling on the SWT GLCanvas w/ GearsES2.

TestSWTJOGLGLCanvas01GLn tests custom GLCapabilities now.

SWTEDTUtil has been moved to private: com.jogamp.newt.swt -> jogamp.newt.swt.

+++

A NewtCanvasSWT bug <https://jogamp.org/bugzilla/show_bug.cgi?id=628>
has been fixed as well (deadlock).

+++

In short, you don't need to use NewtCanvasSWT anymore to indulge custom GLCapabilities,
e.g. MSAA, stencil-buffer .. etc.

A more natural SWT support is provided, your feedback is welcome.

You may test the aggregated build
  <http://jogamp.org/deployment/archive/master/gluegen_613-joal_379-jogl_867-jocl_712/archive/>
[Note: The javadoc's are not updated yet - and this aggregation is not signed].

~Sven


signature.asc (909 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOGL's SWT Binding Update

gouessej
Administrator
It's a good piece of news. NewtCanvasSWT is still fine when you have to use the same code with Eclipse RCP and Netbeans RCP.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL's SWT Binding Update

Carlo Salinari
On 05/12/2012 13:20, gouessej [via jogamp] wrote:
> It's a good piece of news. NewtCanvasSWT is still fine when you have to
> use the same code with Eclipse RCP and Netbeans RCP.
> Julien Gouesse

Could you please explain what you mean?
Do you use swt under Netbeans rcp?

Carlo

Reply | Threaded
Open this post in threaded view
|

Re: JOGL's SWT Binding Update

gouessej
Administrator
Hi

Carlo Salinari wrote
On 05/12/2012 13:20, gouessej [via jogamp] wrote:
> It's a good piece of news. NewtCanvasSWT is still fine when you have to
> use the same code with Eclipse RCP and Netbeans RCP.
> Julien Gouesse

Could you please explain what you mean?
Do you use swt under Netbeans rcp?

Carlo
You can use SWT with Swing and Netbeans RCP if you want. Sorry my explanation was unclear. If you use NEWT, only a small part of your code depends on the windowing tool kit used in your application. You can wrap your GLWindow in a NewtCanvasAWT or in a NewtCanvasSWT.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL's SWT Binding Update

Sven Gothel
Administrator
On 12/20/2012 09:41 PM, gouessej [via jogamp] wrote:

> Hi
>
>     Carlo Salinari wrote
>     On 05/12/2012 13:20, gouessej [via jogamp] wrote:
>     > It's a good piece of news. NewtCanvasSWT is still fine when you have to
>     > use the same code with Eclipse RCP and Netbeans RCP.
>     > Julien Gouesse
>
>     Could you please explain what you mean?
>     Do you use swt under Netbeans rcp?
>
>     Carlo
>
> You can use SWT with Swing and Netbeans RCP if you want. Sorry my explanation
> was unclear. If you use NEWT, only a small part of your code depends on the
> windowing tool kit used in your application. You can wrap your GLWindow in a
> NewtCanvasAWT or in a NewtCanvasSWT.
.. or use it on an Android device, or native on X11, Windows or OSX.

Yup, I guess the choice makes the difference.

~Sven



signature.asc (909 bytes) Download Attachment