diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-04-05 07:56:01 -0600 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-04-05 07:56:01 -0600 |
commit | 9e1883922de980c01e60bde10c1e67261752afa6 (patch) | |
tree | 0732dbbc7817644e1f03cea7c8432284af98bd04 /api_example.c | |
parent | 4b045e61ed6f3812cbf273ae279bfd7bc1ce029c (diff) | |
download | libsurvive-9e1883922de980c01e60bde10c1e67261752afa6.tar.gz libsurvive-9e1883922de980c01e60bde10c1e67261752afa6.tar.bz2 |
Fixed typo; naming suggestions
Diffstat (limited to 'api_example.c')
-rw-r--r-- | api_example.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/api_example.c b/api_example.c index 515c4e6..b0c9e4c 100644 --- a/api_example.c +++ b/api_example.c @@ -15,7 +15,8 @@ int main(int argc, char **argv) { SurvivePose pose; - for (const SurviveAsyncObject* it = survive_async_get_first_tracked(actx); it != 0; it = survive_async_get_next_tracked(actx, it)) { + for (const SurviveAsyncObject *it = survive_async_get_first_object(actx); it != 0; + it = survive_async_get_next_object(actx, it)) { uint32_t timecode = survive_async_object_get_latest_pose(it, &pose); printf("%s (%u): %f %f %f %f %f %f %f\n", survive_async_object_name(it), timecode, pose.Pos[0], pose.Pos[1], pose.Pos[2], pose.Rot[0], pose.Rot[1], pose.Rot[2], pose.Rot[3]); |