diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-11-27 23:47:46 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-11-27 23:50:58 -0800 |
commit | 28c0347ab1af0adec0249788f8351b0bde06297e (patch) | |
tree | 74635d38ff8a4bf0022095391ea978ffc8c6d7bb /src/ix3.h | |
parent | b62ceffebf1e26d7cb8e9c1edb52020a803e6713 (diff) |
libix3: add ix3_reset()
This basically amounts to a pad_reset() wrapper.
Also incorporated resets into the test, while fixing a stupid
bug there.
Diffstat (limited to 'src/ix3.h')
-rw-r--r-- | src/ix3.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |