include/container.h
branchpyrit
changeset 84 6f7fe14782c2
parent 82 930a2d3ecaed
child 91 9d66d323c354
equal deleted inserted replaced
83:e3a2a5b26abb 84:6f7fe14782c2
    46 	virtual ~Container() {};
    46 	virtual ~Container() {};
    47 	virtual void addShape(Shape* aShape);
    47 	virtual void addShape(Shape* aShape);
    48 	//void addShapeNoExtend(Shape* aShape) { shapes.push_back(aShape); };
    48 	//void addShapeNoExtend(Shape* aShape) { shapes.push_back(aShape); };
    49 	virtual Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray,
    49 	virtual Shape *nearest_intersection(const Shape *origin_shape, const Ray &ray,
    50 		Float &nearest_distance);
    50 		Float &nearest_distance);
    51 	virtual void packet_intersection(const Shape **origin_shapes, const Ray *rays,
    51 	virtual void packet_intersection(const Shape **origin_shapes, const RayPacket &rays,
    52 		Float *nearest_distances, Shape **nearest_shapes);
    52 		Float *nearest_distances, Shape **nearest_shapes);
    53 
    53 
    54 	virtual void optimize() {};
    54 	virtual void optimize() {};
    55 
    55 
    56 	ShapeList & getShapes() { return shapes; };
    56 	ShapeList & getShapes() { return shapes; };