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

Author Topic: RenderWindow fullscreen.  (Read 3298 times)

0 Members and 1 Guest are viewing this topic.

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
RenderWindow fullscreen.
« on: April 05, 2011, 08:51:33 pm »
Is there a way to toggle between windowed and fullscreen at run time?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
RenderWindow fullscreen.
« Reply #1 on: April 05, 2011, 08:57:24 pm »
Call window.Create again.
Laurent Gomila - SFML developer

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
RenderWindow fullscreen.
« Reply #2 on: April 05, 2011, 08:59:02 pm »
Thanks =)

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
RenderWindow fullscreen.
« Reply #3 on: April 05, 2011, 09:24:45 pm »
So vertical sync only works if I start the app in fullscreen mode. Then if I go to windowed it stops. When I go back to fullscreen it isnt vsynced anymore. Can I remedy this?

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
RenderWindow fullscreen.
« Reply #4 on: April 06, 2011, 02:33:38 am »
Quote from: "vidjogamer"
So vertical sync only works if I start the app in fullscreen mode. Then if I go to windowed it stops. When I go back to fullscreen it isnt vsynced anymore. Can I remedy this?

When you recreate the window all settings are lost so you'll need to reload them from whatever config file your game uses and set the value again.

vidjogamer

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
RenderWindow fullscreen.
« Reply #5 on: April 06, 2011, 01:27:16 pm »
Thanks. Worked like a charm =)

 

anything