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

Author Topic: Multiple SFML applications/windows  (Read 2814 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Multiple SFML applications/windows
« 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
SFML 2.1

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Multiple SFML applications/windows
« Reply #1 on: July 26, 2011, 08:05:23 am »
Are these games distinct programs ?
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Multiple SFML applications/windows
« Reply #2 on: July 26, 2011, 09:29:02 am »
Yes :)
SFML 2.1

Ceylo

  • Hero Member
  • *****
  • Posts: 2325
    • View Profile
    • http://sfemovie.yalir.org/
    • Email
Multiple SFML applications/windows
« Reply #3 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.
Want to play movies in your SFML application? Check out sfeMovie!

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Multiple SFML applications/windows
« Reply #4 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!
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Multiple SFML applications/windows
« Reply #5 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?
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Multiple SFML applications/windows
« Reply #6 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
SFML 2.1

 

anything