[−][src]Struct rust_webvr_api::vr_frame_data::VRFrameData
Represents all the information needed to render a single frame of a VR scene
Fields
timestamp: f64Monotonically 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: VRPoseVRPose 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 Default for VRFrameData[src]
fn default() -> VRFrameData[src]
impl Clone for VRFrameData[src]
fn clone(&self) -> VRFrameData[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for VRFrameData[src]
Auto Trait Implementations
impl Send for VRFrameData
impl Sync for VRFrameData
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,