summaryrefslogtreecommitdiff
path: root/src/ix3.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-12-26 20:40:01 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-12-26 22:03:22 -0800
commit6a2ee7ef7198d23ba89429683bebaf553ec2a1fa (patch)
treec4e23b1ffed49119e9ebe404d07e26143c6c28b5 /src/ix3.h
parente82594193f8076ee99fd831d5cd3f04fb19c3ebb (diff)
libix3: s/ix3_search_cb/ix3_object_cb_t/g
In preparation of adding an aabb-callback based search, rename the existing callback to something more object-specific since that's the context it applies to.
Diffstat (limited to 'src/ix3.h')
-rw-r--r--src/ix3.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ix3.h b/src/ix3.h
index 99c1530..dd15e9f 100644
--- a/src/ix3.h
+++ b/src/ix3.h
@@ -29,7 +29,7 @@ typedef enum ix3_search_status_t {
IX3_SEARCH_MORE_HIT,
} ix3_search_status_t;
-typedef ix3_search_status_t (ix3_search_cb)(void *cb_context, ix3_object_t *ix3_object, v3f_t *ix3_object_position, bb3f_t *ix3_object_aabb, void *object);
+typedef ix3_search_status_t (ix3_object_cb_t)(void *cb_context, ix3_object_t *ix3_object, v3f_t *ix3_object_position, bb3f_t *ix3_object_aabb, void *object);
ix3_t * ix3_new(bb3f_t *aabb, unsigned max_per_node, unsigned max_depth, unsigned max_asip);
void ix3_free(ix3_t *ix3);
@@ -38,8 +38,8 @@ void ix3_reset(ix3_t *ix3);
void ix3_object_free(ix3_t *ix3, ix3_object_t *object);
ix3_object_t * ix3_object_move(ix3_t *ix3, ix3_object_t *object, v3f_t *object_position, v3f_t *object_origin, bb3f_t *object_aabb);
int ix3_object_aabb_overlap(ix3_t *ix3, ix3_object_t *object, v3f_t *aabb_position, v3f_t *aabb_origin, bb3f_t *aabb);
-unsigned ix3_search_by_point(ix3_t *ix3, v3f_t *point, ix3_search_cb *cb, void *arg);
-unsigned ix3_search_by_aabb(ix3_t *ix3, v3f_t *search_position, v3f_t *search_origin, bb3f_t *search_aabb, ix3_search_cb *cb, void *arg);
-unsigned ix3_search_by_ray(ix3_t *ix3, v3f_t *origin, v3f_t *direction, ix3_search_cb *cb, void *arg);
+unsigned ix3_search_by_point(ix3_t *ix3, v3f_t *point, ix3_object_cb_t *cb, void *arg);
+unsigned ix3_search_by_aabb(ix3_t *ix3, v3f_t *search_position, v3f_t *search_origin, bb3f_t *search_aabb, ix3_object_cb_t *cb, void *arg);
+unsigned ix3_search_by_ray(ix3_t *ix3, v3f_t *origin, v3f_t *direction, ix3_object_cb_t *cb, void *arg);
#endif
© All Rights Reserved