src/raytracer.h
branchpyrit
changeset 22 76b7bd51d64a
parent 21 79b516a3803d
child 23 7e258561a690
--- a/src/raytracer.h	Fri Nov 30 00:44:51 2007 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,57 +0,0 @@
-/*
- * C++ RayTracer
- * file: raytracer.h
- *
- * Radek Brich, 2006
- */
-
-#ifndef RAYTRACER_H
-#define RAYTRACER_H
-
-#include <vector>
-
-#include "common.h"
-#include "kdtree.h"
-#include "scene.h"
-
-using namespace std;
-
-class Raytracer;
-struct RenderrowData {
-	Raytracer *rt;
-	int w;
-	Vector3 eye, dfix, dx, dy;
-	float *iter;
-};
-
-class Raytracer
-{
-	Container *top;
-	Camera *camera;
-	vector<Light*> lights;
-	Colour bg_colour;
-	int ao_samples;
-	float ao_distance, ao_angle;
-	int num_threads;
-	int subsample;
-	int max_depth;
-
-	Vector3 SphereDistribute(int i, int n, float extent, Vector3 &normal);
-public:
-	Raytracer(): top(NULL), camera(NULL), lights(), bg_colour(0.0, 0.0, 0.0),
-		ao_samples(0), num_threads(4), subsample(8), max_depth(4) {};
-	void render(int w, int h, float *buffer);
-	Colour raytrace(Ray &ray, int depth, Shape *origin_shape);
-	void addshape(Shape *shape) { top->addShape(shape); };
-	void addlight(Light *light);
-	void setCamera(Camera *cam) { camera = cam; };
-	void setTop(Container *atop) { top = atop; };
-	Container *getTop() { return top; };
-	int getSubsample() { return subsample; };
-	void setMaxDepth(int newdepth) { max_depth = newdepth; };
-
-	void ambientocclusion(int samples, float distance, float angle);
-	void setThreads(int num) { num_threads = num; };
-};
-
-#endif