summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
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;