[][src]Struct rust_webvr_api::vr_frame_data::VRFrameData

pub struct VRFrameData {
    pub timestamp: f64,
    pub left_projection_matrix: [f32; 16],
    pub left_view_matrix: [f32; 16],
    pub right_projection_matrix: [f32; 16],
    pub right_view_matrix: [f32; 16],
    pub pose: VRPose,
}

Represents all the information needed to render a single frame of a VR scene

Fields

timestamp: f64

Monotonically increasing value that allows the author to determine if position state data been updated from the hardware

left_projection_matrix: [f32; 16]

major order column matrix describing the projection to be used for the left eye’s rendering

left_view_matrix: [f32; 16]

major order column matrix describing the view transform to be used for the left eye’s rendering

right_projection_matrix: [f32; 16]

major order column matrix describing the projection to be used for the right eye’s rendering

right_view_matrix: [f32; 16]

major order column matrix describing the view transform to be used for the right eye’s rendering

pose: VRPose

VRPose containing the future predicted pose of the VRDisplay when the current frame will be presented.

Methods

impl VRFrameData[src]

pub fn to_bytes(&self) -> Vec<u8>[src]

pub fn from_bytes(bytes: &[u8]) -> VRFrameData[src]

Trait Implementations

impl Clone for VRFrameData[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Default for VRFrameData[src]

impl Debug for VRFrameData[src]

Auto Trait Implementations

impl Send for VRFrameData

impl Sync for VRFrameData

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]