summaryrefslogtreecommitdiffstats
path: root/tests/raytrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/raytrace.c')
-rw-r--r--tests/raytrace.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/raytrace.c b/tests/raytrace.c
index bb26f58..7ea28da 100644
--- a/tests/raytrace.c
+++ b/tests/raytrace.c
@@ -24,6 +24,7 @@
int
main() {
+ dmnsn_progress *progress;
FILE *file;
dmnsn_scene *scene;
dmnsn_object *sphere, *cube;
@@ -71,10 +72,14 @@ main() {
);
dmnsn_array_push(scene->objects, &cube);
- dmnsn_raytrace_scene(scene);
+ progress = dmnsn_raytrace_scene_async(scene);
+ progressbar("Raytracing scene: ", progress);
+ dmnsn_finish_progress(progress);
file = fopen("raytrace.png", "wb");
- dmnsn_png_write_canvas(scene->canvas, file);
+ progress = dmnsn_png_write_canvas_async(scene->canvas, file);
+ progressbar("Writing PNG file: ", progress);
+ dmnsn_finish_progress(progress);
dmnsn_delete_cube(cube);
dmnsn_delete_sphere(sphere);