Login  Register

Re: glwindow on secondary monitor

Posted by Sven Gothel on Dec 24, 2011; 3:33am
URL: https://forum.jogamp.org/glwindow-on-secondary-monitor-tp3593579p3609977.html

On Friday, December 23, 2011 11:20:29 PM Sven Gothel wrote:

>
> For proper multi-monitor support in the big-screen mode,
> eg. MS Windows and X11-Xinerama (which is the default today),
> we need a better ScreenMode abstraction.
>
> This would impact the current ScreenMode API,
> ie.:
>  A - ScreenMode (1) - (n) MonitorMode
>  B - Move ScreenMode.rotation -> MonitorMode.rotation
>  C - Instead of unique ScreenMode's we would only need unique MonitorMode's
>  D - Writing/Modifying would now be for the MonitorMode's .. hmm
>
> One ScreenMode may have multiple MonitorModes (one for each attached monitor)
> where the MonitorMode also contains the rotation.
>
> I guess we have to think about this change a bit more
> - or simply drop proper semantics of ScreenMode in multi monitor mode (todays behavior).

Another idea would be to completly wrap around the details (the single monitors)
and only handle the 'virtual' screen size.

This would make the API simple (no change) and the implementation
would need to know the monitor layout and calculate the virtual screen sizes.
Such impl. may need some time to implement but it's usage would be more easy.

~Sven