summaryrefslogtreecommitdiffstats
path: root/tests/testsxx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testsxx.cpp')
-rw-r--r--tests/testsxx.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/tests/testsxx.cpp b/tests/testsxx.cpp
index b4c28d9..114fb4a 100644
--- a/tests/testsxx.cpp
+++ b/tests/testsxx.cpp
@@ -26,10 +26,6 @@ namespace Dimension
Scene
default_scene()
{
- // Background color
- Color background = sRGB(0.0, 0.1, 0.25);
- background.filter(0.1);
-
// Canvas
Canvas canvas(768, 480);
@@ -45,7 +41,7 @@ namespace Dimension
);
// Scene
- Scene scene(background, camera, canvas);
+ Scene scene(camera, canvas);
// Objects in scene
@@ -57,6 +53,14 @@ namespace Dimension
cube.trans(inverse(Matrix::rotation(Vector(0.75, 0.0, 0.0))));
scene.objects().push(cube);
+ // Background color
+ Color background = sRGB(0.0, 0.1, 0.25);
+ background.filter(0.1);
+ scene.background(background);
+
+ // Quality
+ scene.quality(RENDER_FULL);
+
return scene;
}