I'm not the best with C++ and was wondering how I can pass a sprite object as a parameter in a function.. I have an example below.
Note the example serves no purpose, I'm just wondering how this is executed correctly..
This is the function:
void SetX(sf::Sprite object)
{
object.SetX(100);
}
This is the call to the function:
SetX(Sprite3);