Login  Register

Re: Feasible Fullscreen Model?

Posted by gouessej on Jan 16, 2012; 11:11pm
URL: https://forum.jogamp.org/Feasible-Fullscreen-Model-tp3663579p3664701.html

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?
Julien Gouesse | Personal blog | Website