pub struct VREyeParameters {
pub offset: [f32; 3],
pub render_width: u32,
pub render_height: u32,
pub field_of_view: VRFieldOfView,
}
Expand description
The VREyeParameters interface represents all the information required to correctly render a scene for a given eye.
Fields§
§offset: [f32; 3]
Offset from the center point between the users eyes to the center of the eye in meters.
render_width: u32
Describes the recommended render target width of each eye viewport, in pixels.
render_height: u32
Describes the recommended render target height of each eye viewport, in pixels.
field_of_view: VRFieldOfView
Describes the current field of view for the eye
Trait Implementations§
Source§impl Clone for VREyeParameters
impl Clone for VREyeParameters
Source§fn clone(&self) -> VREyeParameters
fn clone(&self) -> VREyeParameters
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 VREyeParameters
impl Debug for VREyeParameters
Source§impl Default for VREyeParameters
impl Default for VREyeParameters
Source§fn default() -> VREyeParameters
fn default() -> VREyeParameters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VREyeParameters
impl RefUnwindSafe for VREyeParameters
impl Send for VREyeParameters
impl Sync for VREyeParameters
impl Unpin for VREyeParameters
impl UnwindSafe for VREyeParameters
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