diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-08-31 13:53:45 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-08-31 13:57:37 +0200 |
commit | 95a88d4ae96f319a50d8f14a3b8728b89ed1eb8a (patch) | |
tree | b1a62f0b0adc313c60e33bbf429029ab821bbedc /opentrack-api/trackers.cpp | |
parent | 369d744a705501c7445b7a530afde2d87b5bbff3 (diff) |
remove opentrack-api, no consumers
Diffstat (limited to 'opentrack-api/trackers.cpp')
-rw-r--r-- | opentrack-api/trackers.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/opentrack-api/trackers.cpp b/opentrack-api/trackers.cpp deleted file mode 100644 index 5027ec1d..00000000 --- a/opentrack-api/trackers.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include "opentrack-guts.h" -#include "opentrack.h" - -extern "C" { - -opentrack_tracker OPENTRACK_EXPORT opentrack_make_tracker(opentrack ctx, const char* name) -{ - for (int i = 0; i < ctx->meta_list.size(); i++) - { - auto meta = ctx->meta_list.at(i); - if (ctx->meta_list.at(i).path == name) - { - ITracker* foo = static_cast<ITracker*>(meta.lib->Constructor()); - return foo; - } - } - return NULL; -} - -void OPENTRACK_EXPORT opentrack_finalize_tracker(opentrack_tracker tracker) -{ - delete tracker; -} - -void OPENTRACK_EXPORT opentrack_tracker_start(opentrack self, opentrack_tracker tracker) -{ - // hot damn, this is problematic! - // need to pass QFrame from somewhere - return tracker->StartTracker(&self->fake_frame); -} - -void OPENTRACK_EXPORT opentrack_tracker_tick(opentrack_tracker tracker, double* headpose) -{ - tracker->GetHeadPoseData(headpose); - QApplication::processEvents(0, 5); -} - -} |