SDL and multiple screens support

BobbyWatson
Unregistered
 
Post: #1
I don't know if anyone here actually has the answer to his question, but... Does anybody know if there is support in SDL for multiple screen? More specifically, is there a way to use a secondary display in SDL? Will SDL crash if there is more than one display on the system?

I searched the entire SDL website for this information, their mailing list archive, but unfortunately the topic seems to be something that nobody talks about.

EDIT : As sealfin noticed, I meant "monitors", and not screens. Sorry about that.
Quote this message in a reply
Moderator
Posts: 698
Joined: 2002.04
Post: #2
I don't know specifically about multiple screens, but unless you've hacked SDL itself or hacked around with the window manager (i.e. in platform specific specifiec ways), there is no support in SDL for multiple windows; whether this helps or not... somebody queried about support for multiple-monitors on the SDL mailing list back in May, but they never received an on-list reply.

Mark Bishop
--
Student and freelance OS X & iOS developer
Quote this message in a reply
Sage
Posts: 1,232
Joined: 2002.10
Post: #3
Well, it definitely doesn't crash; Space Barrage uses SDL and works fine on my dual-display setup. It just blanks out the other display.

To do dual-fullscreen displays you need the capability to manage two surfaces & contexts. Can SDL do that?
Quote this message in a reply
Member
Posts: 233
Joined: 2003.05
Post: #4
It can't manage more than one window. You can manage many surfaces, but only one display surface. So, I'm assuming it isn't possible for SDL to display imagery (besides black) on more than one display device.

I believe there is an SDL 2.0 out there in vaporwareville that has this as one of the key issues to address, but that is a long term rewrite project and there is no ETA. It could be a year it could be 10 years. Wink For now they are focused on continuing to support and update sdl 1.

"Pay no attention to that man behind the curtain." - Wizard of Oz
Quote this message in a reply
BobbyWatson
Unregistered
 
Post: #5
Thanks a lot, that's pretty much what I wanted to hear. Thanks everyone!
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Blending when changing screens Blake 9 3,372 Oct 18, 2003 03:05 AM
Last Post: Fenris