summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/object.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h
index ce57807..3b8768f 100644
--- a/libdimension/dimension/object.h
+++ b/libdimension/dimension/object.h
@@ -48,6 +48,7 @@ typedef struct dmnsn_object dmnsn_object;
/* Object callback types */
+typedef void dmnsn_object_precompute_fn(dmnsn_object *object);
typedef bool dmnsn_object_intersection_fn(const dmnsn_object *object,
dmnsn_line line,
dmnsn_intersection *intersection);
@@ -69,6 +70,7 @@ struct dmnsn_object {
dmnsn_bounding_box bounding_box;
/* Callback functions */
+ dmnsn_object_precompute_fn *precompute_fn;
dmnsn_object_intersection_fn *intersection_fn;
dmnsn_object_inside_fn *inside_fn;
dmnsn_free_fn *free_fn;