Login  Register

Re: Native SWT Binding Test

Posted by Sven Gothel on Mar 01, 2011; 2:16am
URL: https://forum.jogamp.org/Re-Native-SWT-Binding-Test-tp2600231.html

On Monday, February 28, 2011 06:55:36 Sven Gothel wrote:

> Native SWT Binding Test
>
> Hi all .. a 1st experimental demo for a native SWT / JOGL binding
> working on Linux and Windows, both 32 and 64bit.
>
> ---
>
> New GLDrawableFactory createProxySurface(..) method
>   http://jogamp.org/git/?p=jogl.git;a=commit;h=254052b54cebdb957d83e46e377534ef263d6029
>
> Pimp up SWTAccessor for our needs:
>   http://jogamp.org/git/?p=jogl.git;a=commit;h=f9ae06b4df8daa5e780e392543cb06cb9a6293c9
>   http://jogamp.org/git/?p=jogl.git;a=commit;h=e0b2133b1dafef6750885d53fe85e2bc9530c2c9
>
> The new native test case/impl:
>   http://jogamp.org/git/?p=jogl.git;a=commit;h=10ea39d665f0cb50204d1965a0739ca15119e86f
>
> ---
>

Works with OSX/Cocoa as well now:

  http://jogamp.org/git/?p=jogl.git;a=commit;h=83570ff52f67d8f0f7fe978e178bf7825041bee3
  http://jogamp.org/git/?p=jogl.git;a=commit;h=c1e542ad0150e5327b1ed9d9980d4eeb81720cde

> Now we can see how to make a nice integration,
> ie using NEWT or keep it special in the SWT realm.

IMHO the best control and least code would be
to implement analog to NewtCanvasAWT a NewtCanvasSWT.

All it needs is to gather the native handles (done),
and use the existing NEWT native window parenting.
We may also need to fwd a few SWT UI events to NEWT via SWT listener.


>
> Cheers, Sven
>
>

--
health & wealth
mailto:[hidden email] ; http://jausoft.com
land : +49 (471) 4707742 ; cell: +49 (151) 28145941
Timezone CET: PST+9, EST+6, UTC+1