SFML community forums
Help => Graphics => Topic started by: Nesvi on June 27, 2012, 11:00:40 pm
-
Hi,
First , congratulations for sfml, i love it ;). Since some months i have been developing an pseudo-infinite tile system for my game, now i have a doubt. What is the limit of movement of a view? integer ? can i change it to unsigned long long?(i made my own scrolling system, but i think that the developer of sfml knows how to get a better performance).
Thanks, ;)
-
SFML uses floats for units of the 2D world. So you can go far but you may lose precision.
-
That was other question i had, the float unit control pixels in 1:1 zoom, and the non integer part is used when you use the zoom?
-
You could've easily looked at the source code (http://www.sfml-dev.org/documentation/2.0/View_8hpp_source.php) instead of waiting for an answer.
I don't see anything that would deal with integers, i.e. everything is using floats and they are fine if you don't zoom too much or move too far away.