napthali
2003.12.13, 12:05 PM
I'm trying to implement volumetric fog in my application, but I can't seem to work the GL extension entry points properly.
I've tried adapting NeHe's Lesson 41 (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=41) using this technote from Apple (http://developer.apple.com/qa/qa2001/qa1188.html), but I keep getting linking errors with multiple definitions of NSGLGetProcAddress and pfglFogCoordfEXT (which is what I'm calling the function), even adding "#ifndef ... #endif"'s for good measure.
Am I going about this the entirely wrong way? Is there a better way to do volumetric fog? If this is indeed the best way, how can I get around this entry point problem?
I've tried adapting NeHe's Lesson 41 (http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=41) using this technote from Apple (http://developer.apple.com/qa/qa2001/qa1188.html), but I keep getting linking errors with multiple definitions of NSGLGetProcAddress and pfglFogCoordfEXT (which is what I'm calling the function), even adding "#ifndef ... #endif"'s for good measure.
Am I going about this the entirely wrong way? Is there a better way to do volumetric fog? If this is indeed the best way, how can I get around this entry point problem?