Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - kitchenoven

Pages: [1]
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:
(click to show/hide)
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.

Pages: [1]