| 44 | }; |
| 45 | |
| 46 | OSVR_ReturnCode |
| 47 | osvrDeviceTrackerConfigure(OSVR_INOUT_PTR OSVR_DeviceInitOptions opts, |
| 48 | OSVR_OUT_PTR OSVR_TrackerDeviceInterface *iface) { |
| 49 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceTrackerConfigure", opts); |
| 50 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceTrackerConfigure", iface); |
| 51 | OSVR_TrackerDeviceInterface ifaceObj = |
| 52 | opts->makeInterfaceObject<OSVR_TrackerDeviceInterfaceObject>(); |
| 53 | *iface = ifaceObj; |
| 54 | opts->setTracker(ifaceObj->tracker); |
| 55 | return OSVR_RETURN_SUCCESS; |
| 56 | } |
| 57 | |
| 58 | template <typename StateType> |
| 59 | static inline OSVR_ReturnCode |
no test coverage detected