include/raytracer.h
branchpyrit
changeset 90 f6a72eb99631
parent 84 6f7fe14782c2
child 91 9d66d323c354
--- a/include/raytracer.h	Tue Apr 29 13:56:29 2008 +0200
+++ b/include/raytracer.h	Tue Apr 29 23:31:08 2008 +0200
@@ -93,9 +93,11 @@
 	void addShape(Shape *shape) { top->addShape(shape); };
 	void addLight(Light *light) { lights.push_back(light); };
 	void setSampler(Sampler *sampl) { sampler = sampl; };
+	Sampler *&getSampler() { return sampler; };
 	void setCamera(Camera *cam) { camera = cam; };
+	Camera *&getCamera() { return camera; };
 	void setTop(Container *atop) { top = atop; };
-	Container *getTop() { return top; };
+	Container *&getTop() { return top; };
 
 	void setBgColour(const Colour &bg) { bg_colour = bg; };
 	void setMaxDepth(int newdepth) { max_depth = newdepth; };