summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-01-08 00:17:34 -0500
committerTavian Barnes <tavianator@gmail.com>2010-01-08 00:20:03 -0500
commit4e38691f65d2f780910b2440393811d908ada534 (patch)
treee6635cb322f2cd198a4d43416a914677be751583
parent9ec20f9888ded5ef9c21f91af26e492c958784b9 (diff)
downloaddimension-4e38691f65d2f780910b2440393811d908ada534.tar.xz
Kill DMNSN_RENDER_OBJECTS.
-rw-r--r--libdimension/dimension/scene.h9
-rw-r--r--libdimension/raytrace.c2
2 files changed, 5 insertions, 6 deletions
diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h
index 671bc12..ccf3992 100644
--- a/libdimension/dimension/scene.h
+++ b/libdimension/dimension/scene.h
@@ -27,11 +27,10 @@
typedef enum {
DMNSN_RENDER_NONE = 0,
- DMNSN_RENDER_OBJECTS = 1 << 0,
- DMNSN_RENDER_PIGMENT = 1 << 1,
- DMNSN_RENDER_LIGHTS = 1 << 2,
- DMNSN_RENDER_FINISH = 1 << 3,
- DMNSN_RENDER_TRANSLUCENCY = 1 << 4,
+ DMNSN_RENDER_PIGMENT = 1 << 0,
+ DMNSN_RENDER_LIGHTS = 1 << 1,
+ DMNSN_RENDER_FINISH = 1 << 2,
+ DMNSN_RENDER_TRANSLUCENCY = 1 << 3,
DMNSN_RENDER_FULL = ~DMNSN_RENDER_NONE
} dmnsn_quality;
diff --git a/libdimension/raytrace.c b/libdimension/raytrace.c
index 6d9d0d9..f37c3a7 100644
--- a/libdimension/raytrace.c
+++ b/libdimension/raytrace.c
@@ -248,7 +248,7 @@ dmnsn_raytrace_scene_impl(dmnsn_progress *progress, dmnsn_scene *scene,
/* Set the pixel to the background color */
dmnsn_color color = scene->background;
- if (scene->quality & DMNSN_RENDER_OBJECTS) {
+ if (scene->quality) {
/* Get the ray corresponding to the (x,y)'th pixel */
dmnsn_line ray = (*scene->camera->ray_fn)(
scene->camera,