Re: Fullscreen on secondary monitor

Posted by elect on
URL: https://forum.jogamp.org/Fullscreen-on-secondary-monitor-tp4032833p4033321.html

Sven Gothel wrote
we surely speak a different language, cannot grok your statement.

maybe you _read_ the demo then :)
:D I meant I never solved the problem I had while trying to run the jogl demos.. I refer for example to the library issue, where jogl is looking for dll in a very strange directory and is looking the IA architecture version..

Anyway, since I couldnt run them, I did read them, that's why I found the addReference() missing..

gouessej wrote
Sorry. I think that we should write a page in the wiki about that as several people already ask some questions about that:
screen = virtual monitor
monitor = physical monitor

In a big desktop environment, you can use multiple physical monitors to make a single virtual monitor.

The link was broken, it's better now:
http://jogamp.org/git/?p=jogl.git;a=blob;f=src/test/com/jogamp/opengl/test/junit/newt/mm/TestScreenMode01cNEWT.java;h=377c35ade46758f608aff329e5e9a9a6eb72121f;hb=HEAD#l129

Please use this method with the Monitor you'd like to use:
http://jogamp.org/deployment/jogamp-next/javadoc/jogl/javadoc/com/jogamp/newt/opengl/GLWindow.html#setFullscreen(java.util.List)

Let me know whether it's not accurate enough and keep cool, we're here to help you ;)

Edit.: You can pass a list containing a single monitor.
Yeah, a wiki would be very very useful.

Anyway, it seems it is working now

        screen = NewtFactory.createScreen(display, 0);

        screen.addReference();

        glWindow = GLWindow.create(screen, gLCapabilities);

        List<MonitorDevice> monitorDevices = new ArrayList<>();
        monitorDevices.add(screen.getMonitorDevices().get(i));
        glWindow.setFullscreen(monitorDevices);

I can have the fullscreen on the i-th monitor I want :)

Just few considerations:

- the keyListener doesnt work anymore now at fullscreen, but I will investigate something more on this, maybe it is my fault

- addReference() takes a lot of time, more than 10s, is it normal?

- I always found the jogl forum crap. Dont get me wrong, I am not blaming you guys for the work you do for free and all the effort you put in it. I thank you all for everything you did up today. I want you to not get this like a critic, but rather as an improvement/suggest.
I just think a modern forum would: increase the success of jogl platform, make it appear more modern and updated with our current times. I attend different forums, many of them as a lot of useful features, for example a much better support for the quote, multiquote, thanks to the author of a post, link for going to the first unread message, a much nicer good looking, (better) supports for code, quote, links, images, videos, etc etc.
This is one I think is one of the best out there (http://www.invisionpower.com/apps/board/), but it is just an example.
I say this because I use and love jogl, so helping make it better is all in my interest :)