1
Graphics / Using setTexture for sprites as function parameters
« on: August 17, 2014, 04:05:56 am »
I'm sorta a noob with c++ and sfml, so bear with me if this is a stupid question. I can't seem to use the setTexture function while referring to it's sprite as a parameter. Here is an example:
This code compiles, but the image simply does not appear. If I create a texture and apply it in exactly the same way, except by referring to the sprite directly, it works fine. Is there anything I can do to make this work? Or do I have to work around it.
(click to show/hide)