summaryrefslogtreecommitdiffstats
path: root/tests/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/gl.c')
-rw-r--r--tests/gl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/gl.c b/tests/gl.c
index e6daa3e..8b999af 100644
--- a/tests/gl.c
+++ b/tests/gl.c
@@ -24,10 +24,9 @@
int
main() {
dmnsn_display *display;
- dmnsn_progress *progress;
+ dmnsn_progress *progress, *barprogress;
dmnsn_scene *scene;
dmnsn_canvas *canvas;
- unsigned int i;
/* Set the resilience low for tests */
dmnsn_set_resilience(DMNSN_SEVERITY_LOW);
@@ -64,6 +63,8 @@ main() {
return EXIT_FAILURE;
}
+ barprogress = dmnsn_progressbar_async("Raytracing scene: ", progress);
+
/* Display the scene as it's rendered */
while (dmnsn_get_progress(progress) < 1.0) {
if (dmnsn_gl_write_canvas(scene->canvas) != 0) {
@@ -75,6 +76,8 @@ main() {
dmnsn_display_flush(display);
}
+ dmnsn_finish_progress(barprogress);
+
if (dmnsn_finish_progress(progress) != 0) {
dmnsn_delete_display(display);
dmnsn_delete_default_scene(scene);