SFML community forums

Bindings - other languages => General => Topic started by: TwoFingeredPointer on August 30, 2015, 12:32:45 am

Title: Has GetSize() and SetCenter() been deprecated
Post by: TwoFingeredPointer on August 30, 2015, 12:32:45 am
Hello, I've just started using SFML after having few nightmare experiences with OpenGL. I'm currently working through an online tutorial. I'm using SFML version 2.3.1, however the tutorial was written for version 1.6

I'm writing much of the code, however I can't figure out how to replace the functions in this line of code

        GetSprite().SetCenter(GetSprite().getSize().x / 2, GetSprite().GetSize().y / 2);

So far I know that I can replace SetCenter() with SetOrigin() but what can I replace GetSize() with?
Title: Re: Has GetSize() and SetCenter() been deprecated
Post by: Jesper Juhl on August 30, 2015, 01:04:15 am
http://www.sfml-dev.org/documentation/2.3/classsf_1_1Sprite.php#a69557a8369bc2e26dd2e2eb2c50f5c90
Title: Re: Has GetSize() and SetCenter() been deprecated
Post by: G. on August 30, 2015, 07:35:17 am
Don't forget that there are good 2.3 tutorials (http://www.sfml-dev.org/tutorials/2.3/).