summaryrefslogtreecommitdiff
path: root/test/raytracer/surface.h
diff options
context:
space:
mode:
Diffstat (limited to 'test/raytracer/surface.h')
-rw-r--r--test/raytracer/surface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/raytracer/surface.h b/test/raytracer/surface.h
new file mode 100644
index 0000000..ac128b2
--- /dev/null
+++ b/test/raytracer/surface.h
@@ -0,0 +1,7 @@
+/* Return the texture coordinates for the given point on the given
+ object. Point in object coords. */
+
+void surface_coords(struct object * obj, struct point * p,
+ /*out*/ int * face,
+ /*out*/ flt * u,
+ /*out*/ flt * v);