SFML community forums
Bindings - other languages => C => Topic started by: TricksterGuy on January 16, 2009, 11:24:05 pm
-
I was testing out drawing sprites and I noticed if I call sfSprite_SetImage and pass NULL, then the sprites image is unchanged. was this intentional?
-
Yes, and you even get an error message. Passing a NULL image is not allowed.
-
I didn't get an error message, just nothing happened. haha
Ok now that I know, I can work around this :P I was expecting that with a null image as its image when you then call sfRenderWindow_DrawSprite(sprite) then the sprite just wouldn't draw.
Thanks
-
I didn't get an error message
The messages are sent to stderr, you can redirect it to a file or show the console to see them.