Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Multimonitor Window  (Read 1580 times)

0 Members and 1 Guest are viewing this topic.

DrAgonmoray

  • Newbie
  • *
  • Posts: 2
    • View Profile
Multimonitor Window
« 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.
« Last Edit: July 31, 2012, 07:27:45 am by DrAgonmoray »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Multimonitor Window
« Reply #1 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.
Laurent Gomila - SFML developer

DrAgonmoray

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Multimonitor Window
« Reply #2 on: July 31, 2012, 08:21:49 am »
Oh, thats unfortunate.

I appreciate the response anyway

DavidJohns

  • Newbie
  • *
  • Posts: 5
    • View Profile
    • Email
Re: Multimonitor Window
« Reply #3 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]