Creating large GLWindows on multiple monitor setups
Posted by ac on Nov 14, 2014; 11:47pm
URL: https://forum.jogamp.org/Creating-large-GLWindows-on-multiple-monitor-setups-tp4033552.html
Hello, I'm testing the pure NEWT native windows to create large displays across multiple monitors.
I looked at the com.jogamp.opengl.test.junit.newt.mm.TestScreenMode01cNEWT code to get some ideas, and previous posts in the forum.
What I have observed so far is that as long the size of the GLWindow is smaller than the monitor's viewport size in windows units, then I have no problem to position the GLWindow at a location of my choice. However, once the
To make things more concrete, I'm working on a Retina Mac machine with an external monitor, so when I print the MonitorDevices I see:
Monitor[Id 0x0, 331 x 206 mm, viewport [ 0 / 0 2880 x 1800 ] [pixels], [ 0 / 0 1440 x 900 ] [window], orig [Id 0x1, [ 2880 x 1800 pixels x 32 bpp ] @ 60.0 Hz, flags [], 0 degr], curr [Id 0x1, [ 2880 x 1800 pixels x 32 bpp ] @ 60.0 Hz, flags [], 0 degr], modeChanged false, modeCount 64]
Monitor[Id 0x1, 799 x 449 mm, viewport [ 2880 / 0 1920 x 1080 ] [pixels], [ 1440 / 0 1920 x 1080 ] [window], orig [Id 0x1, [ 1920 x 1080 pixels x 32 bpp ] @ 60.0 Hz, flags [], 0 degr], curr [Id 0x1, [ 1920 x 1080 pixels x 32 bpp ] @ 60.0 Hz, flags [], 0 degr], modeChanged false, modeCount 72]
So I'm creating a GLWindow of various sizes. As long as these sizes are smaller than 1440x900, I can place the window anywhere in the first monitor. However, once the size is somewhat larger than 1440x900, in gets automatically placed at the upper left corner of the second monitor, and the setPostition() method doesn't seem to have any affect.
Another strange thing I noticed is that when if the GLWindow has a size that exceeds the size of the monitor is placed in, and I drag it around, it seems that the frame has exactly the size of the monitor...
Do you have any specific examples to get a better sense of how to use GLWindow, specially under multi-monitor configs?