diff options
author | Tavian Barnes <tavianator@gmail.com> | 2009-10-05 22:19:31 +0000 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2009-10-05 22:19:31 +0000 |
commit | 546c456320a11bb79ba33f65892e0a3252d822d2 (patch) | |
tree | 4cf9196d2fae88fdc183de3fe6f9b22c4e1e0139 | |
parent | a80c569bf790a546da8d35b33ff8f18758358a31 (diff) | |
download | dimension-546c456320a11bb79ba33f65892e0a3252d822d2.tar.xz |
Add bounding boxes to objects.
-rw-r--r-- | libdimension/dimension/object.h | 3 |
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; |