jogl for SWT

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

jogl for SWT

Xfel
It was always possible to use jogl and SWT together using GLDrawableFactory.createExternalGLContext() or GLDrawableFactory.createExternalGLDrawable(). But there was no better support, mainly because of the strong AWT binding. But now, with the new NativeWindow system and the separation of the AWT specific parts, there would be a possibility to create a real integration (ideally as an eclipse plugin).
Is something like that planed?

I already tried it: it shurely is possible, but I tested it only with windows.
two parts would be needed:
- a SWT NativeWindow implementation similar to the AWT one. It will not need any native code because in SWT the handles  are not only saved in java, they are public!
- a SWT GLAutoDrawable implementation
also quite similar to the AWT one
Reply | Threaded
Open this post in threaded view
|

Re: jogl for SWT

Sven Gothel
Administrator
On Sunday, June 13, 2010 18:54:23 Xfel [via jogamp] wrote:
>
> It was always possible to use jogl and SWT together using
> GLDrawableFactory.createExternalGLContext() or
> GLDrawableFactory.createExternalGLDrawable(). But there was no better
> support, mainly because of the strong AWT binding. But now, with the new
> NativeWindow system and the separation of the AWT specific parts, there
> would be a possibility to create a real integration (ideally as an eclipse
> plugin).

Good point.

> Is something like that planed?

Not yet, but .. _we_ can do it, of course.

How about somebody from the Eclipse/SWT side runs this effort,
ie forks from my branch @ github, or the scm.jogamp.org one
and later we merge ..

Of course I will help with the efforts, Q&A etc.

I am just a bit busy with other stuff, ie the NEWT MacOSX fixes
and finally finishing the GL4 profile.

But .. such a thing is very welcome, sooner or later it will be there.

So, any volunteer ?

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