diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-01-14 13:05:50 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-01-14 13:05:50 -0500 |
commit | a8b7936b17a2270e6b19cb02f25dedc33a1a076e (patch) | |
tree | 2913a0aa2bc8068cb500a456d1ae616240698508 /libdimension/scene.c | |
parent | 2cbebd8502fa8ca6ca65d83c55e478a3ea502627 (diff) | |
download | dimension-a8b7936b17a2270e6b19cb02f25dedc33a1a076e.tar.xz |
Make number of raytracing worker threads configurable.
Diffstat (limited to 'libdimension/scene.c')
-rw-r--r-- | libdimension/scene.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/libdimension/scene.c b/libdimension/scene.c index 78e1ffb..aec9b12 100644 --- a/libdimension/scene.c +++ b/libdimension/scene.c @@ -33,12 +33,13 @@ dmnsn_new_scene() return NULL; } - scene->camera = NULL; - scene->canvas = NULL; - scene->objects = dmnsn_new_array(sizeof(dmnsn_object *)); - scene->lights = dmnsn_new_array(sizeof(dmnsn_light *)); - scene->quality = DMNSN_RENDER_FULL; - scene->limit = 10; + scene->camera = NULL; + scene->canvas = NULL; + scene->objects = dmnsn_new_array(sizeof(dmnsn_object *)); + scene->lights = dmnsn_new_array(sizeof(dmnsn_light *)); + scene->quality = DMNSN_RENDER_FULL; + scene->limit = 10; + scene->nthreads = 0; } return scene; } |