diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-10-19 12:37:32 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-10-19 14:19:43 -0400 |
commit | e9810a7b1aae15320e58371b657a2f963562834d (patch) | |
tree | c74c37b635d7c35773d9b9b57e579763ff946300 /libdimension/tests/render.c | |
parent | b14a87691f42be83691861b97a2f410c25c9c4bb (diff) | |
download | dimension-e9810a7b1aae15320e58371b657a2f963562834d.tar.xz |
Rename progress objects to future objects.
Diffstat (limited to 'libdimension/tests/render.c')
-rw-r--r-- | libdimension/tests/render.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/tests/render.c b/libdimension/tests/render.c index ee63d06..af22691 100644 --- a/libdimension/tests/render.c +++ b/libdimension/tests/render.c @@ -353,11 +353,11 @@ main(void) /* Render the scene */ printf("Rendering scene\n"); - dmnsn_progress *progress = dmnsn_raytrace_scene_async(scene); + dmnsn_future *future = dmnsn_raytrace_scene_async(scene); /* Display the scene as it's rendered */ if (display) { - while (dmnsn_get_progress(progress) < 1.0) { + while (dmnsn_future_progress(future) < 1.0) { if (dmnsn_gl_write_canvas(scene->canvas) != 0) { dmnsn_delete_display(display); dmnsn_delete_scene(scene); @@ -368,7 +368,7 @@ main(void) } } - if (dmnsn_finish_progress(progress) != 0) { + if (dmnsn_future_join(future) != 0) { dmnsn_delete_display(display); dmnsn_delete_scene(scene); fprintf(stderr, "--- Raytracing failed! ---\n"); |