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

Author Topic: Get screen resolution  (Read 19416 times)

0 Members and 1 Guest are viewing this topic.

doonay21

  • Newbie
  • *
  • Posts: 2
    • View Profile
Get screen resolution
« on: September 07, 2011, 03:48:41 pm »
Hello there, is there any way to get the screen resolution using SFML? My game will highly depend on this, so yeah, it would be nice to get it done with SFML. Thanks in advance!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Get screen resolution
« Reply #1 on: September 07, 2011, 03:50:27 pm »
The desktop resolution can be retrieved with the VideoMode::GetDesktopMode() function.
Laurent Gomila - SFML developer

doonay21

  • Newbie
  • *
  • Posts: 2
    • View Profile
Get screen resolution
« Reply #2 on: September 07, 2011, 05:30:35 pm »
Meh, of course it is that easy oO Thanks a lot! BTW did I mention that I love you? ;) Nah, just kidding :) I am just really thankful for the SFML, it is great that you made it, thanks!

 

anything