+ for (size_t i=0; i<players.size(); i++) {
+ std::stringstream msg;
+ msg << "player " << players[i]->getName() << " has " << players[i]->getScore() << " points." << std::endl;
+ std::cout << msg.str();
+ playerTextFields[i].text = msg.str();
+ }
+ render(dpy, w, gc, blackColor, toRender);
+
+ sleep(5);