Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Get the size of rotated sprite?
Print
Pages: [
1
]
Author
Topic: Get the size of rotated sprite? (Read 1475 times)
0 Members and 1 Guest are viewing this topic.
pauliuc
Newbie
Posts: 4
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.
Logged
http://www.dustychest.co.nr
- my place
Laurent
Administrator
Hero Member
Posts: 32498
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.
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Get the size of rotated sprite?