Login  Register

Re: Feasible Fullscreen Model?

Posted by Sven Gothel on Jan 17, 2012; 8:29am
URL: https://forum.jogamp.org/Feasible-Fullscreen-Model-tp3663579p3665466.html

On Tuesday, January 17, 2012 12:11:26 AM gouessej [via jogamp] wrote:

>
> I have forgotten another problem. If you don't use NEWT, the OpenGL context
> will be destroyed when switching from full screen to windowed mode and vice
> versa except if you tinker... a lot.
>
> Perhaps you can use a GLWindow whose child component is a NEWTCanvasAWT.
> Then, you don't need to use an instance of java.awt.Frame. When you want to
> switch from full screen mode, just call setUndecorated(boolean) and
> setFullscreen(boolean) on your main GLWindow.
>
> If it doesn't work, I will try to provide you a better solution. There are
> GUI libraries directly based on JOGL but they have all some drawbacks:
> - some widgets are directly in JOGL but they require shader support
> - FengGui is somehow unusable, a contributor started a big code redesign on
> the SVN repository and left it unfinished
> - Nifty Gui is very good but its memory footprint is prohibitive
> - PureSwing could be ported to JOGL but its main contributor plans to stop
> its development soon
> - TWL could be ported to JOGL but I don't know whether it would be a trivial
> task
>
> @Sven, do you have a better solution to suggest?

It would be great if an active maintainer of the above mentioned
OpenGL GUI's would port or accept our patches, yes.

AFAIK there were some approaches to render AWT/Swing to an offscreen image,
but I don't know whats the status of it. Nevertheless this would require a
solution for input events as well.

I guess Julien is more up to date with all the packages floating around.

+++

At least Rami and I will enhance Graph UI this year to become more usable.

GLWindow is a pure NEWT component not designed to hold AWT or SWT,
it supports proper fullscreen mode w/ screen mode change.

NewtCanvasAWT is an adapter to plug-in NEWT to AWT,
not the other way around.

~Sven