SFML community forums
General => General discussions => Topic started by: darekg11 on January 20, 2011, 09:19:31 pm
-
Hello, it's rather quick and easy question but I wonder how updating SFML looks like? Right now I am using 1.6 and it's great library but when official 2.0 come out how updating look like? Will coping new libs and dlls be enough? Or will I have to do some changes in code?
Thanks in advance.
-
From 1.6 to 2.0 there are a lot of API changes. You can already start updating now. Just use the SVN version of SFML 2. Like this, you don't have to update very much at once when SFML 2 is released.
No, you have to update everything, not just the binaries. The code must be updated too, especially if you recompile SFML yourself.
-
I did not recompile SFML by myself I used precompiled binaries, so it will be big changes in code?
And i want to move to 2.0 when it will be officialy released.
-
Yes there will be big changes in code -- depending which parts of SFML you use. It is 2.0 because it breaks everything (binary compatibility and API). Otherwise it would just be 1.7 or 1.6.1.
-
It always depends what part of the API you used...
The part that I had to change weren't that big.
WindowSettings -> ContextSettings
sf::String -> sf::Text
sf::String::setText -> sf::Text::setString
That was all... ;-)
-
Well I used all expect Network, anyway I am sure it will be worth it, thanks.