summaryrefslogtreecommitdiff
path: root/src/ix2.h
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2018-11-27 01:09:06 -0800
committerVito Caputo <vcaputo@pengaru.com>2018-11-27 01:09:06 -0800
commit38b70d0dc5c39e6278bf30c67e1e12f7ac8c1fa0 (patch)
treeb75e952584796461aa11d8db1e3e991d7d3e024b /src/ix2.h
parent4289caa8e9c4802c307bfb69245d8cad956066db (diff)
libpad: add ix2_reset()
This basically amounts to adding a pad_reset() wrapper. Also incorporated resets into the test, while fixing a stupid bug there.
Diffstat (limited to 'src/ix2.h')
-rw-r--r--src/ix2.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ix2.h b/src/ix2.h
index 0f6f69f..b76e174 100644
--- a/src/ix2.h
+++ b/src/ix2.h
@@ -31,6 +31,7 @@ typedef enum ix2_search_status_t {
typedef ix2_search_status_t (*ix2_search_cb)(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_object_position, bb2f_t *ix2_object_aabb, void *object);
ix2_t * ix2_new(bb2f_t *aabb, unsigned max_per_node, unsigned max_depth);
+void ix2_reset(ix2_t *ix2);
void ix2_free(ix2_t *ix2);
ix2_object_t * ix2_object_new(ix2_t *ix2, v2f_t *position, v2f_t *origin, bb2f_t *aabb, void *object);
void ix2_object_free(ix2_t *ix2, ix2_object_t *object);
© All Rights Reserved