rayzor
diff src/snode.h @ 17:79609d482762
the renderer renders, also fixed an unnoticed matrix conversion problem between scenegraph and min3d
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 14 Apr 2014 07:34:45 +0300 |
parents | a9a948809c6f |
children |
line diff
1.1 --- a/src/snode.h Sun Apr 13 09:54:51 2014 +0300 1.2 +++ b/src/snode.h Mon Apr 14 07:34:45 2014 +0300 1.3 @@ -6,6 +6,7 @@ 1.4 #include "quat.h" 1.5 #include "vmathmat.h" 1.6 #include "vmathray.h" 1.7 +#include "raytrace.h" 1.8 1.9 enum NodeType { 1.10 NODE_NULL, 1.11 @@ -82,7 +83,7 @@ 1.12 1.13 virtual void draw(bool emph = false) const; 1.14 1.15 - virtual bool intersect(const Ray &ray, float *dist = 0) const; 1.16 + virtual bool intersect(const Ray &ray, RayHit *hit = 0) const; 1.17 }; 1.18 1.19 #endif /* SCENE_NODE_H_ */