Login  Register

Re: GLWindow

Posted by Daniel Avila on Feb 05, 2013; 8:50pm
URL: https://forum.jogamp.org/GLWindow-tp4027817p4028148.html

I stopped trying to use full screen mode when I realized I couldn't get a window to come up on a different monitor. Did you mean doing something like this?

Display display = NewtFactory.createDisplay(null);
Screen screen = NewtFactory.createScreen(display, 0);
Screen screen = NewtFactory.createScreen(display, 1);

The window always comes up somewhere on my default device, regardless of what I pass to createScreen(). It makes sense though, because each screen is using NewtFactory.createDisplay(null), which returns the default graphics device (which I assume is my primary monitor as Windows sees it).

If you meant NewtFactory.createDisplay( some_name ), well then I am at a loss. I followed the documentation which took me to AbstractGraphicsDevice.getConnection(), and then I wasn't sure what to do next. Is there a way to enumerate available devices or connection names for the particular platform?

If not through JOGL, how would I go about doing this? I'll try looking through the GDI documentation while I wait. Maybe I'll get lucky