diff -r 4c8abb8977dc -r ca7d4c665531 include/raytracer.h --- a/include/raytracer.h Thu May 08 09:21:25 2008 +0200 +++ b/include/raytracer.h Sat May 10 14:29:37 2008 +0200 @@ -64,12 +64,15 @@ const Vector &P, const Vector &N, const Vector &V); void lightScatter(const Ray &ray, const Shape *shape, int depth, const Vector &P, const Vector &normal, bool from_inside, Colour &col); + #ifndef NO_SIMD VectorPacket PhongShader_packet(const Shape* const* shapes, const VectorPacket &P, const VectorPacket &N, const VectorPacket &V); void raytracePacket(RayPacket &rays, Colour *results); #endif - static void *raytrace_worker(void *d); + + NORETURN static void *raytrace_worker(void *d); + public: Raytracer(): top(NULL), camera(NULL), lights(), bg_colour(0., 0., 0.), ao_samples(0), num_threads(4), max_depth(3), use_packets(true)