SFML community forums

Help => Graphics => Topic started by: zac on May 06, 2008, 06:46:34 pm

Title: sf::Sprite::GetWidth/sf::Sprite::GetHeight
Post by: zac 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...
Title: sf::Sprite::GetWidth/sf::Sprite::GetHeight
Post by: Avency 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