erich666 / GraphicsGems

Code for the "Graphics Gems" book series
Other
1.39k stars 265 forks source link

gemsiii comp issue #4

Closed nyotis closed 7 years ago

nyotis commented 10 years ago

erased #include in GraphicsGems/gemsiii/contour.c and GraphicsGems/gemsiii/filter.c I get bsp.c:337:34: error: passing 'double ' to parameter of incompatible type 'double'; dereference with PointAtDistance(ray, distance, &p);

_gcc version 4.8.2 (MacPorts gcc48 4.8.20)

erich666 commented 10 years ago

I'm finally looking at this issue, and I don't understand what you mean. You erased #include in contour.c and filter.c? Which includes? If anything I had to add an include, stdlib.h, to filter.c. I'll be trying to get all these to compile under Visual Studio, it's quite the task.

PointAtDistance(ray, *distance, &p); is a good catch, I've fixed this, thanks. The whole bsp.c piece of code is skeletal in places, but we can at least fix this bit.

erich666 commented 7 years ago

I think this one is now fixed (a mere two years later I realized I should close this issue if so) - give it a look if you wish and let me know if the latest code is working for you.

erich666 commented 7 years ago

Closing for lack of response.