From 597b9a13dae1f514ca8afa56bab008cb67d4ac40 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 12 Jul 2009 21:17:20 +0000 Subject: Add ability to set rendering quality. --- tests/tests.c | 2 ++ tests/testsxx.cpp | 14 +++++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) (limited to 'tests') 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; } -- cgit v1.2.3