diff options
| author | Stanisław Halik <sthalik@misaki.pl> | 2018-01-26 16:28:06 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-26 16:28:06 +0100 |
| commit | 86e112dd54202bed6880933804a89e1fd62f7d51 (patch) | |
| tree | bd375c924fa72f9eb3ce1d78356785077836f3c1 /tracker-pt/tracker-wii/wii_module.cpp | |
| parent | 19eca40d3f057868f49d3285683e4a32b03b9385 (diff) | |
| parent | 4a2a1b636df7a67722b6b5764efa8cfc63c6a5e1 (diff) | |
Merge pull request #738 from cpuwolf/wii3-rebase
tracker/wii: relocation & fix fov & code clean-up
Diffstat (limited to 'tracker-pt/tracker-wii/wii_module.cpp')
| -rw-r--r-- | tracker-pt/tracker-wii/wii_module.cpp | 83 |
1 files changed, 0 insertions, 83 deletions
diff --git a/tracker-pt/tracker-wii/wii_module.cpp b/tracker-pt/tracker-wii/wii_module.cpp deleted file mode 100644 index 40131f691..000000000 --- a/tracker-pt/tracker-wii/wii_module.cpp +++ /dev/null @@ -1,83 +0,0 @@ -/* -* Copyright (c) 2017-2018 Wei Shuai <cpuwolf@gmail.com> -* -* Permission to use, copy, modify, and/or distribute this software for any -* purpose with or without fee is hereby granted, provided that the above -* copyright notice and this permission notice appear in all copies. -*/ -#include "ftnoir_tracker_pt.h" -#include "api/plugin-api.hpp" - -#include "wii_camera.h" -#include "wii_frame.hpp" -#include "wii_point_extractor.h" -#include "ftnoir_tracker_pt_dialog.h" - -#include "pt-api.hpp" - -#include <memory> - -static const QString module_name = "tracker-wii-pt"; - -using namespace pt_module; - -struct wii_pt_module_traits final : pt_runtime_traits -{ - pointer<pt_camera> make_camera() const override - { - return pointer<pt_camera>(new WIICamera(module_name)); - } - - pointer<pt_point_extractor> make_point_extractor() const override - { - return pointer<pt_point_extractor>(new WIIPointExtractor(module_name)); - } - - QString get_module_name() const override - { - return module_name; - } - - pointer<pt_frame> make_frame() const override - { - return pointer<pt_frame>(new WIIFrame); - } - - pointer<pt_preview> make_preview(int w, int h) const override - { - return pointer<pt_preview>(new WIIPreview(w, h)); - } -}; - -struct wii_tracker_pt : Tracker_PT -{ - wii_tracker_pt() : Tracker_PT(pointer<pt_runtime_traits>(new wii_pt_module_traits)) - { - } -}; - - -struct wii_dialog_pt : TrackerDialog_PT -{ - wii_dialog_pt(); -}; - -class wii_metadata_pt : public Metadata -{ - QString name() { return _("WiiPointTracker 1.1"); } - QIcon icon() { return QIcon(":/Resources/wii.png"); } -}; - -// ns pt_module - -using namespace pt_module; - - - -wii_dialog_pt::wii_dialog_pt() : TrackerDialog_PT(module_name) -{ - ui.camera_settings_groupbox->hide(); - ui.groupBox_2->hide(); -} - -OPENTRACK_DECLARE_TRACKER(wii_tracker_pt, wii_dialog_pt, wii_metadata_pt) |
