Advertisement

Nehe's GL Print routine

Started by August 25, 2002 09:47 AM
2 comments, last by plates 22 years, 6 months ago
Just a quick question, I notice the routine takes two arguments, a pointer to a constant string, and ... - what I''d like to know is what does the ... represent? and how does the compiler see it? does it automatically concatenate the string and ... or what exactly? - MSDN returned an error when I tried to search for ... hence the reason I ask cheers p.
its the additional parameters.. you can call the func with as much parameters as you want. how to handle them? depends on you..

nehe uses the standart string formating style, meaning the same as printf

printf("%f",float_value); prints out a floatvalue

"take a look around" - limp bizkit
www.google.com
If that's not the help you're after then you're going to have to explain the problem better than what you have. - joanusdmentia

My Page davepermen.net | My Music on Bandcamp and on Soundcloud

Advertisement
Yeah, I understand that, but *how* is ... represented? I mean, if I wanted to pass the arguments that ... contains, how would I do it? char *string = ... isn''t going to work methinks.

Thanks

P.
take a look at the functions and variables starting with va. Look them up in the MSDN.

------------------------------
Baldur K
"Hey! I hate these Microsoft guys! What a rotten compiler! It only accepts 16,384 local variables in a function!"

This topic is closed to new replies.

Advertisement