This topic is now archived and is closed to further replies.

Load Runner

multiple lines of text

Recommended Posts

come on,
its very simple u just make a function like Printf2()
define the max number of chars in one line to insert ''\n'' into the string
then pass this string into a string seperator, the string seperator should seperate the string in to another string buffer when ''\n'' found and then call glPrintf then translate down (char hight) or whatever then pass the another string ... etc

"The Railgun Master"

Share this post

Link to post
Share on other sites
You could put glPrint in a class (with the other font functions)
Make a function glBeginPrinting wich handles the initializing of glPrint, modify glPrint so it only does the printing, and create glEndPrinting wich will restore everything as it was before the printing. You would have code like this :

glPrint("something else");

Share this post

Link to post
Share on other sites