From 5a8b1d413e98abd10b8ca6b1eb5eb91987f39ebf Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Fri, 29 Jul 2011 00:38:18 -0600 Subject: Support rendering image subregions. This is the first step to supporting distributed renders. --- libdimension/dimension/scene.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libdimension/dimension') 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; -- cgit v1.2.3