From 28c0347ab1af0adec0249788f8351b0bde06297e Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 27 Nov 2018 23:47:46 -0800 Subject: libix3: add ix3_reset() This basically amounts to a pad_reset() wrapper. Also incorporated resets into the test, while fixing a stupid bug there. --- src/ix3.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ix3.h') diff --git a/src/ix3.h b/src/ix3.h index 5a8d2b1..81feaca 100644 --- a/src/ix3.h +++ b/src/ix3.h @@ -33,6 +33,7 @@ typedef ix3_search_status_t (*ix3_search_cb)(void *cb_context, ix3_object_t *ix3 ix3_t * ix3_new(bb3f_t *aabb, unsigned max_per_node, unsigned max_depth); void ix3_free(ix3_t *ix3); ix3_object_t * ix3_object_new(ix3_t *ix3, v3f_t *position, v3f_t *origin, bb3f_t *aabb, void *object); +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); -- cgit v1.2.3