pub trait XRFrameMethods {
    // Required methods
    fn Session(&self) -> Root<Dom<XRSession>>;
    fn PredictedDisplayTime(&self) -> Finite<f64>;
    fn GetViewerPose(
        &self,
        referenceSpace: &XRReferenceSpace,
        _can_gc: CanGc,
    ) -> Result<Option<Root<Dom<XRViewerPose>>>, Error>;
    fn GetPose(
        &self,
        space: &XRSpace,
        baseSpace: &XRSpace,
        _can_gc: CanGc,
    ) -> Result<Option<Root<Dom<XRPose>>>, Error>;
    fn GetJointPose(
        &self,
        joint: &XRJointSpace,
        baseSpace: &XRSpace,
        _can_gc: CanGc,
    ) -> Result<Option<Root<Dom<XRJointPose>>>, Error>;
    fn FillJointRadii(
        &self,
        jointSpaces: Vec<Root<Dom<XRJointSpace>>>,
        radii: CustomAutoRooterGuard<'_, Float32Array>,
    ) -> Result<bool, Error>;
    fn FillPoses(
        &self,
        spaces: Vec<Root<Dom<XRSpace>>>,
        baseSpace: &XRSpace,
        transforms: CustomAutoRooterGuard<'_, Float32Array>,
    ) -> Result<bool, Error>;
    fn GetHitTestResults(
        &self,
        hitTestSource: &XRHitTestSource,
    ) -> Vec<Root<Dom<XRHitTestResult>>>;
}

Required Methods§

source

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

source

fn PredictedDisplayTime(&self) -> Finite<f64>

source

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

source

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

source

fn GetJointPose( &self, joint: &XRJointSpace, baseSpace: &XRSpace, _can_gc: CanGc, ) -> Result<Option<Root<Dom<XRJointPose>>>, Error>

source

fn FillJointRadii( &self, jointSpaces: Vec<Root<Dom<XRJointSpace>>>, radii: CustomAutoRooterGuard<'_, Float32Array>, ) -> Result<bool, Error>

source

fn FillPoses( &self, spaces: Vec<Root<Dom<XRSpace>>>, baseSpace: &XRSpace, transforms: CustomAutoRooterGuard<'_, Float32Array>, ) -> Result<bool, Error>

source

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

Implementors§