Logo by mrob - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Check out the originating "3d Mandelbulb" thread here
 
*
Welcome, Guest. Please login or register. December 02, 2025, 01:59:03 PM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: SDL2  (Read 2033 times)
Description: SDL2 resizing and multi-display
0 Members and 1 Guest are viewing this topic.
marius
Fractal Lover
**
Posts: 206


« on: July 21, 2013, 10:29:50 PM »

Looking into switching to SDL2 since it understands multi-display (and multi-window but haven't played with that yet..)

Cooked up a little test that allows a window to be dragged across displays and understands which current display to toggle fullscreen on at its native resolution.

Thought it might be handy for some here; did not find a ready sample out there just yet  grin
Any programmers out there with multi-display mac or linux setups? Does this work?

https://code.google.com/p/boxplorer2/source/browse/trunk/sdl2-test.cc
Logged
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #1 on: July 23, 2013, 05:05:37 PM »

Not sure you need that with linux I think this functionality is handled by the desktop window manager/x11, I use dual monitors 1400x1050 and 1280x1024 and management seems transparent, no problems with fullscreen on one monitor or fullview where one window covers both monitors even with the different resolutions the window looks like it should, dragging windows between them is fine, fullscreen on one monitor adapts to the new monitor size.

is your code for a situation where the window manager gets kicked out and your proggy takes over the entire display and manages it's own windows?
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
marius
Fractal Lover
**
Posts: 206


« Reply #2 on: July 23, 2013, 06:39:24 PM »

Not sure you need that with linux I think this functionality is handled by the desktop window manager/x11, I use dual monitors 1400x1050 and 1280x1024 and management seems transparent, no problems with fullscreen on one monitor or fullview where one window covers both monitors even with the different resolutions the window looks like it should, dragging windows between them is fine, fullscreen on one monitor adapts to the new monitor size.

is your code for a situation where the window manager gets kicked out and your proggy takes over the entire display and manages it's own windows?


Haven't tried multi display linux but on win7 it sure wouldn't work otherwise.
Life is much better now that oculus rendering goes full screen on that display w/o having to duplicate desktops, or worse (disable main desktop)
Logged
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #3 on: July 23, 2013, 07:08:55 PM »

I imagine Mac would be similar, haven't tried oculus
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
Pages: [1]   Go Down
  Print  
 
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.862 seconds with 23 queries. (Pretty URLs adds 0.114s, 2q)