Forward body skeletons from headset
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include "xr/check.h"
|
||||
#include "xr/instance.h"
|
||||
#include <cassert>
|
||||
#include <stdexcept>
|
||||
#include <openxr/openxr_platform.h>
|
||||
|
||||
xr::system::system(xr::instance & inst, XrFormFactor formfactor)
|
||||
@@ -205,6 +206,23 @@ XrSystemBodyTrackingPropertiesFB xr::system::fb_body_tracking_properties() const
|
||||
|
||||
return body_tracking_prop;
|
||||
}
|
||||
XrSystemPropertiesBodyTrackingFullBodyMETA xr::system::meta_body_tracking_properties() const
|
||||
{
|
||||
if (!id)
|
||||
throw std::invalid_argument("this");
|
||||
|
||||
XrSystemPropertiesBodyTrackingFullBodyMETA body_tracking_prop{
|
||||
.type = XR_TYPE_SYSTEM_PROPERTIES_BODY_TRACKING_FULL_BODY_META,
|
||||
};
|
||||
|
||||
XrSystemProperties prop{
|
||||
.type = XR_TYPE_SYSTEM_PROPERTIES,
|
||||
.next = &body_tracking_prop,
|
||||
};
|
||||
CHECK_XR(xrGetSystemProperties(*inst, id, &prop));
|
||||
|
||||
return body_tracking_prop;
|
||||
}
|
||||
|
||||
XrSystemBodyTrackingPropertiesBD xr::system::bd_body_tracking_properties() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user