View Full Version : Fog class

05-12-2001, 06:30 AM
Hey guys,
I almost finished with a fog class for a game me and my friends are making. currently it only has "EnableFog", and StopFog. i want to be able to have a bool value in the class, thats like:
MakeFog(float startfog, float endfog, float density, bool onoff);

I've made the other things before "onoff". how can I make the onoff thing? i mean if i add it, the compiler says function overloading. http://www.opengl.org/discussion_boards/ubb/frown.gif help

05-13-2001, 09:12 AM
huh? I dont understand the question much. Do you want to make 2 fog functions, one with the bool and one without?

Or do you want a default value for the bool, so it's only an optional parameter?

Please elaborate for further discussion.


05-13-2001, 11:22 AM
Its ok guys, i figured it out http://www.opengl.org/discussion_boards/ubb/smile.gif