From 546c456320a11bb79ba33f65892e0a3252d822d2 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 5 Oct 2009 22:19:31 +0000 Subject: Add bounding boxes to objects. --- libdimension/dimension/object.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libdimension/dimension/object.h') 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; -- cgit v1.2.3