SFML community forums

Help => Graphics => Topic started by: kuraigu on February 10, 2018, 08:44:49 am

Title: [Sprite global bounds not updating on windows resize]
Post by: kuraigu on February 10, 2018, 08:44:49 am
So I have this issue...obviously I hate to get the sprite's current size. Whenever I resize the window, the scaling automatically happens, but the global bounds doesn't. How do I fix this, or are there any other ways to get the real time width/height of the sprite? Thanks.
Title: Re: [Sprite global bounds not updating on windows resize]
Post by: kuraigu on February 10, 2018, 09:13:38 am
Nevermind....I found what I was looking for.
Title: Re: [Sprite global bounds not updating on windows resize]
Post by: vals26 on November 15, 2018, 11:46:55 am
Hi,

I'm having your same problem right now.
It might be useful if you can post how you fixed the problem.

Thank you
Title: Re: [Sprite global bounds not updating on windows resize]
Post by: FRex on November 15, 2018, 03:35:48 pm
Global bounds is local bounds with the transform applied (rotation, translation/movement and scaling), they are both AABB (axis aligned bounding box) too. It has nothing to do with Window size. What do you want to do?