Login  Register

Re: Impossible to retrieve the current mode until GLWindow is visible

Posted by gouessej on Dec 01, 2012; 9:22am
URL: https://forum.jogamp.org/Impossible-to-retrieve-the-current-mode-until-GLWindow-is-visible-tp4027351p4027354.html

Sven Gothel wrote
Here I have described how to use ScreenMode before window creation:
  <http://forum.jogamp.org/Centering-a-Newt-window-td4026458.html#a4026504>
It's also available in one of the *ScreenMode* unit tests.
Ok but can I just call GLWindow.getScreen().addReference() before GLWindow.setVisible(true) to achieve that in my case? Is it the right way of using a Screen instance?

Edit.: It works fine, see change 10016 in JMonkeyEngine 3.0.
Julien Gouesse | Personal blog | Website