I'm creating a function right now but I want to pass all the text I want to render in one function call. Is it possible? Just like what the stringstream do.
Let's say I want to pass:
is there any other way around?Code:stringstream text;
text << "Frame: " << fps << " X: " << x<< " Y: " << y;
renderText(text, 10, 10, 10); // void renderText( what should I put here?, int x, int y, int fsize);