[][src]Struct openvr_sys::VR_IVRSystem_FnTable

#[repr(C)]pub struct VR_IVRSystem_FnTable {
    pub GetRecommendedRenderTargetSize: Option<unsafe extern "C" fn(pnWidth: *mut u32, pnHeight: *mut u32)>,
    pub GetProjectionMatrix: Option<unsafe extern "C" fn(eEye: EVREye, fNearZ: f32, fFarZ: f32) -> HmdMatrix44_t>,
    pub GetProjectionRaw: Option<unsafe extern "C" fn(eEye: EVREye, pfLeft: *mut f32, pfRight: *mut f32, pfTop: *mut f32, pfBottom: *mut f32)>,
    pub ComputeDistortion: Option<unsafe extern "C" fn(eEye: EVREye, fU: f32, fV: f32, pDistortionCoordinates: *mut DistortionCoordinates_t) -> bool>,
    pub GetEyeToHeadTransform: Option<unsafe extern "C" fn(eEye: EVREye) -> HmdMatrix34_t>,
    pub GetTimeSinceLastVsync: Option<unsafe extern "C" fn(pfSecondsSinceLastVsync: *mut f32, pulFrameCounter: *mut u64) -> bool>,
    pub GetD3D9AdapterIndex: Option<unsafe extern "C" fn() -> i32>,
    pub GetDXGIOutputInfo: Option<unsafe extern "C" fn(pnAdapterIndex: *mut i32)>,
    pub GetOutputDevice: Option<unsafe extern "C" fn(pnDevice: *mut u64, textureType: ETextureType, pInstance: *mut VkInstance_T)>,
    pub IsDisplayOnDesktop: Option<unsafe extern "C" fn() -> bool>,
    pub SetDisplayVisibility: Option<unsafe extern "C" fn(bIsVisibleOnDesktop: bool) -> bool>,
    pub GetDeviceToAbsoluteTrackingPose: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin, fPredictedSecondsToPhotonsFromNow: f32, pTrackedDevicePoseArray: *mut TrackedDevicePose_t, unTrackedDevicePoseArrayCount: u32)>,
    pub ResetSeatedZeroPose: Option<unsafe extern "C" fn()>,
    pub GetSeatedZeroPoseToStandingAbsoluteTrackingPose: Option<unsafe extern "C" fn() -> HmdMatrix34_t>,
    pub GetRawZeroPoseToStandingAbsoluteTrackingPose: Option<unsafe extern "C" fn() -> HmdMatrix34_t>,
    pub GetSortedTrackedDeviceIndicesOfClass: Option<unsafe extern "C" fn(eTrackedDeviceClass: ETrackedDeviceClass, punTrackedDeviceIndexArray: *mut TrackedDeviceIndex_t, unTrackedDeviceIndexArrayCount: u32, unRelativeToTrackedDeviceIndex: TrackedDeviceIndex_t) -> u32>,
    pub GetTrackedDeviceActivityLevel: Option<unsafe extern "C" fn(unDeviceId: TrackedDeviceIndex_t) -> EDeviceActivityLevel>,
    pub ApplyTransform: Option<unsafe extern "C" fn(pOutputPose: *mut TrackedDevicePose_t, pTrackedDevicePose: *mut TrackedDevicePose_t, pTransform: *mut HmdMatrix34_t)>,
    pub GetTrackedDeviceIndexForControllerRole: Option<unsafe extern "C" fn(unDeviceType: ETrackedControllerRole) -> TrackedDeviceIndex_t>,
    pub GetControllerRoleForTrackedDeviceIndex: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> ETrackedControllerRole>,
    pub GetTrackedDeviceClass: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> ETrackedDeviceClass>,
    pub IsTrackedDeviceConnected: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> bool>,
    pub GetBoolTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> bool>,
    pub GetFloatTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> f32>,
    pub GetInt32TrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> i32>,
    pub GetUint64TrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> u64>,
    pub GetMatrix34TrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> HmdMatrix34_t>,
    pub GetArrayTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, propType: PropertyTypeTag_t, pBuffer: *mut c_void, unBufferSize: u32, pError: *mut ETrackedPropertyError) -> u32>,
    pub GetStringTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pchValue: *mut c_char, unBufferSize: u32, pError: *mut ETrackedPropertyError) -> u32>,
    pub GetPropErrorNameFromEnum: Option<unsafe extern "C" fn(error: ETrackedPropertyError) -> *mut c_char>,
    pub PollNextEvent: Option<unsafe extern "C" fn(pEvent: *mut VREvent_t, uncbVREvent: u32) -> bool>,
    pub PollNextEventWithPose: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin, pEvent: *mut VREvent_t, uncbVREvent: u32, pTrackedDevicePose: *mut TrackedDevicePose_t) -> bool>,
    pub GetEventTypeNameFromEnum: Option<unsafe extern "C" fn(eType: EVREventType) -> *mut c_char>,
    pub GetHiddenAreaMesh: Option<unsafe extern "C" fn(eEye: EVREye, type_: EHiddenAreaMeshType) -> HiddenAreaMesh_t>,
    pub GetControllerState: Option<unsafe extern "C" fn(unControllerDeviceIndex: TrackedDeviceIndex_t, pControllerState: *mut VRControllerState_t, unControllerStateSize: u32) -> bool>,
    pub GetControllerStateWithPose: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin, unControllerDeviceIndex: TrackedDeviceIndex_t, pControllerState: *mut VRControllerState_t, unControllerStateSize: u32, pTrackedDevicePose: *mut TrackedDevicePose_t) -> bool>,
    pub TriggerHapticPulse: Option<unsafe extern "C" fn(unControllerDeviceIndex: TrackedDeviceIndex_t, unAxisId: u32, usDurationMicroSec: c_ushort)>,
    pub GetButtonIdNameFromEnum: Option<unsafe extern "C" fn(eButtonId: EVRButtonId) -> *mut c_char>,
    pub GetControllerAxisTypeNameFromEnum: Option<unsafe extern "C" fn(eAxisType: EVRControllerAxisType) -> *mut c_char>,
    pub IsInputAvailable: Option<unsafe extern "C" fn() -> bool>,
    pub IsSteamVRDrawingControllers: Option<unsafe extern "C" fn() -> bool>,
    pub ShouldApplicationPause: Option<unsafe extern "C" fn() -> bool>,
    pub ShouldApplicationReduceRenderingWork: Option<unsafe extern "C" fn() -> bool>,
    pub DriverDebugRequest: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, pchRequest: *mut c_char, pchResponseBuffer: *mut c_char, unResponseBufferSize: u32) -> u32>,
    pub PerformFirmwareUpdate: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> EVRFirmwareError>,
    pub AcknowledgeQuit_Exiting: Option<unsafe extern "C" fn()>,
    pub AcknowledgeQuit_UserPrompt: Option<unsafe extern "C" fn()>,
}

Fields

GetRecommendedRenderTargetSize: Option<unsafe extern "C" fn(pnWidth: *mut u32, pnHeight: *mut u32)>GetProjectionMatrix: Option<unsafe extern "C" fn(eEye: EVREye, fNearZ: f32, fFarZ: f32) -> HmdMatrix44_t>GetProjectionRaw: Option<unsafe extern "C" fn(eEye: EVREye, pfLeft: *mut f32, pfRight: *mut f32, pfTop: *mut f32, pfBottom: *mut f32)>ComputeDistortion: Option<unsafe extern "C" fn(eEye: EVREye, fU: f32, fV: f32, pDistortionCoordinates: *mut DistortionCoordinates_t) -> bool>GetEyeToHeadTransform: Option<unsafe extern "C" fn(eEye: EVREye) -> HmdMatrix34_t>GetTimeSinceLastVsync: Option<unsafe extern "C" fn(pfSecondsSinceLastVsync: *mut f32, pulFrameCounter: *mut u64) -> bool>GetD3D9AdapterIndex: Option<unsafe extern "C" fn() -> i32>GetDXGIOutputInfo: Option<unsafe extern "C" fn(pnAdapterIndex: *mut i32)>GetOutputDevice: Option<unsafe extern "C" fn(pnDevice: *mut u64, textureType: ETextureType, pInstance: *mut VkInstance_T)>IsDisplayOnDesktop: Option<unsafe extern "C" fn() -> bool>SetDisplayVisibility: Option<unsafe extern "C" fn(bIsVisibleOnDesktop: bool) -> bool>GetDeviceToAbsoluteTrackingPose: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin, fPredictedSecondsToPhotonsFromNow: f32, pTrackedDevicePoseArray: *mut TrackedDevicePose_t, unTrackedDevicePoseArrayCount: u32)>ResetSeatedZeroPose: Option<unsafe extern "C" fn()>GetSeatedZeroPoseToStandingAbsoluteTrackingPose: Option<unsafe extern "C" fn() -> HmdMatrix34_t>GetRawZeroPoseToStandingAbsoluteTrackingPose: Option<unsafe extern "C" fn() -> HmdMatrix34_t>GetSortedTrackedDeviceIndicesOfClass: Option<unsafe extern "C" fn(eTrackedDeviceClass: ETrackedDeviceClass, punTrackedDeviceIndexArray: *mut TrackedDeviceIndex_t, unTrackedDeviceIndexArrayCount: u32, unRelativeToTrackedDeviceIndex: TrackedDeviceIndex_t) -> u32>GetTrackedDeviceActivityLevel: Option<unsafe extern "C" fn(unDeviceId: TrackedDeviceIndex_t) -> EDeviceActivityLevel>ApplyTransform: Option<unsafe extern "C" fn(pOutputPose: *mut TrackedDevicePose_t, pTrackedDevicePose: *mut TrackedDevicePose_t, pTransform: *mut HmdMatrix34_t)>GetTrackedDeviceIndexForControllerRole: Option<unsafe extern "C" fn(unDeviceType: ETrackedControllerRole) -> TrackedDeviceIndex_t>GetControllerRoleForTrackedDeviceIndex: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> ETrackedControllerRole>GetTrackedDeviceClass: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> ETrackedDeviceClass>IsTrackedDeviceConnected: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> bool>GetBoolTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> bool>GetFloatTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> f32>GetInt32TrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> i32>GetUint64TrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> u64>GetMatrix34TrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pError: *mut ETrackedPropertyError) -> HmdMatrix34_t>GetArrayTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, propType: PropertyTypeTag_t, pBuffer: *mut c_void, unBufferSize: u32, pError: *mut ETrackedPropertyError) -> u32>GetStringTrackedDeviceProperty: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, prop: ETrackedDeviceProperty, pchValue: *mut c_char, unBufferSize: u32, pError: *mut ETrackedPropertyError) -> u32>GetPropErrorNameFromEnum: Option<unsafe extern "C" fn(error: ETrackedPropertyError) -> *mut c_char>PollNextEvent: Option<unsafe extern "C" fn(pEvent: *mut VREvent_t, uncbVREvent: u32) -> bool>PollNextEventWithPose: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin, pEvent: *mut VREvent_t, uncbVREvent: u32, pTrackedDevicePose: *mut TrackedDevicePose_t) -> bool>GetEventTypeNameFromEnum: Option<unsafe extern "C" fn(eType: EVREventType) -> *mut c_char>GetHiddenAreaMesh: Option<unsafe extern "C" fn(eEye: EVREye, type_: EHiddenAreaMeshType) -> HiddenAreaMesh_t>GetControllerState: Option<unsafe extern "C" fn(unControllerDeviceIndex: TrackedDeviceIndex_t, pControllerState: *mut VRControllerState_t, unControllerStateSize: u32) -> bool>GetControllerStateWithPose: Option<unsafe extern "C" fn(eOrigin: ETrackingUniverseOrigin, unControllerDeviceIndex: TrackedDeviceIndex_t, pControllerState: *mut VRControllerState_t, unControllerStateSize: u32, pTrackedDevicePose: *mut TrackedDevicePose_t) -> bool>TriggerHapticPulse: Option<unsafe extern "C" fn(unControllerDeviceIndex: TrackedDeviceIndex_t, unAxisId: u32, usDurationMicroSec: c_ushort)>GetButtonIdNameFromEnum: Option<unsafe extern "C" fn(eButtonId: EVRButtonId) -> *mut c_char>GetControllerAxisTypeNameFromEnum: Option<unsafe extern "C" fn(eAxisType: EVRControllerAxisType) -> *mut c_char>IsInputAvailable: Option<unsafe extern "C" fn() -> bool>IsSteamVRDrawingControllers: Option<unsafe extern "C" fn() -> bool>ShouldApplicationPause: Option<unsafe extern "C" fn() -> bool>ShouldApplicationReduceRenderingWork: Option<unsafe extern "C" fn() -> bool>DriverDebugRequest: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t, pchRequest: *mut c_char, pchResponseBuffer: *mut c_char, unResponseBufferSize: u32) -> u32>PerformFirmwareUpdate: Option<unsafe extern "C" fn(unDeviceIndex: TrackedDeviceIndex_t) -> EVRFirmwareError>AcknowledgeQuit_Exiting: Option<unsafe extern "C" fn()>AcknowledgeQuit_UserPrompt: Option<unsafe extern "C" fn()>

Trait Implementations

impl Clone for VR_IVRSystem_FnTable[src]

impl Copy for VR_IVRSystem_FnTable[src]

impl Debug for VR_IVRSystem_FnTable[src]

Auto Trait Implementations

impl RefUnwindSafe for VR_IVRSystem_FnTable

impl Send for VR_IVRSystem_FnTable

impl Sync for VR_IVRSystem_FnTable

impl Unpin for VR_IVRSystem_FnTable

impl UnwindSafe for VR_IVRSystem_FnTable

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.