Struct ovr_sys::ovrEyeRenderDesc
source · #[repr(C)]pub struct ovrEyeRenderDesc {
pub _align: [u32; 0],
pub Eye: ovrEyeType,
pub Fov: ovrFovPort,
pub DistortedViewport: ovrRecti,
pub PixelsPerTanAngleAtCenter: ovrVector2f,
pub HmdToEyeOffset: ovrVector3f,
}
Expand description
Rendering information for each eye. Computed by ovr_GetRenderDesc()
based on the
specified FOV. Note that the rendering viewport is not included
here as it can be specified separately and modified per frame by
passing different Viewport values in the layer structure.
Fields§
§_align: [u32; 0]
§Eye: ovrEyeType
The eye index to which this instance corresponds.
Fov: ovrFovPort
The field of view.
DistortedViewport: ovrRecti
Distortion viewport.
PixelsPerTanAngleAtCenter: ovrVector2f
How many display pixels will fit in tan(angle) = 1.
HmdToEyeOffset: ovrVector3f
Translation of each eye, in meters.
Trait Implementations§
source§impl Clone for ovrEyeRenderDesc
impl Clone for ovrEyeRenderDesc
source§fn clone(&self) -> ovrEyeRenderDesc
fn clone(&self) -> ovrEyeRenderDesc
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 more