summaryrefslogtreecommitdiffstats
path: root/tests/glxx.cpp
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-09 00:32:36 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-09 00:32:36 +0000
commit0015b8757d2168ebfc75fc7ad6475e223d88d71c (patch)
treeac32786cb39ae8b40f0f2c5bf5385ca7dd0d9f19 /tests/glxx.cpp
parent9f1b759e2fac0b15a7ef5a7a527ba66dbdc319b6 (diff)
downloaddimension-0015b8757d2168ebfc75fc7ad6475e223d88d71c.tar.xz
New interface for background progress bars in C++ tests.
Diffstat (limited to 'tests/glxx.cpp')
-rw-r--r--tests/glxx.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/glxx.cpp b/tests/glxx.cpp
index b22111f..e44510b 100644
--- a/tests/glxx.cpp
+++ b/tests/glxx.cpp
@@ -42,12 +42,18 @@ main() {
// Render the scene
Progress progress = raytracer.render_async();
+ std::cout << "Raytracing scene: ";
+ Progress barprogress = Tests::progressbar_async(std::cout, progress);
+
// Display the scene as it's rendered
while (progress.progress() < 1.0) {
writer.write();
display.flush();
}
+ barprogress.finish();
+ std::cout << std::endl;
+
// Make sure we show the completed rendering
progress.finish();
writer.write();