Re: Fullscreen on secondary monitor

Posted by Sven Gothel on
URL: https://forum.jogamp.org/Fullscreen-on-secondary-monitor-tp4032833p4032938.html

On 08/26/2014 12:24 PM, elect [via jogamp] wrote:

> Ok so
>
>         final Display display = NewtFactory.createDisplay(null); // local display
>
>         final Screen screen = NewtFactory.createScreen(display, 0); // screen 0
>
>         glWindow = GLWindow.create(screen, glCapabilities);
>
>
> now?
glWindow.setVisible(true);

now!

You can also realize the 'screen' instance beforehand if you like
and query the screens monitor ahead of the glWindow realization
via addReference()/removeReference() _or_ createNative(), see unit tests.

Then you could query the main monitor via the screen instance using
getMainMonitor(RectangleImmutable).

In case this is for your VR stuff, in StereoDemo01 we simply use the
VR provided window coordinates.

~Sven



signature.asc (828 bytes) Download Attachment