Struct rust_raylib::vr::VrDeviceInfo
source · #[repr(C)]pub struct VrDeviceInfo {
pub horizontal_resolution: u32,
pub vertical_resolution: u32,
pub horizontal_screen_size: f32,
pub vertical_screen_size: f32,
pub screen_center_v: f32,
pub eye_to_screen_distance: f32,
pub lens_separation_distance: f32,
pub interpupillary_distance: f32,
pub lens_distortion_values: [f32; 4],
pub chroma_ab_correction: [f32; 4],
}
Expand description
VrDeviceInfo, Head-Mounted-Display device parameters
Fields§
§horizontal_resolution: u32
Horizontal resolution in pixels
vertical_resolution: u32
Vertical resolution in pixels
horizontal_screen_size: f32
Horizontal size in meters
vertical_screen_size: f32
Vertical size in meters
screen_center_v: f32
Screen center in meters
eye_to_screen_distance: f32
Distance between eye and display in meters
lens_separation_distance: f32
Lens separation distance in meters
interpupillary_distance: f32
IPD (distance between pupils) in meters
lens_distortion_values: [f32; 4]
Lens distortion constant parameters
chroma_ab_correction: [f32; 4]
Chromatic aberration correction parameters
Trait Implementations§
source§impl Clone for VrDeviceInfo
impl Clone for VrDeviceInfo
source§fn clone(&self) -> VrDeviceInfo
fn clone(&self) -> VrDeviceInfo
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 VrDeviceInfo
impl Debug for VrDeviceInfo
source§impl From<VrDeviceInfo> for VrDeviceInfo
impl From<VrDeviceInfo> for VrDeviceInfo
source§fn from(value: VrDeviceInfo) -> Self
fn from(value: VrDeviceInfo) -> Self
Converts to this type from the input type.
source§impl From<VrDeviceInfo> for VrDeviceInfo
impl From<VrDeviceInfo> for VrDeviceInfo
source§fn from(val: VrDeviceInfo) -> Self
fn from(val: VrDeviceInfo) -> Self
Converts to this type from the input type.
source§impl PartialEq for VrDeviceInfo
impl PartialEq for VrDeviceInfo
source§fn eq(&self, other: &VrDeviceInfo) -> bool
fn eq(&self, other: &VrDeviceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VrDeviceInfo
Auto Trait Implementations§
impl RefUnwindSafe for VrDeviceInfo
impl Send for VrDeviceInfo
impl Sync for VrDeviceInfo
impl Unpin for VrDeviceInfo
impl UnwindSafe for VrDeviceInfo
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