SFML community forums

Help => Window => Topic started by: slotdev on July 25, 2011, 10:45:24 pm

Title: Multiple SFML applications/windows
Post by: slotdev on July 25, 2011, 10:45:24 pm
Hi

I want to write a game menu system, using SFML to display the different games the player can choose, and then launch that game.

When they exit, the menu must re-launch and the process can repeat.

Can SFML (or Windows..) handle multiple SFML applications open at one time?

When the player selects a game, I need to disable rendering in the menu application and maybe even minimize it. I guess this is easy to do?

Thanks
Title: Multiple SFML applications/windows
Post by: Ceylo on July 26, 2011, 08:05:23 am
Are these games distinct programs ?
Title: Multiple SFML applications/windows
Post by: slotdev on July 26, 2011, 09:29:02 am
Yes :)
Title: Multiple SFML applications/windows
Post by: Ceylo on July 26, 2011, 10:45:23 am
Thus I suppose your app is a kind of launcher? And as Windows can run several programs, I don't see any reason for not being able to run several SFML applications.
Title: Multiple SFML applications/windows
Post by: slotdev on July 26, 2011, 12:51:45 pm
Yes exactly - but SDL doesn't let you run multiple SDL apps at once. I was hoping SFML doesn't have the same problem, as it's REALLY frustrating!
Title: Multiple SFML applications/windows
Post by: Laurent on July 26, 2011, 12:59:26 pm
Quote
Yes exactly - but SDL doesn't let you run multiple SDL apps at once.

This would be very surprising.
Maybe you're talking about having several windows in the same application?
Title: Multiple SFML applications/windows
Post by: slotdev on July 26, 2011, 03:10:05 pm
Quote from: "Laurent"
Quote
Yes exactly - but SDL doesn't let you run multiple SDL apps at once.

This would be very surprising.
Maybe you're talking about having several windows in the same application?


No, if you run 2 SDL apps at the same time, it explodes. I don't know why - something to do with DirectX and window management.

Anyway, enough SDL, more SFML :D