mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Add XRJointPose
This commit is contained in:
parent
ad6da0591c
commit
c30ad6c422
5 changed files with 94 additions and 0 deletions
|
@ -10,5 +10,6 @@ interface XRFrame {
|
|||
|
||||
[Throws] XRViewerPose? getViewerPose(XRReferenceSpace referenceSpace);
|
||||
[Throws] XRPose? getPose(XRSpace space, XRSpace relativeTo);
|
||||
[Pref="dom.webxr.hands.enabled", Throws] XRJointPose? getJointPose(XRJointSpace space, XRSpace relativeTo);
|
||||
sequence<XRHitTestResult> getHitTestResults(XRHitTestSource hitTestSource);
|
||||
};
|
||||
|
|
10
components/script/dom/webidls/XRJointPose.webidl
Normal file
10
components/script/dom/webidls/XRJointPose.webidl
Normal file
|
@ -0,0 +1,10 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://github.com/immersive-web/webxr-hands-input/blob/master/explainer.md
|
||||
|
||||
[SecureContext, Exposed=Window, Pref="dom.webxr.hands.enabled"]
|
||||
interface XRJointPose: XRPose {
|
||||
readonly attribute float? radius;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue