summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/tests.c2
-rw-r--r--tests/testsxx.cpp14
2 files changed, 11 insertions, 5 deletions
diff --git a/tests/tests.c b/tests/tests.c
index 3696216..8743119 100644
--- a/tests/tests.c
+++ b/tests/tests.c
@@ -101,6 +101,8 @@ dmnsn_new_default_scene()
);
dmnsn_array_push(scene->objects, &cube);
+ scene->quality = DMNSN_RENDER_FULL;
+
return scene;
}
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;
}