0 Members and 1 Guest are viewing this topic.
char out[16];int score = 5;sprintf(out, "Score: %i", score)sf::Text text(out);renderWindow.Draw(text);
#include <sstream>std::ostringstream oss;oss << score;sf::Text text(oss.str());