| 81 | }; |
| 82 | |
| 83 | OSVR_ReturnCode |
| 84 | osvrDeviceImagingConfigure(OSVR_INOUT_PTR OSVR_DeviceInitOptions opts, |
| 85 | OSVR_OUT_PTR OSVR_ImagingDeviceInterface *iface, |
| 86 | OSVR_IN OSVR_ChannelCount numSensors) { |
| 87 | |
| 88 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceImagingConfigure", opts); |
| 89 | OSVR_PLUGIN_HANDLE_NULL_CONTEXT("osvrDeviceImagingConfigure", iface); |
| 90 | OSVR_ImagingDeviceInterface ifaceObj = |
| 91 | opts->makeInterfaceObject<OSVR_ImagingDeviceInterfaceObject>(); |
| 92 | *iface = ifaceObj; |
| 93 | |
| 94 | auto imaging = osvr::common::ImagingComponent::create(numSensors); |
| 95 | ifaceObj->imaging = imaging.get(); |
| 96 | opts->addComponent(imaging); |
| 97 | return OSVR_RETURN_SUCCESS; |
| 98 | } |
| 99 | |
| 100 | OSVR_ReturnCode |
| 101 | osvrDeviceImagingReportFrame(OSVR_IN_PTR OSVR_DeviceToken, |
no test coverage detected