From 285f5bec5bb03d4e825e5d866e94008088dd6155 Mon Sep 17 00:00:00 2001 From: xleroy Date: Sat, 9 Aug 2008 08:06:33 +0000 Subject: Ajout nouveaux tests git-svn-id: https://yquem.inria.fr/compcert/svn/compcert/trunk@708 fca1b0fc-160b-0410-b1d3-a4f43f01ea2e --- test/raytracer/eval.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/raytracer/eval.h (limited to 'test/raytracer/eval.h') diff --git a/test/raytracer/eval.h b/test/raytracer/eval.h new file mode 100644 index 00000000..610b5d96 --- /dev/null +++ b/test/raytracer/eval.h @@ -0,0 +1,18 @@ +/* Evaluator for GML */ + +struct closure { + struct array * code; + struct array * env; +}; + +struct surface_characteristics { + flt x, y, z; + flt kd; + flt ks; + flt phong; +}; + +void execute_program(struct array * toklist); + +void surface_function(struct closure * clos, int face, flt u, flt v, + /*out*/ struct surface_characteristics * sc); -- cgit