From c984f4e13279a63391fef5137038e8243810847c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 18 May 2018 13:51:05 -0700 Subject: libix2: rename ix2_object_t functions ix2_insert_object ix2_remove_object ix2_move_object becomes ix2_object_new ix2_object_free ix2_object_move to be more consistent with the other libraries intended to be used with this. --- src/ix2.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ix2.h') diff --git a/src/ix2.h b/src/ix2.h index 54bcd46..7853e60 100644 --- a/src/ix2.h +++ b/src/ix2.h @@ -32,9 +32,9 @@ typedef ix2_search_status_t (*ix2_search_cb)(void *cb_context, ix2_object_t *ix2 ix2_t * ix2_new(aabb_t *aabb, unsigned max_per_node, unsigned max_depth); void ix2_free(ix2_t *ix2); -ix2_object_t * ix2_insert_object(ix2_t *ix2, float x, float y, aabb_t *aabb, void *object); -void ix2_remove_object(ix2_t *ix2, ix2_object_t *object); -ix2_object_t * ix2_move_object(ix2_t *ix2, ix2_object_t *object, float object_x, float object_y, aabb_t *object_aabb); +ix2_object_t * ix2_object_new(ix2_t *ix2, float x, float y, aabb_t *aabb, void *object); +void ix2_object_free(ix2_t *ix2, ix2_object_t *object); +ix2_object_t * ix2_object_move(ix2_t *ix2, ix2_object_t *object, float object_x, float object_y, aabb_t *object_aabb); unsigned ix2_search_by_point(ix2_t *ix2, v2f_t *point, ix2_search_cb cb, void *arg); unsigned ix2_search_by_aabb(ix2_t *ix2, float x, float y, aabb_t *aabb, ix2_search_cb cb, void *arg); unsigned ix2_search_by_ray(ix2_t *ix2, v2f_t *origin, v2f_t *direction, ix2_search_cb cb, void *arg); -- cgit v1.2.3