multiple lines of text
Hi.
I would like some help on how to display multiple lines of text
using nehe lesson17 without having to call glPrint over and over again.
thanks in advance.
Romance is dead,it was bougth by Disney and Hallmark and sold to the public in small portions.
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"
DaHeR
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"
DaHeR
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 :
glBeginPrinting();
glPrint("something");
glPrint("something else");
glEndPrinting();
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 :
glBeginPrinting();
glPrint("something");
glPrint("something else");
glEndPrinting();
"THE INFORMATION CONTAINED IN THIS REPORT IS CLASSIFIED; DO NOT GO TO FOX NEWS TO READ OR OBTAIN A COPY." , the pentagon
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement