Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Bindings - other languages
»
C
»
Possible bug with sprites and images?
Print
Pages: [
1
]
Author
Topic: Possible bug with sprites and images? (Read 6440 times)
0 Members and 1 Guest are viewing this topic.
TricksterGuy
Jr. Member
Posts: 66
Possible bug with sprites and images?
«
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?
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Possible bug with sprites and images?
«
Reply #1 on:
January 16, 2009, 11:33:17 pm »
Yes, and you even get an error message. Passing a NULL image is not allowed.
Logged
Laurent Gomila - SFML developer
TricksterGuy
Jr. Member
Posts: 66
Possible bug with sprites and images?
«
Reply #2 on:
January 16, 2009, 11:59:09 pm »
I didn't get an error message, just nothing happened. haha
Ok now that I know, I can work around this
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
Logged
Laurent
Administrator
Hero Member
Posts: 32498
Possible bug with sprites and images?
«
Reply #3 on:
January 17, 2009, 10:09:18 am »
Quote
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Bindings - other languages
»
C
»
Possible bug with sprites and images?