Move from SFML 1.6 to 2.0

Post date: Sep 20, 2012 3:54:55 AM

Class and functions in SFML changed a bit with 2.0. The table shows updates I made for my code to use SFML 2.0.

Class names remain capitalized, but member names and functions start with lower case now. Other notable changes:

sf::Time class is used when specifying quantities of time. You can construct it with the following functions:

sf::seconds (float)

Construct a time value from a number of seconds.

sf::milliseconds (Int32)

Construct a time value from a number of milliseconds.

sf::microseconds (Int64)

Construct a time value from a number of microseconds.

Old header file-names and library file-names remain the same, so no change is needed. There are new header files, such as Keyboard.hpp.

There are many SFML classes I haven't used, which I don't describe here.