SFML community forums

Help => Window => Topic started by: alext94 on August 11, 2014, 05:40:48 pm

Title: Shrinking SFML coordinate system
Post by: alext94 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 :)
Title: Re: Shrinking SFML coordinate system
Post by: eXpl0it3r on August 11, 2014, 06:01:37 pm
Yes, by using views as described in the official tutorial (http://www.sfml-dev.org/tutorials/2.1/graphics-view.php).
Title: Re: Shrinking SFML coordinate system
Post by: alext94 on August 11, 2014, 07:55:51 pm
Sorry I didn't see that!