diff --git a/.gitmodules b/.gitmodules deleted file mode 100644 index 7bf82e7..0000000 --- a/.gitmodules +++ /dev/null @@ -1,3 +0,0 @@ -[submodule "openvr"] - path = openvr - url = https://github.com/ValveSoftware/openvr.git diff --git a/Cargo.toml b/Cargo.toml index 0eabb51..fa92c30 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,14 +6,20 @@ authors = [ "Erick Tryzelaar", "Rene Eichhorn" ] -build = "src/sys/build.rs" +license-file = "LICENSE.md" + +documentation = "http://rust-openvr.github.io/rust-openvr/openvr/index.html" +homepage = "https://github.com/rust-openvr/rust-openvr" +repository = "https://github.com/rust-openvr/rust-openvr" + +description = "A safe binding for openvr." [lib] name = "openvr" path = "src/lib.rs" -[dependencies.openvr_sys] -path = "src/sys/" +[dependencies] +openvr_sys = "0.1.1" [dev_dependencies] glium = "0.14.0" diff --git a/Readme.md b/Readme.md index b8728b1..4a2776e 100644 --- a/Readme.md +++ b/Readme.md @@ -3,29 +3,20 @@ rust-openvr [![Build Status](https://travis-ci.org/rust-openvr/rust-openvr.svg?branch=master)](https://travis-ci.org/rust-openvr/rust-openvr) -rust-openvr is a binding for openvr. It's still in progress. Tests are automatically ran by travis. -Also my private jenkins is running these test on Ubuntu 14.04 as well, every successful build will be pushed to its branch (stable, nightly, beta). For good practice always use either stable, beta or nightly instead of master! +rust-openvr is a binding for openvr. ## [Link to the documentation](http://auruss.github.io/rust-openvr/openvr/index.html) ## Current sdk version: OpenVR SDK 0.9.19 -Building --------- - -rust-openvr is fully cargoized. to Compile - - cargo build - -To add as a dependency using cargo Cargo add the following to your `Cargo.toml`. Will be added to crates.io once we've a stable version. For nightly/beta use nightly/beta branch instead. - - [dependencies.openvr] - git = "https://github.com/auruss/rust-openvr.git" - branch = "stable" - Using rust-openvr ----------- +# Requirements + +When trying to start a program that uses rust-openvr you will probably get an error message because it can't find openvr.dll (or openvr.so) +You can download the latest version here (https://github.com/ValveSoftware/openvr/tree/master/bin). After downloading please add it into your project folder (also for production releases!). + # Initializing ```rust diff --git a/examples/debug.rs b/examples/debug.rs new file mode 100644 index 0000000..bd8fcf2 --- /dev/null +++ b/examples/debug.rs @@ -0,0 +1,21 @@ +extern crate openvr; +extern crate nalgebra; + +pub fn main () { + let system = openvr::init().unwrap(); + let render_model = openvr::render_models().unwrap(); + let _ = openvr::compositor().unwrap(); + + loop { + let _ = openvr::compositor().unwrap().wait_get_poses(); + let raw = system.projection_matrix(openvr::Eye::Left, 0.1, 1000.0); + + let mat = nalgebra::Matrix4::new( + raw[0][0], raw[0][1], raw[0][2], raw[0][3], + raw[1][0], raw[1][1], raw[1][2], raw[1][3], + raw[2][0], raw[2][1], raw[2][2], raw[2][3], + raw[3][0], raw[3][1], raw[3][2], raw[3][3]); + + println!("{:?}", mat); + } +} diff --git a/openvr b/openvr deleted file mode 160000 index a6c91ef..0000000 --- a/openvr +++ /dev/null @@ -1 +0,0 @@ -Subproject commit a6c91ef97302ce2abd852115682fb8726471c67b diff --git a/scripts/binding.h b/scripts/binding.h deleted file mode 100644 index 7de7b4b..0000000 --- a/scripts/binding.h +++ /dev/null @@ -1,5 +0,0 @@ -// This header is used for bindgen to automatically generate the openvr c binding -// bindgen -match openvr_capi.h scripts/binding.h -o binding.rs - -#include -#include "../openvr/headers/openvr_capi.h" diff --git a/src/sys/Cargo.toml b/src/sys/Cargo.toml deleted file mode 100644 index 352b4c4..0000000 --- a/src/sys/Cargo.toml +++ /dev/null @@ -1,13 +0,0 @@ -[package] -name = "openvr_sys" -version = "0.1.0" -authors = [ - "Colin Sherratt", - "Erick Tryzelaar" -] - -build = "build.rs" - -[lib] -name = "openvr_sys" -path = "lib.rs" diff --git a/src/sys/build.rs b/src/sys/build.rs deleted file mode 100644 index 2c71b6a..0000000 --- a/src/sys/build.rs +++ /dev/null @@ -1,19 +0,0 @@ - - -#[cfg(target_os="macos")] -fn main() { - println!("cargo:rustc-link-search={}/../../openvr/lib/osx32", env!("CARGO_MANIFEST_DIR")); - println!("cargo:rustc-link-search={}/../../openvr/bin/osx32", env!("CARGO_MANIFEST_DIR")); -} - -#[cfg(target_os="linux")] -fn main() { - println!("cargo:rustc-link-search={}/../../openvr/lib/linux64", env!("CARGO_MANIFEST_DIR")); - println!("cargo:rustc-link-search={}/../../openvr/bin/linux64", env!("CARGO_MANIFEST_DIR")); -} - -#[cfg(target_os="windows")] -fn main() { - println!("cargo:rustc-link-search={}\\..\\..\\openvr\\lib\\win64", env!("CARGO_MANIFEST_DIR")); - println!("cargo:rustc-link-search={}\\..\\..\\openvr\\bin\\win64", env!("CARGO_MANIFEST_DIR")); -} diff --git a/src/sys/lib.rs b/src/sys/lib.rs deleted file mode 100755 index 934faa0..0000000 --- a/src/sys/lib.rs +++ /dev/null @@ -1,2685 +0,0 @@ -#[link(name = "openvr_api")] -extern {} - -/* automatically generated by rust-bindgen */ - -pub type int64_t = ::std::os::raw::c_longlong; -pub type uint64_t = ::std::os::raw::c_ulonglong; -pub type int_least64_t = int64_t; -pub type uint_least64_t = uint64_t; -pub type int_fast64_t = int64_t; -pub type uint_fast64_t = uint64_t; -pub type int32_t = ::std::os::raw::c_int; -pub type uint32_t = ::std::os::raw::c_uint; -pub type int_least32_t = int32_t; -pub type uint_least32_t = uint32_t; -pub type int_fast32_t = int32_t; -pub type uint_fast32_t = uint32_t; -pub type int16_t = ::std::os::raw::c_short; -pub type uint16_t = ::std::os::raw::c_ushort; -pub type int_least16_t = int16_t; -pub type uint_least16_t = uint16_t; -pub type int_fast16_t = int16_t; -pub type uint_fast16_t = uint16_t; -pub type int8_t = ::std::os::raw::c_char; -pub type uint8_t = ::std::os::raw::c_uchar; -pub type int_least8_t = int8_t; -pub type uint_least8_t = uint8_t; -pub type int_fast8_t = int8_t; -pub type uint_fast8_t = uint8_t; -pub type intptr_t = int64_t; -pub type uintptr_t = uint64_t; -pub type intmax_t = ::std::os::raw::c_longlong; -pub type uintmax_t = ::std::os::raw::c_ulonglong; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVREye { EVREye_Eye_Left = 0, EVREye_Eye_Right = 1, } -pub type EVREye = Enum_EVREye; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EGraphicsAPIConvention { - EGraphicsAPIConvention_API_DirectX = 0, - EGraphicsAPIConvention_API_OpenGL = 1, -} -pub type EGraphicsAPIConvention = Enum_EGraphicsAPIConvention; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EColorSpace { - EColorSpace_ColorSpace_Auto = 0, - EColorSpace_ColorSpace_Gamma = 1, - EColorSpace_ColorSpace_Linear = 2, -} -pub type EColorSpace = Enum_EColorSpace; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_ETrackingResult { - ETrackingResult_TrackingResult_Uninitialized = 1, - ETrackingResult_TrackingResult_Calibrating_InProgress = 100, - ETrackingResult_TrackingResult_Calibrating_OutOfRange = 101, - ETrackingResult_TrackingResult_Running_OK = 200, - ETrackingResult_TrackingResult_Running_OutOfRange = 201, -} -pub type ETrackingResult = Enum_ETrackingResult; -#[derive(Clone, Copy, Debug)] -#[repr(u32)] -pub enum Enum_ETrackedDeviceClass { - ETrackedDeviceClass_TrackedDeviceClass_Invalid = 0, - ETrackedDeviceClass_TrackedDeviceClass_HMD = 1, - ETrackedDeviceClass_TrackedDeviceClass_Controller = 2, - ETrackedDeviceClass_TrackedDeviceClass_TrackingReference = 4, - ETrackedDeviceClass_TrackedDeviceClass_Other = 1000, -} -pub type ETrackedDeviceClass = Enum_ETrackedDeviceClass; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_ETrackedControllerRole { - ETrackedControllerRole_TrackedControllerRole_Invalid = 0, - ETrackedControllerRole_TrackedControllerRole_LeftHand = 1, - ETrackedControllerRole_TrackedControllerRole_RightHand = 2, -} -pub type ETrackedControllerRole = Enum_ETrackedControllerRole; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_ETrackingUniverseOrigin { - ETrackingUniverseOrigin_TrackingUniverseSeated = 0, - ETrackingUniverseOrigin_TrackingUniverseStanding = 1, - ETrackingUniverseOrigin_TrackingUniverseRawAndUncalibrated = 2, -} -pub type ETrackingUniverseOrigin = Enum_ETrackingUniverseOrigin; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_ETrackedDeviceProperty { - ETrackedDeviceProperty_Prop_TrackingSystemName_String = 1000, - ETrackedDeviceProperty_Prop_ModelNumber_String = 1001, - ETrackedDeviceProperty_Prop_SerialNumber_String = 1002, - ETrackedDeviceProperty_Prop_RenderModelName_String = 1003, - ETrackedDeviceProperty_Prop_WillDriftInYaw_Bool = 1004, - ETrackedDeviceProperty_Prop_ManufacturerName_String = 1005, - ETrackedDeviceProperty_Prop_TrackingFirmwareVersion_String = 1006, - ETrackedDeviceProperty_Prop_HardwareRevision_String = 1007, - ETrackedDeviceProperty_Prop_AllWirelessDongleDescriptions_String = 1008, - ETrackedDeviceProperty_Prop_ConnectedWirelessDongle_String = 1009, - ETrackedDeviceProperty_Prop_DeviceIsWireless_Bool = 1010, - ETrackedDeviceProperty_Prop_DeviceIsCharging_Bool = 1011, - ETrackedDeviceProperty_Prop_DeviceBatteryPercentage_Float = 1012, - ETrackedDeviceProperty_Prop_StatusDisplayTransform_Matrix34 = 1013, - ETrackedDeviceProperty_Prop_Firmware_UpdateAvailable_Bool = 1014, - ETrackedDeviceProperty_Prop_Firmware_ManualUpdate_Bool = 1015, - ETrackedDeviceProperty_Prop_Firmware_ManualUpdateURL_String = 1016, - ETrackedDeviceProperty_Prop_HardwareRevision_Uint64 = 1017, - ETrackedDeviceProperty_Prop_FirmwareVersion_Uint64 = 1018, - ETrackedDeviceProperty_Prop_FPGAVersion_Uint64 = 1019, - ETrackedDeviceProperty_Prop_VRCVersion_Uint64 = 1020, - ETrackedDeviceProperty_Prop_RadioVersion_Uint64 = 1021, - ETrackedDeviceProperty_Prop_DongleVersion_Uint64 = 1022, - ETrackedDeviceProperty_Prop_BlockServerShutdown_Bool = 1023, - ETrackedDeviceProperty_Prop_CanUnifyCoordinateSystemWithHmd_Bool = 1024, - ETrackedDeviceProperty_Prop_ContainsProximitySensor_Bool = 1025, - ETrackedDeviceProperty_Prop_DeviceProvidesBatteryStatus_Bool = 1026, - ETrackedDeviceProperty_Prop_DeviceCanPowerOff_Bool = 1027, - ETrackedDeviceProperty_Prop_Firmware_ProgrammingTarget_String = 1028, - ETrackedDeviceProperty_Prop_DeviceClass_Int32 = 1029, - ETrackedDeviceProperty_Prop_HasCamera_Bool = 1030, - ETrackedDeviceProperty_Prop_ReportsTimeSinceVSync_Bool = 2000, - ETrackedDeviceProperty_Prop_SecondsFromVsyncToPhotons_Float = 2001, - ETrackedDeviceProperty_Prop_DisplayFrequency_Float = 2002, - ETrackedDeviceProperty_Prop_UserIpdMeters_Float = 2003, - ETrackedDeviceProperty_Prop_CurrentUniverseId_Uint64 = 2004, - ETrackedDeviceProperty_Prop_PreviousUniverseId_Uint64 = 2005, - ETrackedDeviceProperty_Prop_DisplayFirmwareVersion_Uint64 = 2006, - ETrackedDeviceProperty_Prop_IsOnDesktop_Bool = 2007, - ETrackedDeviceProperty_Prop_DisplayMCType_Int32 = 2008, - ETrackedDeviceProperty_Prop_DisplayMCOffset_Float = 2009, - ETrackedDeviceProperty_Prop_DisplayMCScale_Float = 2010, - ETrackedDeviceProperty_Prop_EdidVendorID_Int32 = 2011, - ETrackedDeviceProperty_Prop_DisplayMCImageLeft_String = 2012, - ETrackedDeviceProperty_Prop_DisplayMCImageRight_String = 2013, - ETrackedDeviceProperty_Prop_DisplayGCBlackClamp_Float = 2014, - ETrackedDeviceProperty_Prop_EdidProductID_Int32 = 2015, - ETrackedDeviceProperty_Prop_CameraToHeadTransform_Matrix34 = 2016, - ETrackedDeviceProperty_Prop_DisplayGCType_Int32 = 2017, - ETrackedDeviceProperty_Prop_DisplayGCOffset_Float = 2018, - ETrackedDeviceProperty_Prop_DisplayGCScale_Float = 2019, - ETrackedDeviceProperty_Prop_DisplayGCPrescale_Float = 2020, - ETrackedDeviceProperty_Prop_DisplayGCImage_String = 2021, - ETrackedDeviceProperty_Prop_LensCenterLeftU_Float = 2022, - ETrackedDeviceProperty_Prop_LensCenterLeftV_Float = 2023, - ETrackedDeviceProperty_Prop_LensCenterRightU_Float = 2024, - ETrackedDeviceProperty_Prop_LensCenterRightV_Float = 2025, - ETrackedDeviceProperty_Prop_UserHeadToEyeDepthMeters_Float = 2026, - ETrackedDeviceProperty_Prop_CameraFirmwareVersion_Uint64 = 2027, - ETrackedDeviceProperty_Prop_CameraFirmwareDescription_String = 2028, - ETrackedDeviceProperty_Prop_DisplayFPGAVersion_Uint64 = 2029, - ETrackedDeviceProperty_Prop_DisplayBootloaderVersion_Uint64 = 2030, - ETrackedDeviceProperty_Prop_DisplayHardwareVersion_Uint64 = 2031, - ETrackedDeviceProperty_Prop_AudioFirmwareVersion_Uint64 = 2032, - ETrackedDeviceProperty_Prop_CameraCompatibilityMode_Int32 = 2033, - ETrackedDeviceProperty_Prop_AttachedDeviceId_String = 3000, - ETrackedDeviceProperty_Prop_SupportedButtons_Uint64 = 3001, - ETrackedDeviceProperty_Prop_Axis0Type_Int32 = 3002, - ETrackedDeviceProperty_Prop_Axis1Type_Int32 = 3003, - ETrackedDeviceProperty_Prop_Axis2Type_Int32 = 3004, - ETrackedDeviceProperty_Prop_Axis3Type_Int32 = 3005, - ETrackedDeviceProperty_Prop_Axis4Type_Int32 = 3006, - ETrackedDeviceProperty_Prop_FieldOfViewLeftDegrees_Float = 4000, - ETrackedDeviceProperty_Prop_FieldOfViewRightDegrees_Float = 4001, - ETrackedDeviceProperty_Prop_FieldOfViewTopDegrees_Float = 4002, - ETrackedDeviceProperty_Prop_FieldOfViewBottomDegrees_Float = 4003, - ETrackedDeviceProperty_Prop_TrackingRangeMinimumMeters_Float = 4004, - ETrackedDeviceProperty_Prop_TrackingRangeMaximumMeters_Float = 4005, - ETrackedDeviceProperty_Prop_ModeLabel_String = 4006, - ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_Start = 10000, - ETrackedDeviceProperty_Prop_VendorSpecific_Reserved_End = 10999, -} -pub type ETrackedDeviceProperty = Enum_ETrackedDeviceProperty; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_ETrackedPropertyError { - ETrackedPropertyError_TrackedProp_Success = 0, - ETrackedPropertyError_TrackedProp_WrongDataType = 1, - ETrackedPropertyError_TrackedProp_WrongDeviceClass = 2, - ETrackedPropertyError_TrackedProp_BufferTooSmall = 3, - ETrackedPropertyError_TrackedProp_UnknownProperty = 4, - ETrackedPropertyError_TrackedProp_InvalidDevice = 5, - ETrackedPropertyError_TrackedProp_CouldNotContactServer = 6, - ETrackedPropertyError_TrackedProp_ValueNotProvidedByDevice = 7, - ETrackedPropertyError_TrackedProp_StringExceedsMaximumLength = 8, - ETrackedPropertyError_TrackedProp_NotYetAvailable = 9, -} -pub type ETrackedPropertyError = Enum_ETrackedPropertyError; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRSubmitFlags { - EVRSubmitFlags_Submit_Default = 0, - EVRSubmitFlags_Submit_LensDistortionAlreadyApplied = 1, - EVRSubmitFlags_Submit_GlRenderBuffer = 2, -} -pub type EVRSubmitFlags = Enum_EVRSubmitFlags; -#[derive(Clone, Copy)] -#[repr(i32)] -pub enum Enum_EVRState { - EVRState_VRState_Undefined = -1, - EVRState_VRState_Off = 0, - EVRState_VRState_Searching = 1, - EVRState_VRState_Searching_Alert = 2, - EVRState_VRState_Ready = 3, - EVRState_VRState_Ready_Alert = 4, - EVRState_VRState_NotReady = 5, -} -pub type EVRState = Enum_EVRState; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVREventType { - EVREventType_VREvent_None = 0, - EVREventType_VREvent_TrackedDeviceActivated = 100, - EVREventType_VREvent_TrackedDeviceDeactivated = 101, - EVREventType_VREvent_TrackedDeviceUpdated = 102, - EVREventType_VREvent_TrackedDeviceUserInteractionStarted = 103, - EVREventType_VREvent_TrackedDeviceUserInteractionEnded = 104, - EVREventType_VREvent_IpdChanged = 105, - EVREventType_VREvent_EnterStandbyMode = 106, - EVREventType_VREvent_LeaveStandbyMode = 107, - EVREventType_VREvent_TrackedDeviceRoleChanged = 108, - EVREventType_VREvent_ButtonPress = 200, - EVREventType_VREvent_ButtonUnpress = 201, - EVREventType_VREvent_ButtonTouch = 202, - EVREventType_VREvent_ButtonUntouch = 203, - EVREventType_VREvent_MouseMove = 300, - EVREventType_VREvent_MouseButtonDown = 301, - EVREventType_VREvent_MouseButtonUp = 302, - EVREventType_VREvent_FocusEnter = 303, - EVREventType_VREvent_FocusLeave = 304, - EVREventType_VREvent_Scroll = 305, - EVREventType_VREvent_TouchPadMove = 306, - EVREventType_VREvent_InputFocusCaptured = 400, - EVREventType_VREvent_InputFocusReleased = 401, - EVREventType_VREvent_SceneFocusLost = 402, - EVREventType_VREvent_SceneFocusGained = 403, - EVREventType_VREvent_SceneApplicationChanged = 404, - EVREventType_VREvent_SceneFocusChanged = 405, - EVREventType_VREvent_HideRenderModels = 410, - EVREventType_VREvent_ShowRenderModels = 411, - EVREventType_VREvent_OverlayShown = 500, - EVREventType_VREvent_OverlayHidden = 501, - EVREventType_VREvent_DashboardActivated = 502, - EVREventType_VREvent_DashboardDeactivated = 503, - EVREventType_VREvent_DashboardThumbSelected = 504, - EVREventType_VREvent_DashboardRequested = 505, - EVREventType_VREvent_ResetDashboard = 506, - EVREventType_VREvent_RenderToast = 507, - EVREventType_VREvent_ImageLoaded = 508, - EVREventType_VREvent_ShowKeyboard = 509, - EVREventType_VREvent_HideKeyboard = 510, - EVREventType_VREvent_OverlayGamepadFocusGained = 511, - EVREventType_VREvent_OverlayGamepadFocusLost = 512, - EVREventType_VREvent_OverlaySharedTextureChanged = 513, - EVREventType_VREvent_Notification_Shown = 600, - EVREventType_VREvent_Notification_Hidden = 601, - EVREventType_VREvent_Notification_BeginInteraction = 602, - EVREventType_VREvent_Notification_Destroyed = 603, - EVREventType_VREvent_Quit = 700, - EVREventType_VREvent_ProcessQuit = 701, - EVREventType_VREvent_QuitAborted_UserPrompt = 702, - EVREventType_VREvent_QuitAcknowledged = 703, - EVREventType_VREvent_ChaperoneDataHasChanged = 800, - EVREventType_VREvent_ChaperoneUniverseHasChanged = 801, - EVREventType_VREvent_ChaperoneTempDataHasChanged = 802, - EVREventType_VREvent_ChaperoneSettingsHaveChanged = 803, - EVREventType_VREvent_SeatedZeroPoseReset = 804, - EVREventType_VREvent_BackgroundSettingHasChanged = 850, - EVREventType_VREvent_CameraSettingsHaveChanged = 851, - EVREventType_VREvent_StatusUpdate = 900, - EVREventType_VREvent_MCImageUpdated = 1000, - EVREventType_VREvent_FirmwareUpdateStarted = 1100, - EVREventType_VREvent_FirmwareUpdateFinished = 1101, - EVREventType_VREvent_KeyboardClosed = 1200, - EVREventType_VREvent_KeyboardCharInput = 1201, - EVREventType_VREvent_KeyboardDone = 1202, - EVREventType_VREvent_ApplicationTransitionStarted = 1300, - EVREventType_VREvent_ApplicationTransitionAborted = 1301, - EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302, - EVREventType_VREvent_Compositor_MirrorWindowShown = 1400, - EVREventType_VREvent_Compositor_MirrorWindowHidden = 1401, - EVREventType_VREvent_Compositor_ChaperoneBoundsShown = 1410, - EVREventType_VREvent_Compositor_ChaperoneBoundsHidden = 1411, - EVREventType_VREvent_TrackedCamera_StartVideoStream = 1500, - EVREventType_VREvent_TrackedCamera_StopVideoStream = 1501, - EVREventType_VREvent_TrackedCamera_PauseVideoStream = 1502, - EVREventType_VREvent_TrackedCamera_ResumeVideoStream = 1503, - EVREventType_VREvent_PerformanceTest_EnableCapture = 1600, - EVREventType_VREvent_PerformanceTest_DisableCapture = 1601, - EVREventType_VREvent_PerformanceTest_FidelityLevel = 1602, - EVREventType_VREvent_VendorSpecific_Reserved_Start = 10000, - EVREventType_VREvent_VendorSpecific_Reserved_End = 19999, -} -pub type EVREventType = Enum_EVREventType; -#[derive(Clone, Copy)] -#[repr(i32)] -pub enum Enum_EDeviceActivityLevel { - EDeviceActivityLevel_k_EDeviceActivityLevel_Unknown = -1, - EDeviceActivityLevel_k_EDeviceActivityLevel_Idle = 0, - EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction = 1, - EDeviceActivityLevel_k_EDeviceActivityLevel_UserInteraction_Timeout = 2, - EDeviceActivityLevel_k_EDeviceActivityLevel_Standby = 3, -} -pub type EDeviceActivityLevel = Enum_EDeviceActivityLevel; -pub const EVRButtonId_k_EButton_SteamVR_Touchpad: Enum_EVRButtonId = - Enum_EVRButtonId::EVRButtonId_k_EButton_Axis0; -pub const EVRButtonId_k_EButton_SteamVR_Trigger: Enum_EVRButtonId = - Enum_EVRButtonId::EVRButtonId_k_EButton_Axis1; -pub const EVRButtonId_k_EButton_Dashboard_Back: Enum_EVRButtonId = - Enum_EVRButtonId::EVRButtonId_k_EButton_Grip; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRButtonId { - EVRButtonId_k_EButton_System = 0, - EVRButtonId_k_EButton_ApplicationMenu = 1, - EVRButtonId_k_EButton_Grip = 2, - EVRButtonId_k_EButton_DPad_Left = 3, - EVRButtonId_k_EButton_DPad_Up = 4, - EVRButtonId_k_EButton_DPad_Right = 5, - EVRButtonId_k_EButton_DPad_Down = 6, - EVRButtonId_k_EButton_A = 7, - EVRButtonId_k_EButton_Axis0 = 32, - EVRButtonId_k_EButton_Axis1 = 33, - EVRButtonId_k_EButton_Axis2 = 34, - EVRButtonId_k_EButton_Axis3 = 35, - EVRButtonId_k_EButton_Axis4 = 36, - EVRButtonId_k_EButton_Max = 64, -} -pub type EVRButtonId = Enum_EVRButtonId; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRMouseButton { - EVRMouseButton_VRMouseButton_Left = 1, - EVRMouseButton_VRMouseButton_Right = 2, - EVRMouseButton_VRMouseButton_Middle = 4, -} -pub type EVRMouseButton = Enum_EVRMouseButton; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRControllerAxisType { - EVRControllerAxisType_k_eControllerAxis_None = 0, - EVRControllerAxisType_k_eControllerAxis_TrackPad = 1, - EVRControllerAxisType_k_eControllerAxis_Joystick = 2, - EVRControllerAxisType_k_eControllerAxis_Trigger = 3, -} -pub type EVRControllerAxisType = Enum_EVRControllerAxisType; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRControllerEventOutputType { - EVRControllerEventOutputType_ControllerEventOutput_OSEvents = 0, - EVRControllerEventOutputType_ControllerEventOutput_VREvents = 1, -} -pub type EVRControllerEventOutputType = Enum_EVRControllerEventOutputType; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_ECollisionBoundsStyle { - ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_BEGINNER = 0, - ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_INTERMEDIATE = 1, - ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_SQUARES = 2, - ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_ADVANCED = 3, - ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_NONE = 4, - ECollisionBoundsStyle_COLLISION_BOUNDS_STYLE_COUNT = 5, -} -pub type ECollisionBoundsStyle = Enum_ECollisionBoundsStyle; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVROverlayError { - EVROverlayError_VROverlayError_None = 0, - EVROverlayError_VROverlayError_UnknownOverlay = 10, - EVROverlayError_VROverlayError_InvalidHandle = 11, - EVROverlayError_VROverlayError_PermissionDenied = 12, - EVROverlayError_VROverlayError_OverlayLimitExceeded = 13, - EVROverlayError_VROverlayError_WrongVisibilityType = 14, - EVROverlayError_VROverlayError_KeyTooLong = 15, - EVROverlayError_VROverlayError_NameTooLong = 16, - EVROverlayError_VROverlayError_KeyInUse = 17, - EVROverlayError_VROverlayError_WrongTransformType = 18, - EVROverlayError_VROverlayError_InvalidTrackedDevice = 19, - EVROverlayError_VROverlayError_InvalidParameter = 20, - EVROverlayError_VROverlayError_ThumbnailCantBeDestroyed = 21, - EVROverlayError_VROverlayError_ArrayTooSmall = 22, - EVROverlayError_VROverlayError_RequestFailed = 23, - EVROverlayError_VROverlayError_InvalidTexture = 24, - EVROverlayError_VROverlayError_UnableToLoadFile = 25, - EVROverlayError_VROVerlayError_KeyboardAlreadyInUse = 26, - EVROverlayError_VROverlayError_NoNeighbor = 27, -} -pub type EVROverlayError = Enum_EVROverlayError; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRApplicationType { - EVRApplicationType_VRApplication_Other = 0, - EVRApplicationType_VRApplication_Scene = 1, - EVRApplicationType_VRApplication_Overlay = 2, - EVRApplicationType_VRApplication_Background = 3, - EVRApplicationType_VRApplication_Utility = 4, -} -pub type EVRApplicationType = Enum_EVRApplicationType; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRFirmwareError { - EVRFirmwareError_VRFirmwareError_None = 0, - EVRFirmwareError_VRFirmwareError_Success = 1, - EVRFirmwareError_VRFirmwareError_Fail = 2, -} -pub type EVRFirmwareError = Enum_EVRFirmwareError; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRNotificationError { - EVRNotificationError_VRNotificationError_OK = 0, - EVRNotificationError_VRNotificationError_InvalidNotificationId = 100, - EVRNotificationError_VRNotificationError_NotificationQueueFull = 101, - EVRNotificationError_VRNotificationError_InvalidOverlayHandle = 102, -} -pub type EVRNotificationError = Enum_EVRNotificationError; -#[derive(Clone, Copy, Debug)] -#[repr(u32)] -pub enum Enum_EVRInitError { - EVRInitError_VRInitError_None = 0, - EVRInitError_VRInitError_Unknown = 1, - EVRInitError_VRInitError_Init_InstallationNotFound = 100, - EVRInitError_VRInitError_Init_InstallationCorrupt = 101, - EVRInitError_VRInitError_Init_VRClientDLLNotFound = 102, - EVRInitError_VRInitError_Init_FileNotFound = 103, - EVRInitError_VRInitError_Init_FactoryNotFound = 104, - EVRInitError_VRInitError_Init_InterfaceNotFound = 105, - EVRInitError_VRInitError_Init_InvalidInterface = 106, - EVRInitError_VRInitError_Init_UserConfigDirectoryInvalid = 107, - EVRInitError_VRInitError_Init_HmdNotFound = 108, - EVRInitError_VRInitError_Init_NotInitialized = 109, - EVRInitError_VRInitError_Init_PathRegistryNotFound = 110, - EVRInitError_VRInitError_Init_NoConfigPath = 111, - EVRInitError_VRInitError_Init_NoLogPath = 112, - EVRInitError_VRInitError_Init_PathRegistryNotWritable = 113, - EVRInitError_VRInitError_Init_AppInfoInitFailed = 114, - EVRInitError_VRInitError_Init_Retry = 115, - EVRInitError_VRInitError_Init_InitCanceledByUser = 116, - EVRInitError_VRInitError_Init_AnotherAppLaunching = 117, - EVRInitError_VRInitError_Init_SettingsInitFailed = 118, - EVRInitError_VRInitError_Init_ShuttingDown = 119, - EVRInitError_VRInitError_Init_TooManyObjects = 120, - EVRInitError_VRInitError_Init_NoServerForBackgroundApp = 121, - EVRInitError_VRInitError_Init_NotSupportedWithCompositor = 122, - EVRInitError_VRInitError_Init_NotAvailableToUtilityApps = 123, - EVRInitError_VRInitError_Driver_Failed = 200, - EVRInitError_VRInitError_Driver_Unknown = 201, - EVRInitError_VRInitError_Driver_HmdUnknown = 202, - EVRInitError_VRInitError_Driver_NotLoaded = 203, - EVRInitError_VRInitError_Driver_RuntimeOutOfDate = 204, - EVRInitError_VRInitError_Driver_HmdInUse = 205, - EVRInitError_VRInitError_Driver_NotCalibrated = 206, - EVRInitError_VRInitError_Driver_CalibrationInvalid = 207, - EVRInitError_VRInitError_Driver_HmdDisplayNotFound = 208, - EVRInitError_VRInitError_IPC_ServerInitFailed = 300, - EVRInitError_VRInitError_IPC_ConnectFailed = 301, - EVRInitError_VRInitError_IPC_SharedStateInitFailed = 302, - EVRInitError_VRInitError_IPC_CompositorInitFailed = 303, - EVRInitError_VRInitError_IPC_MutexInitFailed = 304, - EVRInitError_VRInitError_IPC_Failed = 305, - EVRInitError_VRInitError_Compositor_Failed = 400, - EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401, - EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = - 1000, - EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101, - EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart - = 1102, - EVRInitError_VRInitError_VendorSpecific_HmdFound_NoStoredConfig = 1103, - EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooBig = 1104, - EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigTooSmall = 1105, - EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToInitZLib = 1106, - EVRInitError_VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion = - 1107, - EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart - = 1108, - EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart - = 1109, - EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext = - 1110, - EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataAddressRange = - 1111, - EVRInitError_VRInitError_VendorSpecific_HmdFound_UserDataError = 1112, - EVRInitError_VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck = - 1113, - EVRInitError_VRInitError_Steam_SteamInstallationNotFound = 2000, -} -pub type EVRInitError = Enum_EVRInitError; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRApplicationError { - EVRApplicationError_VRApplicationError_None = 0, - EVRApplicationError_VRApplicationError_AppKeyAlreadyExists = 100, - EVRApplicationError_VRApplicationError_NoManifest = 101, - EVRApplicationError_VRApplicationError_NoApplication = 102, - EVRApplicationError_VRApplicationError_InvalidIndex = 103, - EVRApplicationError_VRApplicationError_UnknownApplication = 104, - EVRApplicationError_VRApplicationError_IPCFailed = 105, - EVRApplicationError_VRApplicationError_ApplicationAlreadyRunning = 106, - EVRApplicationError_VRApplicationError_InvalidManifest = 107, - EVRApplicationError_VRApplicationError_InvalidApplication = 108, - EVRApplicationError_VRApplicationError_LaunchFailed = 109, - EVRApplicationError_VRApplicationError_ApplicationAlreadyStarting = 110, - EVRApplicationError_VRApplicationError_LaunchInProgress = 111, - EVRApplicationError_VRApplicationError_OldApplicationQuitting = 112, - EVRApplicationError_VRApplicationError_TransitionAborted = 113, - EVRApplicationError_VRApplicationError_IsTemplate = 114, - EVRApplicationError_VRApplicationError_BufferTooSmall = 200, - EVRApplicationError_VRApplicationError_PropertyNotSet = 201, - EVRApplicationError_VRApplicationError_UnknownProperty = 202, -} -pub type EVRApplicationError = Enum_EVRApplicationError; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRApplicationProperty { - EVRApplicationProperty_VRApplicationProperty_Name_String = 0, - EVRApplicationProperty_VRApplicationProperty_LaunchType_String = 11, - EVRApplicationProperty_VRApplicationProperty_WorkingDirectory_String = 12, - EVRApplicationProperty_VRApplicationProperty_BinaryPath_String = 13, - EVRApplicationProperty_VRApplicationProperty_Arguments_String = 14, - EVRApplicationProperty_VRApplicationProperty_URL_String = 15, - EVRApplicationProperty_VRApplicationProperty_Description_String = 50, - EVRApplicationProperty_VRApplicationProperty_NewsURL_String = 51, - EVRApplicationProperty_VRApplicationProperty_ImagePath_String = 52, - EVRApplicationProperty_VRApplicationProperty_Source_String = 53, - EVRApplicationProperty_VRApplicationProperty_IsDashboardOverlay_Bool = 60, - EVRApplicationProperty_VRApplicationProperty_IsTemplate_Bool = 61, - EVRApplicationProperty_VRApplicationProperty_IsInstanced_Bool = 62, - EVRApplicationProperty_VRApplicationProperty_LastLaunchTime_Uint64 = 70, -} -pub type EVRApplicationProperty = Enum_EVRApplicationProperty; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRApplicationTransitionState { - EVRApplicationTransitionState_VRApplicationTransition_None = 0, - EVRApplicationTransitionState_VRApplicationTransition_OldAppQuitSent = 10, - EVRApplicationTransitionState_VRApplicationTransition_WaitingForExternalLaunch - = 11, - EVRApplicationTransitionState_VRApplicationTransition_NewAppLaunched = 20, -} -pub type EVRApplicationTransitionState = Enum_EVRApplicationTransitionState; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_ChaperoneCalibrationState { - ChaperoneCalibrationState_OK = 1, - ChaperoneCalibrationState_Warning = 100, - ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, - ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, - ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, - ChaperoneCalibrationState_Error = 200, - ChaperoneCalibrationState_Error_BaseStationUninitalized = 201, - ChaperoneCalibrationState_Error_BaseStationConflict = 202, - ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, - ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, -} -pub type ChaperoneCalibrationState = Enum_ChaperoneCalibrationState; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EChaperoneConfigFile { - EChaperoneConfigFile_Live = 1, - EChaperoneConfigFile_Temp = 2, -} -pub type EChaperoneConfigFile = Enum_EChaperoneConfigFile; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EChaperoneImportFlags { - EChaperoneImportFlags_EChaperoneImport_BoundsOnly = 1, -} -pub type EChaperoneImportFlags = Enum_EChaperoneImportFlags; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRCompositorError { - EVRCompositorError_VRCompositorError_None = 0, - EVRCompositorError_VRCompositorError_IncompatibleVersion = 100, - EVRCompositorError_VRCompositorError_DoNotHaveFocus = 101, - EVRCompositorError_VRCompositorError_InvalidTexture = 102, - EVRCompositorError_VRCompositorError_IsNotSceneApplication = 103, - EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104, - EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105, - EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106, - EVRCompositorError_VRCompositorError_IndexOutOfRange = 107, -} -pub type EVRCompositorError = Enum_EVRCompositorError; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_VROverlayInputMethod { - VROverlayInputMethod_None = 0, - VROverlayInputMethod_Mouse = 1, -} -pub type VROverlayInputMethod = Enum_VROverlayInputMethod; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_VROverlayTransformType { - VROverlayTransformType_VROverlayTransform_Absolute = 0, - VROverlayTransformType_VROverlayTransform_TrackedDeviceRelative = 1, - VROverlayTransformType_VROverlayTransform_SystemOverlay = 2, - VROverlayTransformType_VROverlayTransform_TrackedComponent = 3, -} -pub type VROverlayTransformType = Enum_VROverlayTransformType; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_VROverlayFlags { - VROverlayFlags_None = 0, - VROverlayFlags_Curved = 1, - VROverlayFlags_RGSS4X = 2, - VROverlayFlags_NoDashboardTab = 3, - VROverlayFlags_AcceptsGamepadEvents = 4, - VROverlayFlags_ShowGamepadFocus = 5, - VROverlayFlags_SendVRScrollEvents = 6, - VROverlayFlags_SendVRTouchpadEvents = 7, - VROverlayFlags_ShowTouchPadScrollWheel = 8, -} -pub type VROverlayFlags = Enum_VROverlayFlags; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EGamepadTextInputMode { - EGamepadTextInputMode_k_EGamepadTextInputModeNormal = 0, - EGamepadTextInputMode_k_EGamepadTextInputModePassword = 1, - EGamepadTextInputMode_k_EGamepadTextInputModeSubmit = 2, -} -pub type EGamepadTextInputMode = Enum_EGamepadTextInputMode; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EGamepadTextInputLineMode { - EGamepadTextInputLineMode_k_EGamepadTextInputLineModeSingleLine = 0, - EGamepadTextInputLineMode_k_EGamepadTextInputLineModeMultipleLines = 1, -} -pub type EGamepadTextInputLineMode = Enum_EGamepadTextInputLineMode; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EOverlayDirection { - EOverlayDirection_OverlayDirection_Up = 0, - EOverlayDirection_OverlayDirection_Down = 1, - EOverlayDirection_OverlayDirection_Left = 2, - EOverlayDirection_OverlayDirection_Right = 3, - EOverlayDirection_OverlayDirection_Count = 4, -} -pub type EOverlayDirection = Enum_EOverlayDirection; -#[derive(Clone, Copy, Debug)] -#[repr(u32)] -pub enum Enum_EVRRenderModelError { - EVRRenderModelError_VRRenderModelError_None = 0, - EVRRenderModelError_VRRenderModelError_Loading = 100, - EVRRenderModelError_VRRenderModelError_NotSupported = 200, - EVRRenderModelError_VRRenderModelError_InvalidArg = 300, - EVRRenderModelError_VRRenderModelError_InvalidModel = 301, - EVRRenderModelError_VRRenderModelError_NoShapes = 302, - EVRRenderModelError_VRRenderModelError_MultipleShapes = 303, - EVRRenderModelError_VRRenderModelError_TooManyIndices = 304, - EVRRenderModelError_VRRenderModelError_MultipleTextures = 305, - EVRRenderModelError_VRRenderModelError_InvalidTexture = 400, -} -pub type EVRRenderModelError = Enum_EVRRenderModelError; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRComponentProperty { - EVRComponentProperty_VRComponentProperty_IsStatic = 1, - EVRComponentProperty_VRComponentProperty_IsVisible = 2, - EVRComponentProperty_VRComponentProperty_IsTouched = 4, - EVRComponentProperty_VRComponentProperty_IsPressed = 8, - EVRComponentProperty_VRComponentProperty_IsScrolled = 16, -} -pub type EVRComponentProperty = Enum_EVRComponentProperty; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRNotificationType { - EVRNotificationType_Transient = 0, - EVRNotificationType_Persistent = 1, -} -pub type EVRNotificationType = Enum_EVRNotificationType; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRNotificationStyle { - EVRNotificationStyle_None = 0, - EVRNotificationStyle_Application = 100, - EVRNotificationStyle_Contact_Disabled = 200, - EVRNotificationStyle_Contact_Enabled = 201, - EVRNotificationStyle_Contact_Active = 202, -} -pub type EVRNotificationStyle = Enum_EVRNotificationStyle; -#[derive(Clone, Copy)] -#[repr(u32)] -pub enum Enum_EVRSettingsError { - EVRSettingsError_VRSettingsError_None = 0, - EVRSettingsError_VRSettingsError_IPCFailed = 1, - EVRSettingsError_VRSettingsError_WriteFailed = 2, - EVRSettingsError_VRSettingsError_ReadFailed = 3, -} -pub type EVRSettingsError = Enum_EVRSettingsError; -pub type TrackedDeviceIndex_t = uint32_t; -pub type VRNotificationId = uint32_t; -pub type VROverlayHandle_t = uint64_t; -pub type glSharedTextureHandle_t = *mut ::std::os::raw::c_void; -pub type glInt_t = int32_t; -pub type glUInt_t = uint32_t; -pub type VRComponentProperties = uint32_t; -pub type TextureID_t = int32_t; -pub type HmdError = EVRInitError; -pub type Hmd_Eye = EVREye; -pub type GraphicsAPIConvention = EGraphicsAPIConvention; -pub type ColorSpace = EColorSpace; -pub type HmdTrackingResult = ETrackingResult; -pub type TrackedDeviceClass = ETrackedDeviceClass; -pub type TrackingUniverseOrigin = ETrackingUniverseOrigin; -pub type TrackedDeviceProperty = ETrackedDeviceProperty; -pub type TrackedPropertyError = ETrackedPropertyError; -pub type VRSubmitFlags_t = EVRSubmitFlags; -pub type VRState_t = EVRState; -pub type CollisionBoundsStyle_t = ECollisionBoundsStyle; -pub type VROverlayError = EVROverlayError; -pub type VRFirmwareError = EVRFirmwareError; -pub type VRCompositorError = EVRCompositorError; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdMatrix34_t { - pub m: [[::std::os::raw::c_float; 4usize]; 3usize], -} -impl ::std::clone::Clone for Struct_HmdMatrix34_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdMatrix34_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdMatrix34_t = Struct_HmdMatrix34_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdMatrix44_t { - pub m: [[::std::os::raw::c_float; 4usize]; 4usize], -} -impl ::std::clone::Clone for Struct_HmdMatrix44_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdMatrix44_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdMatrix44_t = Struct_HmdMatrix44_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdVector3_t { - pub v: [::std::os::raw::c_float; 3usize], -} -impl ::std::clone::Clone for Struct_HmdVector3_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdVector3_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdVector3_t = Struct_HmdVector3_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdVector4_t { - pub v: [::std::os::raw::c_float; 4usize], -} -impl ::std::clone::Clone for Struct_HmdVector4_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdVector4_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdVector4_t = Struct_HmdVector4_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdVector3d_t { - pub v: [::std::os::raw::c_double; 3usize], -} -impl ::std::clone::Clone for Struct_HmdVector3d_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdVector3d_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdVector3d_t = Struct_HmdVector3d_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdVector2_t { - pub v: [::std::os::raw::c_float; 2usize], -} -impl ::std::clone::Clone for Struct_HmdVector2_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdVector2_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdVector2_t = Struct_HmdVector2_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdQuaternion_t { - pub w: ::std::os::raw::c_double, - pub x: ::std::os::raw::c_double, - pub y: ::std::os::raw::c_double, - pub z: ::std::os::raw::c_double, -} -impl ::std::clone::Clone for Struct_HmdQuaternion_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdQuaternion_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdQuaternion_t = Struct_HmdQuaternion_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdColor_t { - pub r: ::std::os::raw::c_float, - pub g: ::std::os::raw::c_float, - pub b: ::std::os::raw::c_float, - pub a: ::std::os::raw::c_float, -} -impl ::std::clone::Clone for Struct_HmdColor_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdColor_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdColor_t = Struct_HmdColor_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdQuad_t { - pub vCorners: [Struct_HmdVector3_t; 4usize], -} -impl ::std::clone::Clone for Struct_HmdQuad_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdQuad_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdQuad_t = Struct_HmdQuad_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HmdRect2_t { - pub vTopLeft: Struct_HmdVector2_t, - pub vBottomRight: Struct_HmdVector2_t, -} -impl ::std::clone::Clone for Struct_HmdRect2_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HmdRect2_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HmdRect2_t = Struct_HmdRect2_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_DistortionCoordinates_t { - pub rfRed: [::std::os::raw::c_float; 2usize], - pub rfGreen: [::std::os::raw::c_float; 2usize], - pub rfBlue: [::std::os::raw::c_float; 2usize], -} -impl ::std::clone::Clone for Struct_DistortionCoordinates_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_DistortionCoordinates_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type DistortionCoordinates_t = Struct_DistortionCoordinates_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_Texture_t { - pub handle: *mut ::std::os::raw::c_void, - pub eType: Enum_EGraphicsAPIConvention, - pub eColorSpace: Enum_EColorSpace, -} -impl ::std::clone::Clone for Struct_Texture_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_Texture_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type Texture_t = Struct_Texture_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_TrackedDevicePose_t { - pub mDeviceToAbsoluteTracking: Struct_HmdMatrix34_t, - pub vVelocity: Struct_HmdVector3_t, - pub vAngularVelocity: Struct_HmdVector3_t, - pub eTrackingResult: Enum_ETrackingResult, - pub bPoseIsValid: u8, - pub bDeviceIsConnected: u8, -} -impl ::std::clone::Clone for Struct_TrackedDevicePose_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_TrackedDevicePose_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type TrackedDevicePose_t = Struct_TrackedDevicePose_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VRTextureBounds_t { - pub uMin: ::std::os::raw::c_float, - pub vMin: ::std::os::raw::c_float, - pub uMax: ::std::os::raw::c_float, - pub vMax: ::std::os::raw::c_float, -} -impl ::std::clone::Clone for Struct_VRTextureBounds_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VRTextureBounds_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VRTextureBounds_t = Struct_VRTextureBounds_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Controller_t { - pub button: uint32_t, -} -impl ::std::clone::Clone for Struct_VREvent_Controller_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Controller_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Controller_t = Struct_VREvent_Controller_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Mouse_t { - pub x: ::std::os::raw::c_float, - pub y: ::std::os::raw::c_float, - pub button: uint32_t, -} -impl ::std::clone::Clone for Struct_VREvent_Mouse_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Mouse_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Mouse_t = Struct_VREvent_Mouse_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Scroll_t { - pub xdelta: ::std::os::raw::c_float, - pub ydelta: ::std::os::raw::c_float, - pub repeatCount: uint32_t, -} -impl ::std::clone::Clone for Struct_VREvent_Scroll_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Scroll_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Scroll_t = Struct_VREvent_Scroll_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_TouchPadMove_t { - pub bFingerDown: u8, - pub flSecondsFingerDown: ::std::os::raw::c_float, - pub fValueXFirst: ::std::os::raw::c_float, - pub fValueYFirst: ::std::os::raw::c_float, - pub fValueXRaw: ::std::os::raw::c_float, - pub fValueYRaw: ::std::os::raw::c_float, -} -impl ::std::clone::Clone for Struct_VREvent_TouchPadMove_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_TouchPadMove_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_TouchPadMove_t = Struct_VREvent_TouchPadMove_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Notification_t { - pub ulUserValue: uint64_t, - pub notificationId: uint32_t, -} -impl ::std::clone::Clone for Struct_VREvent_Notification_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Notification_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Notification_t = Struct_VREvent_Notification_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Process_t { - pub pid: uint32_t, - pub oldPid: uint32_t, - pub bForced: u8, -} -impl ::std::clone::Clone for Struct_VREvent_Process_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Process_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Process_t = Struct_VREvent_Process_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Overlay_t { - pub overlayHandle: uint64_t, -} -impl ::std::clone::Clone for Struct_VREvent_Overlay_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Overlay_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Overlay_t = Struct_VREvent_Overlay_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Status_t { - pub statusState: uint32_t, -} -impl ::std::clone::Clone for Struct_VREvent_Status_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Status_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Status_t = Struct_VREvent_Status_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Keyboard_t { - pub cNewInput: [*mut ::std::os::raw::c_char; 8usize], - pub uUserValue: uint64_t, -} -impl ::std::clone::Clone for Struct_VREvent_Keyboard_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Keyboard_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Keyboard_t = Struct_VREvent_Keyboard_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Ipd_t { - pub ipdMeters: ::std::os::raw::c_float, -} -impl ::std::clone::Clone for Struct_VREvent_Ipd_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Ipd_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Ipd_t = Struct_VREvent_Ipd_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Chaperone_t { - pub m_nPreviousUniverse: uint64_t, - pub m_nCurrentUniverse: uint64_t, -} -impl ::std::clone::Clone for Struct_VREvent_Chaperone_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Chaperone_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Chaperone_t = Struct_VREvent_Chaperone_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_Reserved_t { - pub reserved0: uint64_t, - pub reserved1: uint64_t, -} -impl ::std::clone::Clone for Struct_VREvent_Reserved_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_Reserved_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Reserved_t = Struct_VREvent_Reserved_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_PerformanceTest_t { - pub m_nFidelityLevel: uint32_t, -} -impl ::std::clone::Clone for Struct_VREvent_PerformanceTest_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_PerformanceTest_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_PerformanceTest_t = Struct_VREvent_PerformanceTest_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_SeatedZeroPoseReset_t { - pub bResetBySystemMenu: u8, -} -impl ::std::clone::Clone for Struct_VREvent_SeatedZeroPoseReset_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_SeatedZeroPoseReset_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_SeatedZeroPoseReset_t = Struct_VREvent_SeatedZeroPoseReset_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_HiddenAreaMesh_t { - pub pVertexData: *mut Struct_HmdVector2_t, - pub unTriangleCount: uint32_t, -} -impl ::std::clone::Clone for Struct_HiddenAreaMesh_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_HiddenAreaMesh_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type HiddenAreaMesh_t = Struct_HiddenAreaMesh_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VRControllerAxis_t { - pub x: ::std::os::raw::c_float, - pub y: ::std::os::raw::c_float, -} -impl ::std::clone::Clone for Struct_VRControllerAxis_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VRControllerAxis_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VRControllerAxis_t = Struct_VRControllerAxis_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VRControllerState_t { - pub unPacketNum: uint32_t, - pub ulButtonPressed: uint64_t, - pub ulButtonTouched: uint64_t, - pub rAxis: [Struct_VRControllerAxis_t; 5usize], -} -impl ::std::clone::Clone for Struct_VRControllerState_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VRControllerState_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VRControllerState_t = Struct_VRControllerState_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_Compositor_OverlaySettings { - pub size: uint32_t, - pub curved: u8, - pub antialias: u8, - pub scale: ::std::os::raw::c_float, - pub distance: ::std::os::raw::c_float, - pub alpha: ::std::os::raw::c_float, - pub uOffset: ::std::os::raw::c_float, - pub vOffset: ::std::os::raw::c_float, - pub uScale: ::std::os::raw::c_float, - pub vScale: ::std::os::raw::c_float, - pub gridDivs: ::std::os::raw::c_float, - pub gridWidth: ::std::os::raw::c_float, - pub gridScale: ::std::os::raw::c_float, - pub transform: Struct_HmdMatrix44_t, -} -impl ::std::clone::Clone for Struct_Compositor_OverlaySettings { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_Compositor_OverlaySettings { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type Compositor_OverlaySettings = Struct_Compositor_OverlaySettings; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_AppOverrideKeys_t { - pub pchKey: *mut ::std::os::raw::c_char, - pub pchValue: *mut ::std::os::raw::c_char, -} -impl ::std::clone::Clone for Struct_AppOverrideKeys_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_AppOverrideKeys_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type AppOverrideKeys_t = Struct_AppOverrideKeys_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_Compositor_FrameTiming { - pub m_nSize: uint32_t, - pub m_nFrameIndex: uint32_t, - pub m_nNumFramePresents: uint32_t, - pub m_nNumDroppedFrames: uint32_t, - pub m_flSystemTimeInSeconds: ::std::os::raw::c_double, - pub m_flSceneRenderGpuMs: ::std::os::raw::c_float, - pub m_flTotalRenderGpuMs: ::std::os::raw::c_float, - pub m_flCompositorRenderGpuMs: ::std::os::raw::c_float, - pub m_flCompositorRenderCpuMs: ::std::os::raw::c_float, - pub m_flCompositorIdleCpuMs: ::std::os::raw::c_float, - pub m_flClientFrameIntervalMs: ::std::os::raw::c_float, - pub m_flPresentCallCpuMs: ::std::os::raw::c_float, - pub m_flWaitForPresentCpuMs: ::std::os::raw::c_float, - pub m_flSubmitFrameMs: ::std::os::raw::c_float, - pub m_flWaitGetPosesCalledMs: ::std::os::raw::c_float, - pub m_flNewPosesReadyMs: ::std::os::raw::c_float, - pub m_flNewFrameReadyMs: ::std::os::raw::c_float, - pub m_flCompositorUpdateStartMs: ::std::os::raw::c_float, - pub m_flCompositorUpdateEndMs: ::std::os::raw::c_float, - pub m_flCompositorRenderStartMs: ::std::os::raw::c_float, - pub m_HmdPose: TrackedDevicePose_t, - pub m_nFidelityLevel: int32_t, -} -impl ::std::clone::Clone for Struct_Compositor_FrameTiming { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_Compositor_FrameTiming { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type Compositor_FrameTiming = Struct_Compositor_FrameTiming; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VROverlayIntersectionParams_t { - pub vSource: Struct_HmdVector3_t, - pub vDirection: Struct_HmdVector3_t, - pub eOrigin: Enum_ETrackingUniverseOrigin, -} -impl ::std::clone::Clone for Struct_VROverlayIntersectionParams_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VROverlayIntersectionParams_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VROverlayIntersectionParams_t = Struct_VROverlayIntersectionParams_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VROverlayIntersectionResults_t { - pub vPoint: Struct_HmdVector3_t, - pub vNormal: Struct_HmdVector3_t, - pub vUVs: Struct_HmdVector2_t, - pub fDistance: ::std::os::raw::c_float, -} -impl ::std::clone::Clone for Struct_VROverlayIntersectionResults_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VROverlayIntersectionResults_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VROverlayIntersectionResults_t = - Struct_VROverlayIntersectionResults_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_RenderModel_ComponentState_t { - pub mTrackingToComponentRenderModel: Struct_HmdMatrix34_t, - pub mTrackingToComponentLocal: Struct_HmdMatrix34_t, - pub uProperties: VRComponentProperties, -} -impl ::std::clone::Clone for Struct_RenderModel_ComponentState_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_RenderModel_ComponentState_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type RenderModel_ComponentState_t = Struct_RenderModel_ComponentState_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_RenderModel_Vertex_t { - pub vPosition: Struct_HmdVector3_t, - pub vNormal: Struct_HmdVector3_t, - pub rfTextureCoord: [::std::os::raw::c_float; 2usize], -} -impl ::std::clone::Clone for Struct_RenderModel_Vertex_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_RenderModel_Vertex_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type RenderModel_Vertex_t = Struct_RenderModel_Vertex_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_RenderModel_TextureMap_t { - pub unWidth: uint16_t, - pub unHeight: uint16_t, - pub rubTextureMapData: *mut uint8_t, -} -impl ::std::clone::Clone for Struct_RenderModel_TextureMap_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_RenderModel_TextureMap_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type RenderModel_TextureMap_t = Struct_RenderModel_TextureMap_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_RenderModel_t { - pub rVertexData: *mut Struct_RenderModel_Vertex_t, - pub unVertexCount: uint32_t, - pub rIndexData: *mut uint16_t, - pub unTriangleCount: uint32_t, - pub diffuseTextureId: TextureID_t, -} -impl ::std::clone::Clone for Struct_RenderModel_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_RenderModel_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type RenderModel_t = Struct_RenderModel_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_RenderModel_ControllerMode_State_t { - pub bScrollWheelVisible: u8, -} -impl ::std::clone::Clone for Struct_RenderModel_ControllerMode_State_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_RenderModel_ControllerMode_State_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type RenderModel_ControllerMode_State_t = - Struct_RenderModel_ControllerMode_State_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_NotificationBitmap_t { - pub bytes: *mut ::std::os::raw::c_void, - pub width: int32_t, - pub height: int32_t, - pub depth: int32_t, -} -impl ::std::clone::Clone for Struct_NotificationBitmap_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_NotificationBitmap_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type NotificationBitmap_t = Struct_NotificationBitmap_t; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_COpenVRContext { - pub m_pVRSystem: intptr_t, - pub m_pVRChaperone: intptr_t, - pub m_pVRChaperoneSetup: intptr_t, - pub m_pVRCompositor: intptr_t, - pub m_pVROverlay: intptr_t, - pub m_pVRRenderModels: intptr_t, - pub m_pVRExtendedDisplay: intptr_t, - pub m_pVRSettings: intptr_t, - pub m_pVRApplications: intptr_t, -} -impl ::std::clone::Clone for Struct_COpenVRContext { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_COpenVRContext { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type COpenVRContext = Struct_COpenVRContext; -#[repr(C)] -#[derive(Copy)] -pub struct Union_Unnamed1 { - pub _bindgen_data_: [u64; 9usize], -} -impl Union_Unnamed1 { - pub unsafe fn reserved(&mut self) -> *mut VREvent_Reserved_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn controller(&mut self) -> *mut VREvent_Controller_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn mouse(&mut self) -> *mut VREvent_Mouse_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn scroll(&mut self) -> *mut VREvent_Scroll_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn process(&mut self) -> *mut VREvent_Process_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn notification(&mut self) -> *mut VREvent_Notification_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn overlay(&mut self) -> *mut VREvent_Overlay_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn status(&mut self) -> *mut VREvent_Status_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn keyboard(&mut self) -> *mut VREvent_Keyboard_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn ipd(&mut self) -> *mut VREvent_Ipd_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn chaperone(&mut self) -> *mut VREvent_Chaperone_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn performanceTest(&mut self) - -> *mut VREvent_PerformanceTest_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn touchPadMove(&mut self) -> *mut VREvent_TouchPadMove_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } - pub unsafe fn seatedZeroPoseReset(&mut self) - -> *mut VREvent_SeatedZeroPoseReset_t { - let raw: *mut u8 = ::std::mem::transmute(&self._bindgen_data_); - ::std::mem::transmute(raw.offset(0)) - } -} -impl ::std::clone::Clone for Union_Unnamed1 { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Union_Unnamed1 { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -pub type VREvent_Data_t = Union_Unnamed1; -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VREvent_t { - pub eventType: uint32_t, - pub trackedDeviceIndex: TrackedDeviceIndex_t, - pub eventAgeSeconds: ::std::os::raw::c_float, - pub data: VREvent_Data_t, -} -impl ::std::clone::Clone for Struct_VREvent_t { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VREvent_t { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRSystem_FnTable { - pub GetRecommendedRenderTargetSize: ::std::option::Option, - pub GetProjectionMatrix: ::std::option::Option - Struct_HmdMatrix44_t>, - pub GetProjectionRaw: ::std::option::Option, - pub ComputeDistortion: ::std::option::Option - Struct_DistortionCoordinates_t>, - pub GetEyeToHeadTransform: ::std::option::Option - Struct_HmdMatrix34_t>, - pub GetTimeSinceLastVsync: ::std::option::Option u8>, - pub GetD3D9AdapterIndex: ::std::option::Option int32_t>, - pub GetDXGIOutputInfo: ::std::option::Option, - pub IsDisplayOnDesktop: ::std::option::Option u8>, - pub SetDisplayVisibility: ::std::option::Option u8>, - pub GetDeviceToAbsoluteTrackingPose: ::std::option::Option, - pub ResetSeatedZeroPose: ::std::option::Option, - pub GetSeatedZeroPoseToStandingAbsoluteTrackingPose: ::std::option::Option - Struct_HmdMatrix34_t>, - pub GetRawZeroPoseToStandingAbsoluteTrackingPose: ::std::option::Option - Struct_HmdMatrix34_t>, - pub GetSortedTrackedDeviceIndicesOfClass: ::std::option::Option - uint32_t>, - pub GetTrackedDeviceActivityLevel: ::std::option::Option - EDeviceActivityLevel>, - pub ApplyTransform: ::std::option::Option, - pub GetTrackedDeviceIndexForControllerRole: ::std::option::Option - TrackedDeviceIndex_t>, - pub GetControllerRoleForTrackedDeviceIndex: ::std::option::Option - ETrackedControllerRole>, - pub GetTrackedDeviceClass: ::std::option::Option - ETrackedDeviceClass>, - pub IsTrackedDeviceConnected: ::std::option::Option u8>, - pub GetBoolTrackedDeviceProperty: ::std::option::Option u8>, - pub GetFloatTrackedDeviceProperty: ::std::option::Option - ::std::os::raw::c_float>, - pub GetInt32TrackedDeviceProperty: ::std::option::Option int32_t>, - pub GetUint64TrackedDeviceProperty: ::std::option::Option - uint64_t>, - pub GetMatrix34TrackedDeviceProperty: ::std::option::Option - Struct_HmdMatrix34_t>, - pub GetStringTrackedDeviceProperty: ::std::option::Option - uint32_t>, - pub GetPropErrorNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub PollNextEvent: ::std::option::Option u8>, - pub PollNextEventWithPose: ::std::option::Option u8>, - pub GetEventTypeNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub GetHiddenAreaMesh: ::std::option::Option - Struct_HiddenAreaMesh_t>, - pub GetControllerState: ::std::option::Option u8>, - pub GetControllerStateWithPose: ::std::option::Option u8>, - pub TriggerHapticPulse: ::std::option::Option, - pub GetButtonIdNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub GetControllerAxisTypeNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub CaptureInputFocus: ::std::option::Option u8>, - pub ReleaseInputFocus: ::std::option::Option, - pub IsInputFocusCapturedByAnotherProcess: ::std::option::Option - u8>, - pub DriverDebugRequest: ::std::option::Option uint32_t>, - pub PerformFirmwareUpdate: ::std::option::Option EVRFirmwareError>, - pub AcknowledgeQuit_Exiting: ::std::option::Option, - pub AcknowledgeQuit_UserPrompt: ::std::option::Option, -} -impl ::std::clone::Clone for Struct_VR_IVRSystem_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRSystem_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRExtendedDisplay_FnTable { - pub GetWindowBounds: ::std::option::Option, - pub GetEyeOutputViewport: ::std::option::Option, - pub GetDXGIOutputInfo: ::std::option::Option, -} -impl ::std::clone::Clone for Struct_VR_IVRExtendedDisplay_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRExtendedDisplay_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRApplications_FnTable { - pub AddApplicationManifest: ::std::option::Option - EVRApplicationError>, - pub RemoveApplicationManifest: ::std::option::Option - EVRApplicationError>, - pub IsApplicationInstalled: ::std::option::Option u8>, - pub GetApplicationCount: ::std::option::Option uint32_t>, - pub GetApplicationKeyByIndex: ::std::option::Option - EVRApplicationError>, - pub GetApplicationKeyByProcessId: ::std::option::Option - EVRApplicationError>, - pub LaunchApplication: ::std::option::Option EVRApplicationError>, - pub LaunchTemplateApplication: ::std::option::Option - EVRApplicationError>, - pub LaunchDashboardOverlay: ::std::option::Option - EVRApplicationError>, - pub CancelApplicationLaunch: ::std::option::Option u8>, - pub IdentifyApplication: ::std::option::Option - EVRApplicationError>, - pub GetApplicationProcessId: ::std::option::Option uint32_t>, - pub GetApplicationsErrorNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub GetApplicationPropertyString: ::std::option::Option uint32_t>, - pub GetApplicationPropertyBool: ::std::option::Option u8>, - pub GetApplicationPropertyUint64: ::std::option::Option uint64_t>, - pub SetApplicationAutoLaunch: ::std::option::Option - EVRApplicationError>, - pub GetApplicationAutoLaunch: ::std::option::Option u8>, - pub GetStartingApplication: ::std::option::Option - EVRApplicationError>, - pub GetTransitionState: ::std::option::Option - EVRApplicationTransitionState>, - pub PerformApplicationPrelaunchCheck: ::std::option::Option - EVRApplicationError>, - pub GetApplicationsTransitionStateNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub IsQuitUserPromptRequested: ::std::option::Option u8>, - pub LaunchInternalProcess: ::std::option::Option - EVRApplicationError>, -} -impl ::std::clone::Clone for Struct_VR_IVRApplications_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRApplications_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRChaperone_FnTable { - pub GetCalibrationState: ::std::option::Option - ChaperoneCalibrationState>, - pub GetPlayAreaSize: ::std::option::Option u8>, - pub GetPlayAreaRect: ::std::option::Option u8>, - pub ReloadInfo: ::std::option::Option, - pub SetSceneColor: ::std::option::Option, - pub GetBoundsColor: ::std::option::Option, - pub AreBoundsVisible: ::std::option::Option u8>, - pub ForceBoundsVisible: ::std::option::Option, -} -impl ::std::clone::Clone for Struct_VR_IVRChaperone_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRChaperone_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRChaperoneSetup_FnTable { - pub CommitWorkingCopy: ::std::option::Option u8>, - pub RevertWorkingCopy: ::std::option::Option, - pub GetWorkingPlayAreaSize: ::std::option::Option u8>, - pub GetWorkingPlayAreaRect: ::std::option::Option u8>, - pub GetWorkingCollisionBoundsInfo: ::std::option::Option u8>, - pub GetLiveCollisionBoundsInfo: ::std::option::Option u8>, - pub GetWorkingSeatedZeroPoseToRawTrackingPose: ::std::option::Option - u8>, - pub GetWorkingStandingZeroPoseToRawTrackingPose: ::std::option::Option - u8>, - pub SetWorkingPlayAreaSize: ::std::option::Option, - pub SetWorkingCollisionBoundsInfo: ::std::option::Option, - pub SetWorkingSeatedZeroPoseToRawTrackingPose: ::std::option::Option, - pub SetWorkingStandingZeroPoseToRawTrackingPose: ::std::option::Option, - pub ReloadFromDisk: ::std::option::Option, - pub GetLiveSeatedZeroPoseToRawTrackingPose: ::std::option::Option - u8>, - pub SetWorkingCollisionBoundsTagsInfo: ::std::option::Option, - pub GetLiveCollisionBoundsTagsInfo: ::std::option::Option u8>, - pub SetWorkingPhysicalBoundsInfo: ::std::option::Option u8>, - pub GetLivePhysicalBoundsInfo: ::std::option::Option u8>, - pub ExportLiveToBuffer: ::std::option::Option u8>, - pub ImportFromBufferToWorking: ::std::option::Option u8>, -} -impl ::std::clone::Clone for Struct_VR_IVRChaperoneSetup_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRChaperoneSetup_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRCompositor_FnTable { - pub SetTrackingSpace: ::std::option::Option, - pub GetTrackingSpace: ::std::option::Option - ETrackingUniverseOrigin>, - pub WaitGetPoses: ::std::option::Option EVRCompositorError>, - pub GetLastPoses: ::std::option::Option EVRCompositorError>, - pub GetLastPoseForTrackedDeviceIndex: ::std::option::Option - EVRCompositorError>, - pub Submit: ::std::option::Option EVRCompositorError>, - pub ClearLastSubmittedFrame: ::std::option::Option, - pub PostPresentHandoff: ::std::option::Option, - pub GetFrameTiming: ::std::option::Option u8>, - pub GetFrameTimeRemaining: ::std::option::Option - ::std::os::raw::c_float>, - pub FadeToColor: ::std::option::Option, - pub FadeGrid: ::std::option::Option, - pub SetSkyboxOverride: ::std::option::Option EVRCompositorError>, - pub ClearSkyboxOverride: ::std::option::Option, - pub CompositorBringToFront: ::std::option::Option, - pub CompositorGoToBack: ::std::option::Option, - pub CompositorQuit: ::std::option::Option, - pub IsFullscreen: ::std::option::Option u8>, - pub GetCurrentSceneFocusProcess: ::std::option::Option uint32_t>, - pub GetLastFrameRenderer: ::std::option::Option uint32_t>, - pub CanRenderScene: ::std::option::Option u8>, - pub ShowMirrorWindow: ::std::option::Option, - pub HideMirrorWindow: ::std::option::Option, - pub IsMirrorWindowVisible: ::std::option::Option u8>, - pub CompositorDumpImages: ::std::option::Option, - pub ShouldAppRenderWithLowResources: ::std::option::Option u8>, - pub ForceInterleavedReprojectionOn: ::std::option::Option, -} -impl ::std::clone::Clone for Struct_VR_IVRCompositor_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRCompositor_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVROverlay_FnTable { - pub FindOverlay: ::std::option::Option EVROverlayError>, - pub CreateOverlay: ::std::option::Option EVROverlayError>, - pub DestroyOverlay: ::std::option::Option EVROverlayError>, - pub SetHighQualityOverlay: ::std::option::Option EVROverlayError>, - pub GetHighQualityOverlay: ::std::option::Option - VROverlayHandle_t>, - pub GetOverlayKey: ::std::option::Option uint32_t>, - pub GetOverlayName: ::std::option::Option uint32_t>, - pub GetOverlayImageData: ::std::option::Option EVROverlayError>, - pub GetOverlayErrorNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub SetOverlayRenderingPid: ::std::option::Option EVROverlayError>, - pub GetOverlayRenderingPid: ::std::option::Option uint32_t>, - pub SetOverlayFlag: ::std::option::Option EVROverlayError>, - pub GetOverlayFlag: ::std::option::Option EVROverlayError>, - pub SetOverlayColor: ::std::option::Option EVROverlayError>, - pub GetOverlayColor: ::std::option::Option EVROverlayError>, - pub SetOverlayAlpha: ::std::option::Option EVROverlayError>, - pub GetOverlayAlpha: ::std::option::Option EVROverlayError>, - pub SetOverlayWidthInMeters: ::std::option::Option - EVROverlayError>, - pub GetOverlayWidthInMeters: ::std::option::Option - EVROverlayError>, - pub SetOverlayAutoCurveDistanceRangeInMeters: ::std::option::Option - EVROverlayError>, - pub GetOverlayAutoCurveDistanceRangeInMeters: ::std::option::Option - EVROverlayError>, - pub SetOverlayTextureColorSpace: ::std::option::Option - EVROverlayError>, - pub GetOverlayTextureColorSpace: ::std::option::Option - EVROverlayError>, - pub SetOverlayTextureBounds: ::std::option::Option - EVROverlayError>, - pub GetOverlayTextureBounds: ::std::option::Option - EVROverlayError>, - pub GetOverlayTransformType: ::std::option::Option - EVROverlayError>, - pub SetOverlayTransformAbsolute: ::std::option::Option - EVROverlayError>, - pub GetOverlayTransformAbsolute: ::std::option::Option - EVROverlayError>, - pub SetOverlayTransformTrackedDeviceRelative: ::std::option::Option - EVROverlayError>, - pub GetOverlayTransformTrackedDeviceRelative: ::std::option::Option - EVROverlayError>, - pub SetOverlayTransformTrackedDeviceComponent: ::std::option::Option - EVROverlayError>, - pub GetOverlayTransformTrackedDeviceComponent: ::std::option::Option - EVROverlayError>, - pub ShowOverlay: ::std::option::Option EVROverlayError>, - pub HideOverlay: ::std::option::Option EVROverlayError>, - pub IsOverlayVisible: ::std::option::Option u8>, - pub GetTransformForOverlayCoordinates: ::std::option::Option - EVROverlayError>, - pub PollNextOverlayEvent: ::std::option::Option u8>, - pub GetOverlayInputMethod: ::std::option::Option EVROverlayError>, - pub SetOverlayInputMethod: ::std::option::Option EVROverlayError>, - pub GetOverlayMouseScale: ::std::option::Option EVROverlayError>, - pub SetOverlayMouseScale: ::std::option::Option EVROverlayError>, - pub ComputeOverlayIntersection: ::std::option::Option u8>, - pub HandleControllerOverlayInteractionAsMouse: ::std::option::Option - u8>, - pub IsHoverTargetOverlay: ::std::option::Option u8>, - pub GetGamepadFocusOverlay: ::std::option::Option - VROverlayHandle_t>, - pub SetGamepadFocusOverlay: ::std::option::Option EVROverlayError>, - pub SetOverlayNeighbor: ::std::option::Option EVROverlayError>, - pub MoveGamepadFocusToNeighbor: ::std::option::Option - EVROverlayError>, - pub SetOverlayTexture: ::std::option::Option EVROverlayError>, - pub ClearOverlayTexture: ::std::option::Option EVROverlayError>, - pub SetOverlayRaw: ::std::option::Option EVROverlayError>, - pub SetOverlayFromFile: ::std::option::Option EVROverlayError>, - pub GetOverlayTexture: ::std::option::Option EVROverlayError>, - pub ReleaseNativeOverlayHandle: ::std::option::Option - EVROverlayError>, - pub CreateDashboardOverlay: ::std::option::Option EVROverlayError>, - pub IsDashboardVisible: ::std::option::Option u8>, - pub IsActiveDashboardOverlay: ::std::option::Option u8>, - pub SetDashboardOverlaySceneProcess: ::std::option::Option - EVROverlayError>, - pub GetDashboardOverlaySceneProcess: ::std::option::Option - EVROverlayError>, - pub ShowDashboard: ::std::option::Option, - pub GetPrimaryDashboardDevice: ::std::option::Option - TrackedDeviceIndex_t>, - pub ShowKeyboard: ::std::option::Option EVROverlayError>, - pub ShowKeyboardForOverlay: ::std::option::Option EVROverlayError>, - pub GetKeyboardText: ::std::option::Option uint32_t>, - pub HideKeyboard: ::std::option::Option, - pub SetKeyboardTransformAbsolute: ::std::option::Option, - pub SetKeyboardPositionForOverlay: ::std::option::Option, -} -impl ::std::clone::Clone for Struct_VR_IVROverlay_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVROverlay_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRRenderModels_FnTable { - pub LoadRenderModel_Async: ::std::option::Option - EVRRenderModelError>, - pub FreeRenderModel: ::std::option::Option, - pub LoadTexture_Async: ::std::option::Option EVRRenderModelError>, - pub FreeTexture: ::std::option::Option, - pub LoadTextureD3D11_Async: ::std::option::Option - EVRRenderModelError>, - pub LoadIntoTextureD3D11_Async: ::std::option::Option - EVRRenderModelError>, - pub FreeTextureD3D11: ::std::option::Option, - pub GetRenderModelName: ::std::option::Option uint32_t>, - pub GetRenderModelCount: ::std::option::Option uint32_t>, - pub GetComponentCount: ::std::option::Option uint32_t>, - pub GetComponentName: ::std::option::Option uint32_t>, - pub GetComponentButtonMask: ::std::option::Option uint64_t>, - pub GetComponentRenderModelName: ::std::option::Option uint32_t>, - pub GetComponentState: ::std::option::Option u8>, - pub RenderModelHasComponent: ::std::option::Option u8>, -} -impl ::std::clone::Clone for Struct_VR_IVRRenderModels_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRRenderModels_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRNotifications_FnTable { - pub CreateNotification: ::std::option::Option - EVRNotificationError>, - pub RemoveNotification: ::std::option::Option - EVRNotificationError>, -} -impl ::std::clone::Clone for Struct_VR_IVRNotifications_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRNotifications_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -#[repr(C)] -#[derive(Copy)] -pub struct Struct_VR_IVRSettings_FnTable { - pub GetSettingsErrorNameFromEnum: ::std::option::Option - *mut ::std::os::raw::c_char>, - pub Sync: ::std::option::Option u8>, - pub GetBool: ::std::option::Option u8>, - pub SetBool: ::std::option::Option, - pub GetInt32: ::std::option::Option int32_t>, - pub SetInt32: ::std::option::Option, - pub GetFloat: ::std::option::Option ::std::os::raw::c_float>, - pub SetFloat: ::std::option::Option, - pub GetString: ::std::option::Option, - pub SetString: ::std::option::Option, - pub RemoveSection: ::std::option::Option, - pub RemoveKeyInSection: ::std::option::Option, -} -impl ::std::clone::Clone for Struct_VR_IVRSettings_FnTable { - fn clone(&self) -> Self { *self } -} -impl ::std::default::Default for Struct_VR_IVRSettings_FnTable { - fn default() -> Self { unsafe { ::std::mem::zeroed() } } -} -extern "C" { - pub fn VR_InitInternal(peError: *mut EVRInitError, - eType: EVRApplicationType) -> intptr_t; - pub fn VR_ShutdownInternal(); - pub fn VR_IsHmdPresent() -> u8; - pub fn VR_GetGenericInterface(pchInterfaceVersion: - *const ::std::os::raw::c_char, - peError: *mut EVRInitError) -> intptr_t; - pub fn VR_IsRuntimeInstalled() -> u8; - pub fn VR_GetVRInitErrorAsSymbol(error: EVRInitError) - -> *const ::std::os::raw::c_char; - pub fn VR_GetVRInitErrorAsEnglishDescription(error: EVRInitError) - -> *const ::std::os::raw::c_char; -}