#[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§
Source§impl Clone for tm_openvr_api
impl Clone for tm_openvr_api
Source§fn clone(&self) -> tm_openvr_api
fn clone(&self) -> tm_openvr_api
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for tm_openvr_api
Auto Trait Implementations§
impl Freeze for tm_openvr_api
impl RefUnwindSafe for tm_openvr_api
impl Send for tm_openvr_api
impl Sync for tm_openvr_api
impl Unpin for tm_openvr_api
impl UnwindSafe for tm_openvr_api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more