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

Author Topic: [Sprite global bounds not updating on windows resize]  (Read 2281 times)

0 Members and 1 Guest are viewing this topic.

kuraigu

  • Newbie
  • *
  • Posts: 3
    • View Profile
[Sprite global bounds not updating on windows resize]
« 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.

kuraigu

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: [Sprite global bounds not updating on windows resize]
« Reply #1 on: February 10, 2018, 09:13:38 am »
Nevermind....I found what I was looking for.

vals26

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Re: [Sprite global bounds not updating on windows resize]
« Reply #2 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

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: [Sprite global bounds not updating on windows resize]
« Reply #3 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?
Back to C++ gamedev with SFML in May 2023

 

anything