Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Widgets in OpenGL view
Widgets in OpenGL view [message #547274] Fri, 16 July 2010 07:49 Go to next message
J.-P. Pellet is currently offline J.-P. PelletFriend
Messages: 71
Registered: July 2009
Member
Hi,

I'm investigating to know what's possible in terms of embedding native
widgets in some OpenGL view. Has it been done before? Is it possible,
for instance, to have a reactive SWT Button in an OpenGL canvas,
full-featured with event support?

Cheers,
J.-P.
Re: Widgets in OpenGL view [message #548339 is a reply to message #547274] Wed, 21 July 2010 14:19 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
Hi,

This is not supported. I did a quick experiment and it seemed to work on
win32 and carbon, but I think these are working by luck (and the carbon case
sometimes crashed at shutdown). It's not clear whether this could be made
to work on the other platforms, and there are not currently plans to
investigate this.

An alternate approach which should work would be to open an ON_TOP Shell
where the Control should go and to put the Control in this Shell instead.

Grant


"J.-P. Pellet" <jpp-mac@gmx.net> wrote in message
news:i1p2tj$c0g$1@build.eclipse.org...
> Hi,
>
> I'm investigating to know what's possible in terms of embedding native
> widgets in some OpenGL view. Has it been done before? Is it possible, for
> instance, to have a reactive SWT Button in an OpenGL canvas, full-featured
> with event support?
>
> Cheers,
> J.-P.
Re: Widgets in OpenGL view [message #550106 is a reply to message #548339] Thu, 29 July 2010 07:27 Go to previous message
J.-P. Pellet is currently offline J.-P. PelletFriend
Messages: 71
Registered: July 2009
Member
> An alternate approach which should work would be to open an ON_TOP Shell
> where the Control should go and to put the Control in this Shell instead.

Actually, I'm looking for a solution where I could apply OpenGL
transforms to buttons -- e.g., render them on a texture and position
this texture wherever I want. Has anything like this been done with
native widgets? Could I keep them all in some offscreen buffer, and
update their corresponding texture each time they paint?

Thanks,
J.-P.
Previous Topic:Specifying Mozilla Version for SWT Browser
Next Topic:WebKit browser in Java app
Goto Forum:
  


Current Time: Mon Oct 23 21:04:54 GMT 2017

Powered by FUDForum. Page generated in 0.01778 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software