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

Author Topic: Shrinking SFML coordinate system  (Read 1677 times)

0 Members and 1 Guest are viewing this topic.

alext94

  • Newbie
  • *
  • Posts: 16
    • View Profile
Shrinking SFML coordinate system
« on: August 11, 2014, 05:40:48 pm »
So the coordinate system is the same as the size of the window , for example you will have a window that is 800,800 and the top left corner is 0,0 and the bottom right corner is 800,800! Can you shrink the coordinate system inside the window ?

For example you will have a window at 800,800 , top left is 0,0 but the bottom right is 1600,1600 ? But the window still only takes up the 800,800 pixels ?

Thankyou :)

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10801
    • View Profile
    • development blog
    • Email
Re: Shrinking SFML coordinate system
« Reply #1 on: August 11, 2014, 06:01:37 pm »
Yes, by using views as described in the official tutorial.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

alext94

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Shrinking SFML coordinate system
« Reply #2 on: August 11, 2014, 07:55:51 pm »
Sorry I didn't see that!

 

anything