SFML community forums

Help => Graphics => Topic started by: heishe on February 16, 2011, 11:05:02 pm

Title: Quick question regarding copying of sprites.
Post by: heishe on February 16, 2011, 11:05:02 pm
When I copy a sprite

( spritea  = spriteb or my_sprite = new sf::Sprite(someothersprite))

does it create a hardcopy of the image or does it just copy pointers to the copied image.
Title: Quick question regarding copying of sprites.
Post by: Laurent on February 16, 2011, 11:10:35 pm
A sprite is not an image, images are sf::Image. So when you copy a sprite, all you copy internally is a few floats.