SFML community forums

Help => Window => Topic started by: DrAgonmoray on July 31, 2012, 07:08:28 am

Title: Multimonitor Window
Post by: DrAgonmoray on July 31, 2012, 07:08:28 am
Hello. I've been doing a lot of searching using both the site's search feature and google, but I couldn't find any answers.

From what I understand, SFML doesn't support 2 fullscreen windows. Is it possible to make a single non-fullscreen (but unstyled) that extends between multiple displays? If so, is there a way to detect the total resolution (or min and max extents, in case the monitors are sized differently)

Thank you.
Title: Re: Multimonitor Window
Post by: Laurent on July 31, 2012, 07:59:46 am
SFML has currently no clean support for multiple monitors. Apparently, what you want to do doesn't work. There was a thread about it on the forum, if you can find it.
Title: Re: Multimonitor Window
Post by: DrAgonmoray on July 31, 2012, 08:21:49 am
Oh, thats unfortunate.

I appreciate the response anyway
Title: Re: Multimonitor Window
Post by: DavidJohns on August 03, 2012, 11:05:29 pm
You can call OS calls specific to your platform to determine the number of monitors and add the sizes up and make a single window.  I am doing something similar by opted to use two windows putting each window on monitor.  Attached is a modified main.cpp from the template for MacOS that shows how it works on the Mac.  I'm new to SFML so I don't know if my way of doing multiple windows is kosher or not, but it seems to work.

DJ

[attachment deleted by admin]