void HelloMultitouchApp::draw() { gl::clear(Color(0.66f, 0.66f, 0.66f), true); gl::enableAlphaBlending(); gl::color(Color(1.0f, 0.2f, 0.0f)); //For each active point for (std::map::iterator points_it = active_points.begin(); points_it != active_points.end(); points_it++) { float x = points_it->second.x; float y = points_it->second.y; //Generate a circle at this point's location gl::drawSolidCircle(Vec2f(x, y), 40.0f); gl::drawStrokedCircle(Vec2f(x, y), 50.0f); //Generate a stringstream for each value with which we're concerned std::stringstream xvals; xvals << x; std::stringstream yvals; yvals << y; std::stringstream ids; ids << points_it->first; //Annotate the circle we just drew with the id, x and y values for the corresponding point mTextureFont->drawString("ID: " + ids.str() + " X: " + xvals.str() + " " + " Y: " + yvals.str(), Vec2f(x + 40.0f, y - 40.0f)); } }