From 2186240198bd82ecd08cac8937bed2b3c4e29623 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 28 Nov 2018 00:13:11 -0800 Subject: libix3: disambiguate ix3_search_status_t Previously one could only say stop/ignore/continue from the search callback. There was no way to say stop and ignore, or stop but don't ignore. Now there are basically two classes of returns, stop and continue, and each of those have ignore/don't ignore sub-statuses. The naming is changed to STOP vs. MORE and HIT vs. MISS for brevity: typedef enum ix3_search_status_t { IX3_SEARCH_STOP_MISS, IX3_SEARCH_STOP_HIT, IX3_SEARCH_MORE_MISS, IX3_SEARCH_MORE_HIT, } ix3_search_status_t; --- src/ix3.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/ix3.h') diff --git a/src/ix3.h b/src/ix3.h index 81feaca..f850b81 100644 --- a/src/ix3.h +++ b/src/ix3.h @@ -23,9 +23,10 @@ typedef struct bb3f_t bb3f_t; typedef struct v3f_t v3f_t; typedef enum ix3_search_status_t { - IX3_SEARCH_STOP, - IX3_SEARCH_IGNORE, - IX3_SEARCH_CONTINUE + IX3_SEARCH_STOP_MISS, + IX3_SEARCH_STOP_HIT, + IX3_SEARCH_MORE_MISS, + 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); -- cgit v1.2.3