Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Widgets in OpenGL view
Widgets in OpenGL view [message #547274] Fri, 16 July 2010 03:49 Go to next message
Eclipse UserFriend
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 10:19 Go to previous messageGo to next message
Eclipse UserFriend
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 03:27 Go to previous message
Eclipse UserFriend
> 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:[SOLVED] Installing the examples from p2 repository zip
Next Topic:swt drag and drop
Goto Forum:
  


Current Time: Thu Jul 10 06:54:53 EDT 2025

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

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

Back to the top