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

Author Topic: Has GetSize() and SetCenter() been deprecated  (Read 5465 times)

0 Members and 1 Guest are viewing this topic.

TwoFingeredPointer

  • Newbie
  • *
  • Posts: 4
    • View Profile
Has GetSize() and SetCenter() been deprecated
« 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?


G.

  • Hero Member
  • *****
  • Posts: 1593
    • View Profile
Re: Has GetSize() and SetCenter() been deprecated
« Reply #2 on: August 30, 2015, 07:35:17 am »
Don't forget that there are good 2.3 tutorials.

 

anything