Struct rust_raylib::vr::VrStereoConfig
source · #[repr(C)]pub struct VrStereoConfig {
pub projection: [Matrix; 2],
pub view_offset: [Matrix; 2],
pub left_lens_center: [f32; 2],
pub right_lens_center: [f32; 2],
pub left_screen_center: [f32; 2],
pub right_screen_center: [f32; 2],
pub scale: [f32; 2],
pub scale_in: [f32; 2],
}
Expand description
VrStereoConfig, VR stereo rendering configuration for simulator
Fields§
§projection: [Matrix; 2]
VR projection matrices (per eye)
view_offset: [Matrix; 2]
VR view offset matrices (per eye)
left_lens_center: [f32; 2]
VR left lens center
right_lens_center: [f32; 2]
VR right lens center
left_screen_center: [f32; 2]
VR left screen center
right_screen_center: [f32; 2]
VR right screen center
scale: [f32; 2]
VR distortion scale
scale_in: [f32; 2]
VR distortion scale in
Implementations§
source§impl VrStereoConfig
impl VrStereoConfig
sourcepub fn load(device: VrDeviceInfo) -> Self
pub fn load(device: VrDeviceInfo) -> Self
Load VR stereo config for VR simulator device parameters
Trait Implementations§
source§impl Clone for VrStereoConfig
impl Clone for VrStereoConfig
source§fn clone(&self) -> VrStereoConfig
fn clone(&self) -> VrStereoConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VrStereoConfig
impl Debug for VrStereoConfig
source§impl Drop for VrStereoConfig
impl Drop for VrStereoConfig
source§impl From<VrStereoConfig> for VrStereoConfig
impl From<VrStereoConfig> for VrStereoConfig
source§fn from(value: VrStereoConfig) -> Self
fn from(value: VrStereoConfig) -> Self
Converts to this type from the input type.
source§impl From<VrStereoConfig> for VrStereoConfig
impl From<VrStereoConfig> for VrStereoConfig
source§fn from(val: VrStereoConfig) -> Self
fn from(val: VrStereoConfig) -> Self
Converts to this type from the input type.
source§impl PartialEq for VrStereoConfig
impl PartialEq for VrStereoConfig
source§fn eq(&self, other: &VrStereoConfig) -> bool
fn eq(&self, other: &VrStereoConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VrStereoConfig
Auto Trait Implementations§
impl RefUnwindSafe for VrStereoConfig
impl Send for VrStereoConfig
impl Sync for VrStereoConfig
impl Unpin for VrStereoConfig
impl UnwindSafe for VrStereoConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more