SFML community forums

Help => Graphics => Topic started by: blueeyedlion on July 08, 2011, 07:33:15 pm

Title: Sprite rotation help.
Post by: blueeyedlion on July 08, 2011, 07:33:15 pm
If I do this, will I end up with a 15 * 15 sprite rotated 90 degrees clockwise around the centre pixel?

Code: [Select]
mySprite.SetSubRect (sf::IntRect (62, 0, 76, 14));
mySprite.SetCenter (7, 7);
mySprite.Rotate (90);
Title: Sprite rotation help.
Post by: Laurent on July 08, 2011, 09:09:03 pm
Why don't you just try?
Title: Sprite rotation help.
Post by: blueeyedlion on July 08, 2011, 09:19:14 pm
I did, but multiple things went horribly wrong and I want to know if this is the source of one of the problems.
Title: Sprite rotation help.
Post by: Laurent on July 08, 2011, 09:34:30 pm
No it's not.