SFML community forums

Help => Graphics => Topic started by: reethok on February 17, 2015, 11:03:17 pm

Title: How to make a resolution independant program in SFML?
Post by: reethok on February 17, 2015, 11:03:17 pm
Hi!

I'm wondering if there is a straightfoward way to scale / calculate positions of the sprites showed on screen depending on the resolution selected, or do I have to manually code it?

Any ideas on how can I do it?

Thank you :)
Title: Re: How to make a resolution independant program in SFML?
Post by: eXpl0it3r on February 17, 2015, 11:23:39 pm
Use a view (http://www.sfml-dev.org/tutorials/2.2/graphics-view.php) or do it by hand. I mean SFML can't mind read how you think a sprite should look like give a resolution. ;)