summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-07-12 21:17:20 +0000
committerTavian Barnes <tavianator@gmail.com>2009-07-12 21:17:20 +0000
commit597b9a13dae1f514ca8afa56bab008cb67d4ac40 (patch)
tree16d1f85568b839b7847aff9570d43940bee67f15 /tests
parentbcf65bd050d9fbe364a60ab7ec0221539ca2c2af (diff)
downloaddimension-597b9a13dae1f514ca8afa56bab008cb67d4ac40.tar.xz
Add ability to set rendering quality.
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;
}