Skip to main content

RaylibVRModeExt

Trait RaylibVRModeExt 

Source
pub trait RaylibVRModeExt: Sized {
    // Provided methods
    fn begin_vr_stereo_mode<'a>(
        &'a mut self,
        _: &RaylibThread,
        vr_config: &'a mut VrStereoConfig,
    ) -> RaylibVRMode<'a, Self> { ... }
    fn draw_vr_stereo_mode<'a>(
        &'a mut self,
        vr_config: &'a mut VrStereoConfig,
        func: impl FnMut(RaylibVRMode<'_, Self>),
    ) { ... }
}

Provided Methods§

Source

fn begin_vr_stereo_mode<'a>( &'a mut self, _: &RaylibThread, vr_config: &'a mut VrStereoConfig, ) -> RaylibVRMode<'a, Self>

Begin stereo rendering (requires VR simulator). Prefer using the closure version, RaylibVRModeExt::draw_vr_stereo_mode . This version returns a handle that calls raylib_sys::EndVrStereoMode at the end of the scope and is provided as a fallback incase you run into issues with closures(such as lifetime or performance reasons)

Source

fn draw_vr_stereo_mode<'a>( &'a mut self, vr_config: &'a mut VrStereoConfig, func: impl FnMut(RaylibVRMode<'_, Self>), )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<D> RaylibVRModeExt for D
where D: RaylibDraw,