pub trait XRFrameMethods {
    // Required methods
    fn Session(&self) -> Root<Dom<XRSession>>;
    fn GetViewerPose(
        &self,
        referenceSpace: &XRReferenceSpace
    ) -> Result<Option<Root<Dom<XRViewerPose>>>, Error>;
    fn GetPose(
        &self,
        space: &XRSpace,
        relativeTo: &XRSpace
    ) -> Result<Option<Root<Dom<XRPose>>>, Error>;
    fn GetJointPose(
        &self,
        space: &XRJointSpace,
        relativeTo: &XRSpace
    ) -> Result<Option<Root<Dom<XRJointPose>>>, Error>;
    fn GetHitTestResults(
        &self,
        hitTestSource: &XRHitTestSource
    ) -> Vec<Root<Dom<XRHitTestResult>>>;
}

Required Methods§

source

fn Session(&self) -> Root<Dom<XRSession>>

source

fn GetViewerPose( &self, referenceSpace: &XRReferenceSpace ) -> Result<Option<Root<Dom<XRViewerPose>>>, Error>

source

fn GetPose( &self, space: &XRSpace, relativeTo: &XRSpace ) -> Result<Option<Root<Dom<XRPose>>>, Error>

source

fn GetJointPose( &self, space: &XRJointSpace, relativeTo: &XRSpace ) -> Result<Option<Root<Dom<XRJointPose>>>, Error>

source

fn GetHitTestResults( &self, hitTestSource: &XRHitTestSource ) -> Vec<Root<Dom<XRHitTestResult>>>

Implementors§