Skip to main content

XRWebGLBindingMethods

pub trait XRWebGLBindingMethods<D: DomTypes> {
    // Required methods
    fn CreateProjectionLayer(
        &self,
        textureType: XRTextureType,
        init: &XRProjectionLayerInit,
    ) -> Fallible<DomRoot<D::XRProjectionLayer>>;
    fn CreateQuadLayer(
        &self,
        textureType: XRTextureType,
        init: Option<&XRQuadLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XRQuadLayer>>;
    fn CreateCylinderLayer(
        &self,
        textureType: XRTextureType,
        init: Option<&XRCylinderLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XRCylinderLayer>>;
    fn CreateEquirectLayer(
        &self,
        textureType: XRTextureType,
        init: Option<&XREquirectLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XREquirectLayer>>;
    fn CreateCubeLayer(
        &self,
        init: Option<&XRCubeLayerInit<D>>,
    ) -> Fallible<DomRoot<D::XRCubeLayer>>;
    fn GetSubImage(
        &self,
        layer: &D::XRCompositionLayer,
        frame: &D::XRFrame,
        eye: XREye,
    ) -> Fallible<DomRoot<D::XRWebGLSubImage>>;
    fn GetViewSubImage(
        &self,
        layer: &D::XRProjectionLayer,
        view: &D::XRView,
    ) -> Fallible<DomRoot<D::XRWebGLSubImage>>;
    fn Constructor(
        cx: &mut JSContext,
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        session: &D::XRSession,
        context: WebGLRenderingContextOrWebGL2RenderingContext<D>,
    ) -> Fallible<DomRoot<D::XRWebGLBinding>>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§