cpp-raytracer/hittable.hpp
2021-08-28 01:04:31 +02:00

12 lines
283 B
C++

#ifndef HITTABLE_H
#define HITTABLE_H
#include "rtweekend.hpp"
#include "material.hpp"
/* Virtual class that represents objects who could collide against a ray */
struct hittable {
virtual bool hit(const ray& r, float t_min, float t_max, hit_record& rec) const = 0;
};
#endif