summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension/object.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-10-05 22:19:31 +0000
committerTavian Barnes <tavianator@gmail.com>2009-10-05 22:19:31 +0000
commit546c456320a11bb79ba33f65892e0a3252d822d2 (patch)
tree4cf9196d2fae88fdc183de3fe6f9b22c4e1e0139 /libdimension/dimension/object.h
parenta80c569bf790a546da8d35b33ff8f18758358a31 (diff)
downloaddimension-546c456320a11bb79ba33f65892e0a3252d822d2.tar.xz
Add bounding boxes to objects.
Diffstat (limited to 'libdimension/dimension/object.h')
-rw-r--r--libdimension/dimension/object.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h
index c70452d..fd0eba1 100644
--- a/libdimension/dimension/object.h
+++ b/libdimension/dimension/object.h
@@ -58,6 +58,9 @@ struct dmnsn_object {
/* Transformation matrix */
dmnsn_matrix trans;
+ /* Bounding box */
+ dmnsn_vector min, max;
+
/* Callback functions */
dmnsn_object_intersection_fn *intersection_fn;
dmnsn_object_inside_fn *inside_fn;