SFML community forums

Help => Graphics => Topic started by: ElectricRevolt on February 26, 2019, 06:41:38 am

Title: Sprite.getSize() ??? Is there a way to do this for 2.5
Post by: ElectricRevolt on February 26, 2019, 06:41:38 am
I am trying to have the size of a sprite returned so that I can change the origin to center/center but I am not sure how to do this in SFML 2.5. I was told that getSize() was depricated in 1.6.  Any idea how to achieve this?  Thanks.
Title: Re: Sprite.getSize() ??? Is there a way to do this for 2.5
Post by: Laurent on February 26, 2019, 07:55:24 am
Use sprite.getLocalBounds().