#[repr(C)]pub struct ovrViewScaleDesc {
pub _align: [u32; 0],
pub HmdToEyeOffset: [ovrVector3f; 2],
pub HmdSpaceToWorldScaleInMeters: f32,
}Expand description
Contains the data necessary to properly calculate position info for various layer types.
- HmdToEyeOffset is the same value pair provided in
ovrEyeRenderDesc. - HmdSpaceToWorldScaleInMeters is used to scale player motion into in-application units. In other words, it is how big an in-application unit is in the player’s physical meters. For example, if the application uses inches as its units then HmdSpaceToWorldScaleInMeters would be 0.0254. Note that if you are scaling the player in size, this must also scale. So if your application units are inches, but you’re shrinking the player to half their normal size, then HmdSpaceToWorldScaleInMeters would be 0.0254*2.0.
Fields§
§_align: [u32; 0]§HmdToEyeOffset: [ovrVector3f; 2]Translation of each eye.
HmdSpaceToWorldScaleInMeters: f32Ratio of viewer units to meter units.
Trait Implementations§
Source§impl Clone for ovrViewScaleDesc
impl Clone for ovrViewScaleDesc
Source§fn clone(&self) -> ovrViewScaleDesc
fn clone(&self) -> ovrViewScaleDesc
Returns a duplicate 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 ovrViewScaleDesc
impl Debug for ovrViewScaleDesc
impl Copy for ovrViewScaleDesc
Auto Trait Implementations§
impl Freeze for ovrViewScaleDesc
impl RefUnwindSafe for ovrViewScaleDesc
impl Send for ovrViewScaleDesc
impl Sync for ovrViewScaleDesc
impl Unpin for ovrViewScaleDesc
impl UnwindSafe for ovrViewScaleDesc
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