summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2009-06-13 22:55:32 +0000
committerTavian Barnes <tavianator@gmail.com>2009-06-13 22:55:32 +0000
commit042ef96e2c004a963451edc9efa7074316a360c4 (patch)
tree65140c2248010a79982226ae2ef75ceeae006a02 /libdimension/dimension
parent5e605e80937a02a55e2d2b94bce715ff937e0d26 (diff)
downloaddimension-042ef96e2c004a963451edc9efa7074316a360c4.tar.xz
Pass pointer to object in object callbacks.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/object.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h
index c79d62e..b9702f4 100644
--- a/libdimension/dimension/object.h
+++ b/libdimension/dimension/object.h
@@ -25,8 +25,10 @@
* Objects.
*/
-typedef dmnsn_array *dmnsn_object_intersections_fn(dmnsn_line line);
-typedef int dmnsn_object_inside_fn(dmnsn_vector point);
+typedef dmnsn_array *dmnsn_object_intersections_fn(const dmnsn_object *object,
+ dmnsn_line line);
+typedef int dmnsn_object_inside_fn(const dmnsn_object *object,
+ dmnsn_vector point);
typedef struct {
/* Generic pointer for object info */