summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2010-05-31 11:39:36 -0600
committerTavian Barnes <tavianator@gmail.com>2010-05-31 11:39:36 -0600
commit8863129c6e7e57b7c4ca3fce5fece9aae8a9b7b7 (patch)
tree2f840bdd7301d50975edd3003d8044d5a8b913bf /libdimension/dimension
parent1b2a77ba356407268b078062fa9ab4ff9853d348 (diff)
downloaddimension-8863129c6e7e57b7c4ca3fce5fece9aae8a9b7b7.tar.xz
Add precompute callback to objects.
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;