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

Author Topic: sf::Sprite::GetWidth/sf::Sprite::GetHeight  (Read 3482 times)

0 Members and 1 Guest are viewing this topic.

zac

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
sf::Sprite::GetWidth/sf::Sprite::GetHeight
« on: May 06, 2008, 06:46:34 pm »
Why on earth have these functions been deleted?
In one situation, I really need those functions, otherwise I had to save the values globally, and this would be far more work.
I would even prefer a "GetRect()" as it exists for sf::String...

Avency

  • Full Member
  • ***
  • Posts: 113
    • View Profile
sf::Sprite::GetWidth/sf::Sprite::GetHeight
« Reply #1 on: May 06, 2008, 07:28:26 pm »
They have been replaced by sf::Sprite::GetSize()
Code: [Select]

sf::Sprite::GetWidth()  --> sf::Sprite::GetSize().x
sf::Sprite::GetHeight() --> sf::Sprite::GetSize().y

 

anything