summaryrefslogtreecommitdiffhomepage
path: root/opentrack-api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:52:19 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-12-10 03:52:19 +0100
commitc298ec1126f1ec8fbf01e5619c5a4b0a30a222c2 (patch)
tree4db94016922083ae43ee720d1c98e33584bcd249 /opentrack-api
parent83997336c88f75cc183eb7ccdb7ae002be9b0fac (diff)
remove return value from GiveHeadPoseData
Diffstat (limited to 'opentrack-api')
-rw-r--r--opentrack-api/opentrack.h2
-rw-r--r--opentrack-api/trackers.cpp5
2 files changed, 3 insertions, 4 deletions
diff --git a/opentrack-api/opentrack.h b/opentrack-api/opentrack.h
index 990b6aa4..88ba6cf0 100644
--- a/opentrack-api/opentrack.h
+++ b/opentrack-api/opentrack.h
@@ -50,7 +50,7 @@ OPENTRACK_EXPORT const char** opentrack_enum_trackers(opentrack self);
*/
OPENTRACK_EXPORT opentrack_tracker opentrack_make_tracker(opentrack ctx, const char* name);
OPENTRACK_EXPORT void opentrack_tracker_start(opentrack self, opentrack_tracker tracker);
-OPENTRACK_EXPORT int opentrack_tracker_tick(opentrack_tracker tracker, double* headpose);
+OPENTRACK_EXPORT void opentrack_tracker_tick(opentrack_tracker tracker, double* headpose);
OPENTRACK_EXPORT void opentrack_finalize_tracker(opentrack_tracker tracker);
#ifdef __cplusplus
}
diff --git a/opentrack-api/trackers.cpp b/opentrack-api/trackers.cpp
index 0f698e4c..937f7084 100644
--- a/opentrack-api/trackers.cpp
+++ b/opentrack-api/trackers.cpp
@@ -29,11 +29,10 @@ void OPENTRACK_EXPORT opentrack_tracker_start(opentrack self, opentrack_tracker
return tracker->StartTracker(&self->fake_frame);
}
-int OPENTRACK_EXPORT opentrack_tracker_tick(opentrack_tracker tracker, double* headpose)
+void OPENTRACK_EXPORT opentrack_tracker_tick(opentrack_tracker tracker, double* headpose)
{
- int ret = tracker->GiveHeadPoseData(headpose);
+ tracker->GiveHeadPoseData(headpose);
QApplication::processEvents(0, 5);
- return ret;
}
}