remove wivrn_hmd_destroy
This commit is contained in:
@@ -39,8 +39,6 @@
|
||||
namespace wivrn
|
||||
{
|
||||
|
||||
static void wivrn_hmd_destroy(xrt_device * xdev);
|
||||
|
||||
static double foveate(double a, double b, double λ, double c, double x)
|
||||
{
|
||||
// In order to save encoding, transmit and decoding time, only a portion of the image is encoded in full resolution.
|
||||
@@ -202,7 +200,7 @@ wivrn_hmd::wivrn_hmd(wivrn::wivrn_session * cnx,
|
||||
base->get_view_poses = method_pointer<&wivrn_hmd::get_view_poses>;
|
||||
base->get_battery_status = method_pointer<&wivrn_hmd::get_battery_status>;
|
||||
base->get_visibility_mask = method_pointer<&wivrn_hmd::get_visibility_mask>;
|
||||
base->destroy = wivrn_hmd_destroy;
|
||||
base->destroy = [](xrt_device *) {};
|
||||
name = XRT_DEVICE_GENERIC_HMD;
|
||||
device_type = XRT_DEVICE_TYPE_HMD;
|
||||
orientation_tracking_supported = true;
|
||||
@@ -409,15 +407,4 @@ void wivrn_hmd::update_visibility_mask(const from_headset::visibility_mask_chang
|
||||
auto m = visibility_mask.lock();
|
||||
m->at(mask.view_index) = mask.data;
|
||||
}
|
||||
|
||||
/*
|
||||
*
|
||||
* Functions
|
||||
*
|
||||
*/
|
||||
|
||||
static void wivrn_hmd_destroy(xrt_device * xdev)
|
||||
{
|
||||
static_cast<wivrn_hmd *>(xdev)->unregister();
|
||||
}
|
||||
} // namespace wivrn
|
||||
|
||||
@@ -63,10 +63,6 @@ public:
|
||||
using base = xrt_device;
|
||||
wivrn_hmd(wivrn::wivrn_session * cnx,
|
||||
const from_headset::headset_info_packet & info);
|
||||
void unregister()
|
||||
{
|
||||
cnx = nullptr;
|
||||
}
|
||||
|
||||
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation *);
|
||||
void get_view_poses(const xrt_vec3 * default_eye_relation,
|
||||
|
||||
Reference in New Issue
Block a user