SFML community forums
General => Feature requests => Topic started by: pekl on August 13, 2008, 10:24:37 am
-
In addition to the setText functions, it would be nice to have an append function. Even better would be if it could handle different data types such as integers and floats.
for example, if you would like to display scores in a game.
setText("score: ");
appendInt(4);
-
Like it is said in the tutorial, sf::String is a purely graphical class and has nothing to do with string manipulation. Just use std::string, std::ostringstream or whatever you prefer to format your text.
-
sprintf?
-
sprintf?
Not in C++.
-
Just use std::stringstream and its operator<< to append values of any elementar type.