[][src]Struct tm_rs::ffi::tm_openvr_api

#[repr(C)]pub struct tm_openvr_api {
    pub load: Option<unsafe extern "C" fn(*const i8) -> bool>,
    pub unload: Option<unsafe extern "C" fn()>,
    pub init_context: Option<unsafe extern "C" fn() -> u32>,
    pub shutdown_context: Option<unsafe extern "C" fn(u32)>,
    pub update: Option<unsafe extern "C" fn(u32) -> bool>,
    pub submit_vulkan: Option<unsafe extern "C" fn(u32, *mut tm_vulkan_backend_i, u32, *const tm_openvr_submit_data_t) -> bool>,
    pub wanted_image_size: Option<unsafe extern "C" fn(u32, *mut u32, *mut u32)>,
    pub frustum_planes: Option<unsafe extern "C" fn(u32, i32, *mut f32, *mut f32, *mut f32, *mut f32)>,
    pub head_to_eye_transform: Option<unsafe extern "C" fn(u32, *mut tm_mat44_t, i32)>,
    pub head_transform: Option<unsafe extern "C" fn(u32, *mut tm_mat44_t)>,
}

Fields

load: Option<unsafe extern "C" fn(*const i8) -> bool>unload: Option<unsafe extern "C" fn()>init_context: Option<unsafe extern "C" fn() -> u32>shutdown_context: Option<unsafe extern "C" fn(u32)>update: Option<unsafe extern "C" fn(u32) -> bool>submit_vulkan: Option<unsafe extern "C" fn(u32, *mut tm_vulkan_backend_i, u32, *const tm_openvr_submit_data_t) -> bool>wanted_image_size: Option<unsafe extern "C" fn(u32, *mut u32, *mut u32)>frustum_planes: Option<unsafe extern "C" fn(u32, i32, *mut f32, *mut f32, *mut f32, *mut f32)>head_to_eye_transform: Option<unsafe extern "C" fn(u32, *mut tm_mat44_t, i32)>head_transform: Option<unsafe extern "C" fn(u32, *mut tm_mat44_t)>

Trait Implementations

impl Clone for tm_openvr_api[src]

impl Copy for tm_openvr_api[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[src]

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.