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

Author Topic: Changes in 2.0  (Read 2739 times)

0 Members and 1 Guest are viewing this topic.

Khnemu

  • Newbie
  • *
  • Posts: 11
    • View Profile
Changes in 2.0
« on: October 24, 2012, 05:30:48 pm »
Was it really necessary to change names in 2.0 so that i now have to check every function in my programs ?
I mean..."move" instead of "Move". How is that going to improve anything ?
I know sfml is a lot of work and all but still...sometimes you have to wonder why you make those changes.
« Last Edit: October 24, 2012, 06:37:43 pm by Khnemu »

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Name changes in 2.0
« Reply #1 on: October 24, 2012, 05:50:52 pm »
This post was not really necessary, was it? ;)

Naming conventions were discussed months ago, please refer to the corresponding forum thread if you want to know why it was changed. I have nothing more to say than what's said there.
Laurent Gomila - SFML developer

Khnemu

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Name changes in 2.0
« Reply #2 on: October 24, 2012, 05:57:29 pm »
It was not necessary but it helps with the frustration  :-\
Problem is it makes 1.6 and older code a pain to update.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Name changes in 2.0
« Reply #3 on: October 24, 2012, 06:04:13 pm »
I know... I'm really sorry.

But now, the good thing is that, starting from SFML 2.0, the API will remain backward compatible. This means that the API will no longer be broken by a minor version, your 2.0 code will still compile and run fine with SFML 2.9.
Laurent Gomila - SFML developer

Khnemu

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Name changes in 2.0
« Reply #4 on: October 24, 2012, 06:12:03 pm »
While i'm here is there a complete (and accurate) list of the changes ?
I'm trying to port an old animation system i did around 2 years ago and even after changing names and switching images to textures i'm having some weird behavior (especially with texturerects).
And sorry for the initial post, i was just frustrated a bit.  ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Name changes in 2.0
« Reply #5 on: October 24, 2012, 06:21:36 pm »
Quote
While i'm here is there a complete (and accurate) list of the changes ?
There's a list of changes somewhere on this board, but it may not be complete / accurate. However it should contain most of the important changes, since almost nothing changed during the last months.

Quote
especially with texturerects
They are now defined with <width, height> instead of <right, bottom> ;)

Quote
And sorry for the initial post, i was just frustrated a bit.
No problem, this kind of reaction is expected and I was prepared for it when I did that modification ;D
Laurent Gomila - SFML developer

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Name changes in 2.0
« Reply #6 on: October 24, 2012, 06:24:06 pm »
Laurent Gomila - SFML developer

Khnemu

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Name changes in 2.0
« Reply #7 on: October 24, 2012, 06:24:49 pm »
Quote
especially with texturerects
They are now defined with <width, height> instead of <right, bottom> ;)
Aaaah this might be my problem...Thanks ;)
This is a sneaky one since it compiles just fine...

edit: yup, that was it.
Might want to put that in bold red in the changelog ^^
« Last Edit: October 24, 2012, 06:48:06 pm by Khnemu »

FRex

  • Hero Member
  • *****
  • Posts: 1846
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Name changes in 2.0
« Reply #8 on: October 24, 2012, 06:26:37 pm »
There's changelog near downloads, I don't know how accurate(from before case change):
http://www.sfml-dev.org/download/2.0-rc/changelog.txt
Back to C++ gamedev with SFML in May 2023

 

anything