From 4e38691f65d2f780910b2440393811d908ada534 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 8 Jan 2010 00:17:34 -0500 Subject: Kill DMNSN_RENDER_OBJECTS. --- libdimension/dimension/scene.h | 9 ++++----- libdimension/raytrace.c | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'libdimension') 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, -- cgit v1.2.3