So I have my class :
class myClass{
private :
sf::Sprite my_sprite;
public :
void set_position( sf::Vector2f my_vector ) { my_sprite.setPosition( my_vector ); }
}
in main I have :
myClass class ;
sf::Vector2f someVector ;
someVector.x = (float) 50 ;
someVector.y = (float) 100 ;
class.set_position( someVector ) ; //DOES NOT WORK. WHEN I DRAW THE OBJECT , THE POSITION IS STILL 0, 0