SFML community forums

Help => Graphics => Topic started by: neophobe on June 22, 2013, 06:57:40 pm

Title: Why use Sprite instead of textured RectangleShape?
Post by: neophobe on June 22, 2013, 06:57:40 pm
Hello, is there any technical advantage of using the Sprite class instead of just creating a rectangle and applying a texture to it?
Title: Re: Why use Sprite instead of textured RectangleShape?
Post by: Laurent on June 22, 2013, 08:31:15 pm
sf::Sprite is more specialized, which means that both its API and its code are optimized for what it does.