Using SFML 2.4.1, C++11. Basic question.
I want to position a sprite using integer variables.
Given
int x = 120, y = 300;
sf::Sprite my_sprite;
, should I do
my_sprite.setPosition(static_cast<float>(x), static_cast<float>(y));
or
my_sprite.setPosition(sf::Vector2f(sf::Vector2i(x, y)));
or another way?
And why should I do it that way?