tavli
diff src/object.h @ 3:94aff2ff1934
too much?
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 22 Jun 2015 21:46:57 +0300 |
parents | 3fcd7b4d631f |
children | b41ceead1708 |
line diff
1.1 --- a/src/object.h Mon Jun 22 05:15:39 2015 +0300 1.2 +++ b/src/object.h Mon Jun 22 21:46:57 2015 +0300 1.3 @@ -2,6 +2,7 @@ 1.4 #define OBJECT_H_ 1.5 1.6 #include "mesh.h" 1.7 +#include "geom.h" 1.8 1.9 class Object { 1.10 private: 1.11 @@ -19,6 +20,8 @@ 1.12 Mesh *get_mesh() const; 1.13 1.14 void draw() const; 1.15 + 1.16 + bool intersect(const Ray &ray, HitPoint *hit) const; 1.17 }; 1.18 1.19 #endif // OBJECT_H_