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

Author Topic: Get the size of rotated sprite?  (Read 1178 times)

0 Members and 1 Guest are viewing this topic.

pauliuc

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • http://www.dustychest.co.nr
Get the size of rotated sprite?
« on: October 22, 2010, 02:40:44 pm »
Hi,

is there a way to retrieve the width and height of a rotated sprite? Not the original one.

Thanks.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Get the size of rotated sprite?
« Reply #1 on: October 22, 2010, 03:14:03 pm »
You can transform the corners of the sprite to global coordinates (TransformToGlobal) and compute the difference on X and Y.
Laurent Gomila - SFML developer