[][src]Struct tm_sys::ffi::tm_openvr_api

#[repr(C)]pub struct tm_openvr_api {
    pub load: Option<unsafe extern "C" fn(dll_path: *const c_char) -> 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(context: u32)>,
    pub update: Option<unsafe extern "C" fn(context: u32) -> bool>,
    pub submit_vulkan: Option<unsafe extern "C" fn(context: u32, vulkan_backend: *mut tm_vulkan_backend_i, device_affinity: u32, data: *const tm_openvr_submit_data_t) -> bool>,
    pub wanted_image_size: Option<unsafe extern "C" fn(context: u32, width: *mut u32, height: *mut u32)>,
    pub frustum_planes: Option<unsafe extern "C" fn(context: u32, eye: tm_openvr_eye, left: *mut f32, right: *mut f32, top: *mut f32, bottom: *mut f32)>,
    pub head_to_eye_transform: Option<unsafe extern "C" fn(context: u32, tm: *mut tm_mat44_t, eye: tm_openvr_eye)>,
    pub head_transform: Option<unsafe extern "C" fn(context: u32, tm: *mut tm_mat44_t)>,
}

Fields

load: Option<unsafe extern "C" fn(dll_path: *const c_char) -> bool>unload: Option<unsafe extern "C" fn()>init_context: Option<unsafe extern "C" fn() -> u32>shutdown_context: Option<unsafe extern "C" fn(context: u32)>update: Option<unsafe extern "C" fn(context: u32) -> bool>submit_vulkan: Option<unsafe extern "C" fn(context: u32, vulkan_backend: *mut tm_vulkan_backend_i, device_affinity: u32, data: *const tm_openvr_submit_data_t) -> bool>wanted_image_size: Option<unsafe extern "C" fn(context: u32, width: *mut u32, height: *mut u32)>frustum_planes: Option<unsafe extern "C" fn(context: u32, eye: tm_openvr_eye, left: *mut f32, right: *mut f32, top: *mut f32, bottom: *mut f32)>head_to_eye_transform: Option<unsafe extern "C" fn(context: u32, tm: *mut tm_mat44_t, eye: tm_openvr_eye)>head_transform: Option<unsafe extern "C" fn(context: u32, tm: *mut tm_mat44_t)>

Trait Implementations

impl Clone for tm_openvr_api[src]

impl Copy for tm_openvr_api[src]

impl Debug for tm_openvr_api[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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.