summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/test.c b/src/test.c
index 3cb27df..a1918ab 100644
--- a/src/test.c
+++ b/src/test.c
@@ -24,12 +24,12 @@ typedef struct v2f_t {
float x, y;
} v2f_t;
-typedef struct aabb_t {
+typedef struct bb2f_t {
v2f_t min, max;
-} aabb_t;
+} bb2f_t;
-ix2_search_status_t cb(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_object_position, aabb_t *ix2_object_aabb, void *object)
+ix2_search_status_t cb(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_object_position, bb2f_t *ix2_object_aabb, void *object)
{
fprintf(stderr, "found %p ix2_object=%p ix2_object_aabb=%f,%f ... %f,%f\n", cb_context, ix2_object,
ix2_object_aabb->min.x, ix2_object_aabb->min.y, ix2_object_aabb->max.x, ix2_object_aabb->max.y);
@@ -38,7 +38,7 @@ ix2_search_status_t cb(void *cb_context, ix2_object_t *ix2_object, v2f_t *ix2_ob
}
typedef struct object_t {
- aabb_t aabb;
+ bb2f_t aabb;
ix2_object_t *ix;
} object_t;
@@ -52,7 +52,7 @@ int main(int argc, char *argv[])
{ .aabb = {{ -.2f, -.2f }, { .1f, .1f }} },
{ .aabb = {{ -.1f, -.1f }, { .2f, .2f }} },
};
- aabb_t aabb = {{ -1.f, -1.f }, {1.f, 1.f }};
+ bb2f_t aabb = {{ -1.f, -1.f }, {1.f, 1.f }};
ix2_object_t *o, *j;
ix2_t *ix2;
© All Rights Reserved