From d00a10798e6453f44697103d1f0323446ca4c155 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Mon, 21 May 2018 01:44:33 -0700 Subject: libix2: introduce origin for anchoring position also use v2f_t everywhere for positions instead of the occasional float x, float y. --- src/test.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test.c') diff --git a/src/test.c b/src/test.c index 6a13af3..3cb27df 100644 --- a/src/test.c +++ b/src/test.c @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) } for (int i = 0; i < sizeof(objects) / sizeof(*objects); i++) { - objects[i].ix = ix2_object_new(ix2, 0, 0, &objects[i].aabb, &objects[i]); + objects[i].ix = ix2_object_new(ix2, NULL, NULL, &objects[i].aabb, &objects[i]); if (!o) { fprintf(stderr, "unable to insert object %i\n", i); return 1; @@ -86,7 +86,7 @@ int main(int argc, char *argv[]) for (int i = 0; i < sizeof(objects) / sizeof(*objects); i++) { /* TODO: actually verify the expected objects are hit */ - if (!ix2_search_by_aabb(ix2, 0, 0, &objects[i].aabb, cb, &objects[i])) { + if (!ix2_search_by_aabb(ix2, NULL, NULL, &objects[i].aabb, cb, &objects[i])) { fprintf(stderr, "unable to lookup object %i by perfect aabb\n", i); return 1; } -- cgit v1.2.3