diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2018-05-21 01:44:33 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2018-05-21 01:44:33 -0700 |
commit | d00a10798e6453f44697103d1f0323446ca4c155 (patch) | |
tree | 491804615908f998197527b7d8bc0c7b61571b84 /src/test.c | |
parent | 81b124b57cdd6a468990c969b1ccdfb02100f606 (diff) |
libix2: introduce origin for anchoring position
also use v2f_t everywhere for positions instead of
the occasional float x, float y.
Diffstat (limited to 'src/test.c')
-rw-r--r-- | src/test.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |