Struct rust_raylib::ffi::VrDeviceInfo
source · #[repr(C)]pub struct VrDeviceInfo {
pub hResolution: c_int,
pub vResolution: c_int,
pub hScreenSize: c_float,
pub vScreenSize: c_float,
pub vScreenCenter: c_float,
pub eyeToScreenDistance: c_float,
pub lensSeparationDistance: c_float,
pub interpupillaryDistance: c_float,
pub lensDistortionValues: [c_float; 4],
pub chromaAbCorrection: [c_float; 4],
}Expand description
VrDeviceInfo, Head-Mounted-Display device parameters
Fields§
§hResolution: c_intHorizontal resolution in pixels
vResolution: c_intVertical resolution in pixels
hScreenSize: c_floatHorizontal size in meters
vScreenSize: c_floatVertical size in meters
vScreenCenter: c_floatScreen center in meters
eyeToScreenDistance: c_floatDistance between eye and display in meters
lensSeparationDistance: c_floatLens separation distance in meters
interpupillaryDistance: c_floatIPD (distance between pupils) in meters
lensDistortionValues: [c_float; 4]Lens distortion constant parameters
chromaAbCorrection: [c_float; 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(val: VrDeviceInfo) -> Self
fn from(val: VrDeviceInfo) -> Self
Converts to this type from the input type.
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.
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