diff -r f6a72eb99631 -r 9d66d323c354 include/container.h --- a/include/container.h Tue Apr 29 23:31:08 2008 +0200 +++ b/include/container.h Fri May 02 13:27:47 2008 +0200 @@ -3,7 +3,7 @@ * * This file is part of Pyrit Ray Tracer. * - * Copyright 2007 Radek Brich + * Copyright 2007, 2008 Radek Brich * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -48,14 +48,17 @@ //void addShapeNoExtend(Shape* aShape) { shapes.push_back(aShape); }; virtual Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray, Float &nearest_distance); - virtual void packet_intersection(const Shape **origin_shapes, const RayPacket &rays, - Float *nearest_distances, Shape **nearest_shapes); virtual void optimize() {}; ShapeList & getShapes() { return shapes; }; virtual ostream & dump(ostream &st); + +#ifndef NO_SSE + virtual void packet_intersection(const Shape **origin_shapes, const RayPacket &rays, + Float *nearest_distances, Shape **nearest_shapes); +#endif }; #endif