SFML community forums

Help => General => Topic started by: dabo on October 04, 2007, 10:41:18 am

Title: Best way to draw a lot of text
Post by: dabo on October 04, 2007, 10:41:18 am
Hi, I hope this is the right place to put this...

I'm thinking of starting a manager game project (a lite version of Football Manager, Eastside Hockey Manager etc.). Those kind of games show a lot of info on the screen at the same time, how would you do it? It feels like I'm gonna need a million :) instances of the String class.

For example when you show the roster, for each player I would need to show name, birthdate and year, length, weight, morale, all his atributes(shooting, skating, passing etc.) the list goes on.

All thoughts are welcome.
Title: Best way to draw a lot of text
Post by: Srejv on October 05, 2007, 12:02:02 am
Personally I use just one instance of the String thing, using SetText for the textchange. But it probably would be wise to use a few different string instances if you plan to use more than one type of font. :>
Title: Best way to draw a lot of text
Post by: dabo on October 05, 2007, 12:25:37 pm
Quote from: "Srejv"
Personally I use just one instance of the String thing, using SetText for the textchange. But it probably would be wise to use a few different string instances if you plan to use more than one type of font. :>


How do I achieve that? using only one string instance to draw all the text?
Title: Best way to draw a lot of text
Post by: dabo on October 07, 2007, 11:59:10 am
I got it working now, thanks for the tips.