It's probably very simple, but if you could help me, I'd really apprechiate it.
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.
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
Can you gimme an example of how to do that?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 );
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie