summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-07-29 00:38:18 -0600
committerTavian Barnes <tavianator@gmail.com>2011-07-29 00:38:18 -0600
commit5a8b1d413e98abd10b8ca6b1eb5eb91987f39ebf (patch)
tree705f357b3e8acddce87578f46cb8f9cb013b36eb /libdimension/dimension
parent9de8a544bc0bae9ebbc2eed10c120a7e14af441e (diff)
downloaddimension-5a8b1d413e98abd10b8ca6b1eb5eb91987f39ebf.tar.xz
Support rendering image subregions.
This is the first step to supporting distributed renders.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/scene.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/libdimension/dimension/scene.h b/libdimension/dimension/scene.h
index 969fa45..41e2360 100644
--- a/libdimension/dimension/scene.h
+++ b/libdimension/dimension/scene.h
@@ -48,6 +48,12 @@ typedef struct dmnsn_scene {
/** Canvas. */
dmnsn_canvas *canvas;
+ /* Support for rendering image subregions. */
+ size_t region_x; /**< The x position of the canvas in the broader image. */
+ size_t region_y; /**< The y position of the canvas in the broader image. */
+ size_t outer_width; /**< Width of the broader image. */
+ size_t outer_height; /**< Height of the broader image. */
+
/** Objects. */
dmnsn_array *objects;