[−][src]Struct rust_webvr::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 Debug for 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
Auto Trait Implementations
impl Send for VRFrameData
impl Unpin for VRFrameData
impl Sync for VRFrameData
impl UnwindSafe for VRFrameData
impl RefUnwindSafe for VRFrameData
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> 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, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,