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

Author Topic: How to make a resolution independant program in SFML?  (Read 1215 times)

0 Members and 1 Guest are viewing this topic.

reethok

  • Newbie
  • *
  • Posts: 23
    • View Profile
    • Email
How to make a resolution independant program in SFML?
« 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 :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: How to make a resolution independant program in SFML?
« Reply #1 on: February 17, 2015, 11:23:39 pm »
Use a view or do it by hand. I mean SFML can't mind read how you think a sprite should look like give a resolution. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/