It's probably very simple, but if you could help me, I'd really apprechiate it.
Printable View
It's probably very simple, but if you could help me, I'd really apprechiate it.
>>Then use the standard OpenGL function for drawing a text string.
I don't think there is one.
I think that NeHe has a tutorial or two for drawing text in OpenGL.
Can you gimme an example of how to do that?Quote:
Originally posted by Salem
Yeah, use sprintf() to create a string in memory, converting whatever you want into a string.
Then use the standard OpenGL function for drawing a text string.
I dont think I've ever used sprintf() before.
Code:char s[256];
int n = 10;
sprintf( s, "The value of n is %d", n );