Mirai-Team / mirai-project

C++ library for games making purposes.
Other
3 stars 0 forks source link

Use mp::AnimatedSprite instead of sf::Sprite in GUI elements. #64

Open CBenoit opened 9 years ago

CBenoit commented 9 years ago

Currently, sf::Sprite objects are used in GUI elements and animations are performed by changing the texture. However as we know, changing sub-rectangle of the texture displayed by using a sprite sheet is more efficient and that's what mp::AnimatedSprite does.