mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Add spec links
This commit is contained in:
parent
241d93340b
commit
c6c6b518cb
9 changed files with 28 additions and 2 deletions
|
@ -46,10 +46,12 @@ impl XRFrame {
|
|||
}
|
||||
|
||||
impl XRFrameMethods for XRFrame {
|
||||
/// https://immersive-web.github.io/webxr/#dom-xrframe-session
|
||||
fn Session(&self) -> DomRoot<XRSession> {
|
||||
DomRoot::from_ref(&self.session)
|
||||
}
|
||||
|
||||
/// https://immersive-web.github.io/webxr/#dom-xrframe-getviewerpose
|
||||
fn GetViewerPose(&self, reference: Option<&XRReferenceSpace>) -> Option<DomRoot<XRViewerPose>> {
|
||||
// We assume the reference space is eye level for now
|
||||
// since it's the only one 3DOF devices support
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue