Made Tracer an abstract class.

This commit is contained in:
2017-01-05 17:59:04 -04:00
parent 96fe34975e
commit d46f4abdab
6 changed files with 147 additions and 115 deletions

20
path_tracer.hpp Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#ifndef PATH_TRACER_HPP
#define PATH_TRACER_HPP
#include "tracer.hpp"
class PathTracer: public Tracer {
public:
bool indirect_l;
PathTracer(): Tracer(), indirect_l(false) { }
PathTracer(int h, int w, float fov, bool il): Tracer(h, w, fov), indirect_l(il) { };
virtual ~PathTracer();
virtual vec3 trace_ray(Ray & r, vector<Figure *> & v_figures, vector<Light *> & v_lights, unsigned int rec_level) const;
};
#endif