SFML community forums

Help => Graphics => Topic started by: doonay21 on September 07, 2011, 03:48:41 pm

Title: Get screen resolution
Post by: doonay21 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!
Title: Get screen resolution
Post by: Laurent on September 07, 2011, 03:50:27 pm
The desktop resolution can be retrieved with the VideoMode::GetDesktopMode() function.
Title: Get screen resolution
Post by: doonay21 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!