Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Sprite rotation help.  (Read 1765 times)

0 Members and 1 Guest are viewing this topic.

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Sprite rotation help.
« 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);

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Sprite rotation help.
« Reply #1 on: July 08, 2011, 09:09:03 pm »
Why don't you just try?
Laurent Gomila - SFML developer

blueeyedlion

  • Jr. Member
  • **
  • Posts: 61
    • View Profile
Sprite rotation help.
« Reply #2 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.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Sprite rotation help.
« Reply #3 on: July 08, 2011, 09:34:30 pm »
No it's not.
Laurent Gomila - SFML developer