GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
openvr_mingw.h
Go to the documentation of this file.
1#pragma once
2
3// openvr.h
4//========= Copyright Valve Corporation ============//
5// Dynamically generated file. Do not modify this file directly.
6
7#ifndef _OPENVR_API
8#define _OPENVR_API
9
10#include <stdint.h>
11
12
13
14// vrtypes.h
15#ifndef _INCLUDE_VRTYPES_H
16#define _INCLUDE_VRTYPES_H
17
18// Forward declarations to avoid requiring vulkan.h
19struct VkDevice_T;
20struct VkPhysicalDevice_T;
21struct VkInstance_T;
22struct VkQueue_T;
23
24// Forward declarations to avoid requiring d3d12.h
25struct ID3D12Resource;
26struct ID3D12CommandQueue;
27
28namespace vr
29{
30#pragma pack( push, 8 )
31
33typedef int32_t glInt_t;
34typedef uint32_t glUInt_t;
35
36// right-handed system
37// +y is up
38// +x is to the right
39// -z is forward
40// Distance unit is meters
42{
43 float m[3][4];
44};
45
47{
48 float m[4][4];
49};
50
52{
53 float v[3];
54};
55
57{
58 float v[4];
59};
60
62{
63 double v[3];
64};
65
67{
68 float v[2];
69};
70
72{
73 double w, x, y, z;
74};
75
77{
78 float r, g, b, a;
79};
80
82{
84};
85
91
96{
97 float rfRed[2];
98 float rfGreen[2];
99 float rfBlue[2];
100};
101
103{
106};
107
109{
110 TextureType_DirectX = 0, // Handle is an ID3D11Texture
111 TextureType_OpenGL = 1, // Handle is an OpenGL texture name or an OpenGL render buffer name, depending on submit flags
112 TextureType_Vulkan = 2, // Handle is a pointer to a VRVulkanTextureData_t structure
113 TextureType_IOSurface = 3, // Handle is a macOS cross-process-sharable IOSurfaceRef
114 TextureType_DirectX12 = 4, // Handle is a pointer to a D3D12TextureData_t structure
115};
116
118{
119 ColorSpace_Auto = 0, // Assumes 'gamma' for 8-bit per component formats, otherwise 'linear'. This mirrors the DXGI formats which have _SRGB variants.
120 ColorSpace_Gamma = 1, // Texture data can be displayed directly on the display without any conversion (a.k.a. display native format).
121 ColorSpace_Linear = 2, // Same as gamma but has been converted to a linear representation using DXGI's sRGB conversion algorithm.
122};
123
125{
126 void* handle; // See ETextureType definition above
129};
130
131// Handle to a shared texture (HANDLE on Windows obtained using OpenSharedResource).
132typedef uint64_t SharedTextureHandle_t;
133#define INVALID_SHARED_TEXTURE_HANDLE ((vr::SharedTextureHandle_t)0)
134
145
146typedef uint32_t DriverId_t;
147static const uint32_t k_nDriverNone = 0xFFFFFFFF;
148
149static const uint32_t k_unMaxDriverDebugResponseSize = 32768;
150
152typedef uint32_t TrackedDeviceIndex_t;
153static const uint32_t k_unTrackedDeviceIndex_Hmd = 0;
154static const uint32_t k_unMaxTrackedDeviceCount = 64;
155static const uint32_t k_unTrackedDeviceIndexOther = 0xFFFFFFFE;
156static const uint32_t k_unTrackedDeviceIndexInvalid = 0xFFFFFFFF;
157
160{
161 TrackedDeviceClass_Invalid = 0, // the ID was not valid.
162 TrackedDeviceClass_HMD = 1, // Head-Mounted Displays
163 TrackedDeviceClass_Controller = 2, // Tracked controllers
164 TrackedDeviceClass_GenericTracker = 3, // Generic trackers, similar to controllers
165 TrackedDeviceClass_TrackingReference = 4, // Camera and base stations that serve as tracking reference points
166 TrackedDeviceClass_DisplayRedirect = 5, // Accessories that aren't necessarily tracked themselves, but may redirect video output from other tracked devices
167};
168
169
172{
173 TrackedControllerRole_Invalid = 0, // Invalid value for controller type
174 TrackedControllerRole_LeftHand = 1, // Tracked device associated with the left hand
175 TrackedControllerRole_RightHand = 2, // Tracked device associated with the right hand
176};
177
178
181{
183 HmdVector3_t vVelocity; // velocity in tracker space in m/s
184 HmdVector3_t vAngularVelocity; // angular velocity in radians/s (?)
187
188 // This indicates that there is a device connected for this spot in the pose array.
189 // It could go from true to false if the user unplugs the device.
191};
192
196{
197 TrackingUniverseSeated = 0, // Poses are provided relative to the seated zero pose
198 TrackingUniverseStanding = 1, // Poses are provided relative to the safe bounds configured by the user
199 TrackingUniverseRawAndUncalibrated = 2, // Poses are provided in the coordinate system defined by the driver. It has Y up and is unified for devices of the same driver. You usually don't want this one.
200};
201
202// Refers to a single container of properties
204typedef uint32_t PropertyTypeTag_t;
205
206static const PropertyContainerHandle_t k_ulInvalidPropertyContainer = 0;
207static const PropertyTypeTag_t k_unInvalidPropertyTag = 0;
208
209// Use these tags to set/get common types as struct properties
210static const PropertyTypeTag_t k_unFloatPropertyTag = 1;
211static const PropertyTypeTag_t k_unInt32PropertyTag = 2;
212static const PropertyTypeTag_t k_unUint64PropertyTag = 3;
213static const PropertyTypeTag_t k_unBoolPropertyTag = 4;
214static const PropertyTypeTag_t k_unStringPropertyTag = 5;
215
216static const PropertyTypeTag_t k_unHmdMatrix34PropertyTag = 20;
217static const PropertyTypeTag_t k_unHmdMatrix44PropertyTag = 21;
218static const PropertyTypeTag_t k_unHmdVector3PropertyTag = 22;
219static const PropertyTypeTag_t k_unHmdVector4PropertyTag = 23;
220
221static const PropertyTypeTag_t k_unHiddenAreaPropertyTag = 30;
222static const PropertyTypeTag_t k_unPathHandleInfoTag = 31;
223static const PropertyTypeTag_t k_unActionPropertyTag = 32;
224static const PropertyTypeTag_t k_unInputValuePropertyTag = 33;
225static const PropertyTypeTag_t k_unWildcardPropertyTag = 34;
226static const PropertyTypeTag_t k_unHapticVibrationPropertyTag = 35;
227
228static const PropertyTypeTag_t k_unOpenVRInternalReserved_Start = 1000;
229static const PropertyTypeTag_t k_unOpenVRInternalReserved_End = 10000;
230
231
235{
237
238 // general properties that apply to all device classes
251 Prop_DeviceBatteryPercentage_Float = 1012, // 0 is empty, 1 is full
276 Prop_InputProfilePath_String = 1037, // input profile to use for this device in the input system. Will default to tracking system name if this isn't provided
277
278 // Properties that are unique to TrackedDeviceClass_HMD
326 Prop_ExpectedTrackingReferenceCount_Int32 = 2049, // expected number of sensors or basestations to reserve UI space for
327 Prop_ExpectedControllerCount_Int32 = 2050, // expected number of tracked controllers to reserve UI space for
328 Prop_NamedIconPathControllerLeftDeviceOff_String = 2051, // placeholder icon for "left" controller if not yet detected/loaded
329 Prop_NamedIconPathControllerRightDeviceOff_String = 2052, // placeholder icon for "right" controller if not yet detected/loaded
330 Prop_NamedIconPathTrackingReferenceDeviceOff_String = 2053, // placeholder icon for sensor/base if not yet detected/loaded
336
337 // Properties that are unique to TrackedDeviceClass_Controller
340 Prop_Axis0Type_Int32 = 3002, // Return value is of type EVRControllerAxisType
341 Prop_Axis1Type_Int32 = 3003, // Return value is of type EVRControllerAxisType
342 Prop_Axis2Type_Int32 = 3004, // Return value is of type EVRControllerAxisType
343 Prop_Axis3Type_Int32 = 3005, // Return value is of type EVRControllerAxisType
344 Prop_Axis4Type_Int32 = 3006, // Return value is of type EVRControllerAxisType
345 Prop_ControllerRoleHint_Int32 = 3007, // Return value is of type ETrackedControllerRole
346
347 // Properties that are unique to TrackedDeviceClass_TrackingReference
355
356 // Properties that are used for user interface like icons names
357 Prop_IconPathName_String = 5000, // DEPRECATED. Value not referenced. Now expected to be part of icon path properties.
358 Prop_NamedIconPathDeviceOff_String = 5001, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
359 Prop_NamedIconPathDeviceSearching_String = 5002, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
360 Prop_NamedIconPathDeviceSearchingAlert_String = 5003, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
361 Prop_NamedIconPathDeviceReady_String = 5004, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
362 Prop_NamedIconPathDeviceReadyAlert_String = 5005, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
363 Prop_NamedIconPathDeviceNotReady_String = 5006, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
364 Prop_NamedIconPathDeviceStandby_String = 5007, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
365 Prop_NamedIconPathDeviceAlertLow_String = 5008, // {driver}/icons/icon_filename - PNG for static icon, or GIF for animation, 50x32 for headsets and 32x32 for others
366
367 // Properties that are used by helpers, but are opaque to applications
371
372 // Properties that are unique to drivers
380
381 // Properties that are set internally based on other information provided by drivers
384
385 // Vendors are free to expose private debug data in this reserved region
388
390};
391
393static const uint32_t k_unMaxPropertyStringSize = 32 * 1024;
394
412
416{
417 float uMin, vMin;
418 float uMax, vMax;
419};
420
423{
424 HmdMatrix34_t mDeviceToAbsoluteTracking; // Actual pose used to render scene textures.
425};
426
428{
429 void* handle; // See ETextureType definition above
432};
433
438
443
446{
447 // Simple render path. App submits rendered left and right eye images with no lens distortion correction applied.
449
450 // App submits final left and right eye images with lens distortion already applied (lens distortion makes the images appear
451 // barrel distorted with chromatic aberration correction applied). The app would have used the data returned by
452 // vr::IVRSystem::ComputeDistortion() to apply the correct distortion to the rendered images before calling Submit().
454
455 // If the texture pointer passed in is actually a renderbuffer (e.g. for MSAA in OpenGL) then set this flag.
457
458 // Do not use
460
461 // Set to indicate that pTexture is a pointer to a VRTextureWithPose_t.
462 // This flag can be combined with Submit_TextureWithDepth to pass a VRTextureWithPoseAndDepth_t.
464
465 // Set to indicate that pTexture is a pointer to a VRTextureWithDepth_t.
466 // This flag can be combined with Submit_TextureWithPose to pass a VRTextureWithPoseAndDepth_t.
468};
469
473{
474 uint64_t m_nImage; // VkImage
475 VkDevice_T *m_pDevice;
476 VkPhysicalDevice_T *m_pPhysicalDevice;
477 VkInstance_T *m_pInstance;
478 VkQueue_T *m_pQueue;
481};
482
486{
487 ID3D12Resource *m_pResource;
488 ID3D12CommandQueue *m_pCommandQueue;
489 uint32_t m_nNodeMask;
490};
491
505
508{
510
525
526 VREvent_ButtonPress = 200, // data is controller
527 VREvent_ButtonUnpress = 201, // data is controller
528 VREvent_ButtonTouch = 202, // data is controller
529 VREvent_ButtonUntouch = 203, // data is controller
530
531 VREvent_DualAnalog_Press = 250, // data is dualAnalog
532 VREvent_DualAnalog_Unpress = 251, // data is dualAnalog
533 VREvent_DualAnalog_Touch = 252, // data is dualAnalog
534 VREvent_DualAnalog_Untouch = 253, // data is dualAnalog
535 VREvent_DualAnalog_Move = 254, // data is dualAnalog
536 VREvent_DualAnalog_ModeSwitch1 = 255, // data is dualAnalog
537 VREvent_DualAnalog_ModeSwitch2 = 256, // data is dualAnalog
538 VREvent_DualAnalog_Cancel = 257, // data is dualAnalog
539
540 VREvent_MouseMove = 300, // data is mouse
541 VREvent_MouseButtonDown = 301, // data is mouse
542 VREvent_MouseButtonUp = 302, // data is mouse
543 VREvent_FocusEnter = 303, // data is overlay
544 VREvent_FocusLeave = 304, // data is overlay
545 VREvent_Scroll = 305, // data is mouse
546 VREvent_TouchPadMove = 306, // data is mouse
547 VREvent_OverlayFocusChanged = 307, // data is overlay, global event
548
549 VREvent_InputFocusCaptured = 400, // data is process DEPRECATED
550 VREvent_InputFocusReleased = 401, // data is process DEPRECATED
551 VREvent_SceneFocusLost = 402, // data is process
552 VREvent_SceneFocusGained = 403, // data is process
553 VREvent_SceneApplicationChanged = 404, // data is process - The App actually drawing the scene changed (usually to or from the compositor)
554 VREvent_SceneFocusChanged = 405, // data is process - New app got access to draw the scene
555 VREvent_InputFocusChanged = 406, // data is process
557
558 VREvent_HideRenderModels = 410, // Sent to the scene application to request hiding render models temporarily
559 VREvent_ShowRenderModels = 411, // Sent to the scene application to request restoring render model visibility
560
563
568 VREvent_DashboardThumbSelected = 504, // Sent to the overlay manager - data is overlay
569 VREvent_DashboardRequested = 505, // Sent to the overlay manager - data is overlay
570 VREvent_ResetDashboard = 506, // Send to the overlay manager
571 VREvent_RenderToast = 507, // Send to the dashboard to render a toast - data is the notification ID
572 VREvent_ImageLoaded = 508, // Sent to overlays when a SetOverlayRaw or SetOverlayFromFile call finishes loading
573 VREvent_ShowKeyboard = 509, // Sent to keyboard renderer in the dashboard to invoke it
574 VREvent_HideKeyboard = 510, // Sent to keyboard renderer in the dashboard to hide it
575 VREvent_OverlayGamepadFocusGained = 511, // Sent to an overlay when IVROverlay::SetFocusOverlay is called on it
576 VREvent_OverlayGamepadFocusLost = 512, // Send to an overlay when it previously had focus and IVROverlay::SetFocusOverlay is called on something else
580 VREvent_ScreenshotTriggered = 516, // Screenshot button combo was pressed, Dashboard should request a screenshot
581 VREvent_ImageFailed = 517, // Sent to overlays when a SetOverlayRaw or SetOverlayfromFail fails to load
583
584 // Screenshot API
585 VREvent_RequestScreenshot = 520, // Sent by vrclient application to compositor to take a screenshot
586 VREvent_ScreenshotTaken = 521, // Sent by compositor to the application that the screenshot has been taken
587 VREvent_ScreenshotFailed = 522, // Sent by compositor to the application that the screenshot failed to be taken
588 VREvent_SubmitScreenshotToDashboard = 523, // Sent by compositor to the dashboard that a completed screenshot was submitted
589 VREvent_ScreenshotProgressToDashboard = 524, // Sent by compositor to the dashboard that a completed screenshot was submitted
590
592
597
598 VREvent_Quit = 700, // data is process
599 VREvent_ProcessQuit = 701, // data is process
600 VREvent_QuitAborted_UserPrompt = 702, // data is process
601 VREvent_QuitAcknowledged = 703, // data is process
602 VREvent_DriverRequestedQuit = 704, // The driver has requested that SteamVR shut down
603
609
611
628
630
632
634
637
640 VREvent_KeyboardDone = 1202, // Sent when DONE button clicked on keyboard
641
650
655
661
665
668
669 VREvent_Input_HapticVibration = 1700, // data is hapticVibration
670
671 // Vendors are free to expose private events in this reserved region
674};
675
676
678// UserInteraction_Timeout means the device is in the process of timing out.
679// InUse = ( k_EDeviceActivityLevel_UserInteraction || k_EDeviceActivityLevel_UserInteraction_Timeout )
680// VREvent_TrackedDeviceUserInteractionStarted fires when the devices transitions from Standby -> UserInteraction or Idle -> UserInteraction.
681// VREvent_TrackedDeviceUserInteractionEnded fires when the devices transitions from UserInteraction_Timeout -> Idle
683{
685 k_EDeviceActivityLevel_Idle = 0, // No activity for the last 10 seconds
686 k_EDeviceActivityLevel_UserInteraction = 1, // Activity (movement or prox sensor) is happening now
687 k_EDeviceActivityLevel_UserInteraction_Timeout = 2, // No activity for the last 0.5 seconds
688 k_EDeviceActivityLevel_Standby = 3, // Idle for at least 5 seconds (configurable in Settings -> Power Management)
689};
690
691
720
721inline uint64_t ButtonMaskFromId( EVRButtonId id ) { return 1ull << id; }
722
725{
726 uint32_t button; // EVRButtonId enum
727};
728
729
737
738
741{
742 float x, y; // co-ords are in GL space, bottom left of the texture is 0,0
743 uint32_t button; // EVRMouseButton enum
744};
745
748{
749 float xdelta, ydelta; // movement in fraction of the pad traversed since last delta, 1.0 for a full swipe
750 uint32_t repeatCount;
751};
752
758{
759 // true if the users finger is detected on the touch pad
761
762 // How long the finger has been down in seconds
764
765 // These values indicate the starting finger position (so you can do some basic swipe stuff)
768
769 // This is the raw sampled coordinate without deadzoning
772};
773
776{
777 uint64_t ulUserValue;
779};
780
783{
784 uint32_t pid;
785 uint32_t oldPid;
787};
788
789
792{
794};
795
796
799{
800 uint32_t statusState; // EVRState enum
801};
802
805{
806 char cNewInput[8]; // Up to 11 bytes of new input
807 uint64_t uUserValue; // Possible flags about the new input
808};
809
811{
813};
814
820
823{
824 uint64_t reserved0;
825 uint64_t reserved1;
826};
827
832
837
839{
840 uint32_t handle;
841 uint32_t type;
842};
843
848
850{
851 uint32_t pid;
852 uint32_t unArgsHandle;
853};
854
860
862{
863 uint32_t unVRMessageOverlayResponse; // vr::VRMessageOverlayResponse enum
864};
865
871
877
879{
880 float x, y; // coordinates are -1..1 analog values
881 float transformedX, transformedY; // transformed by the center and radius numbers provided by the overlay
883};
884
886{
887 uint64_t containerHandle; // property container handle of the device with the haptic component
888 uint64_t componentHandle; // Which haptic component needs to vibrate
892};
893
894
921
922
923#if defined(__linux__) || defined(__APPLE__)
924// This structure was originally defined mis-packed on Linux, preserved for
925// compatibility.
926#pragma pack( push, 4 )
927#endif
928
931{
932 uint32_t eventType; // EVREventType enum
935 // event data must be the end of the struct as its size is variable
937};
938
939#if defined(__linux__) || defined(__APPLE__)
940#pragma pack( pop )
941#endif
942
956
957
969
970
979
980
991
992
995{
996 float x; // Ranges from -1.0 to 1.0 for joysticks and track pads. Ranges from 0.0 to 1.0 for triggers were 0 is fully released.
997 float y; // Ranges from -1.0 to 1.0 for joysticks and track pads. Is always 0.0 for triggers.
998};
999
1000
1002static const uint32_t k_unControllerStateAxisCount = 5;
1003
1004
1005#if defined(__linux__) || defined(__APPLE__)
1006// This structure was originally defined mis-packed on Linux, preserved for
1007// compatibility.
1008#pragma pack( push, 4 )
1009#endif
1010
1013{
1014 // If packet num matches that on your prior call, then the controller state hasn't been changed since
1015 // your last call and there is no need to process it
1016 uint32_t unPacketNum;
1017
1018 // bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask
1021
1022 // Axis data for the controller's analog inputs
1023 VRControllerAxis_t rAxis[ k_unControllerStateAxisCount ];
1024};
1025#if defined(__linux__) || defined(__APPLE__)
1026#pragma pack( pop )
1027#endif
1028
1029
1031
1032
1039
1040
1041
1053
1056{
1057 uint32_t size; // sizeof(Compositor_OverlaySettings)
1063};
1064
1066typedef uint64_t VROverlayHandle_t;
1067
1068static const VROverlayHandle_t k_ulOverlayHandleInvalid = 0;
1069
1099
1103{
1104 VRApplication_Other = 0, // Some other kind of application that isn't covered by the other entries
1105 VRApplication_Scene = 1, // Application will submit 3D frames
1106 VRApplication_Overlay = 2, // Application only interacts with overlays
1107 VRApplication_Background = 3, // Application should not start SteamVR if it's not already running, and should not
1108 // keep it running if everything else quits.
1109 VRApplication_Utility = 4, // Init should not try to load any drivers. The application needs access to utility
1110 // interfaces (like IVRSettings and IVRApplications) but not hardware.
1111 VRApplication_VRMonitor = 5, // Reserved for vrmonitor
1112 VRApplication_SteamWatchdog = 6,// Reserved for Steam
1113 VRApplication_Bootstrapper = 7, // Start up SteamVR
1114
1116};
1117
1118
1126
1127
1137
1138
1140
1141// Please add adequate error description to https://developer.valvesoftware.com/w/index.php?title=Category:SteamVRHelp
1143{
1146
1162 VRInitError_Init_Retry = 115, // Used internally to cause retries to vrserver
1163 VRInitError_Init_InitCanceledByUser = 116, // The calling application should silently exit. The user canceled app startup
1188
1199 // VRInitError_Driver_HmdDisplayNotFoundAfterFix = 210, // not needed: here for historic reasons
1202
1212
1219
1222
1236
1238};
1239
1249
1255
1276
1278{
1279 VRTrackedCameraFrameType_Distorted = 0, // This is the camera video frame size in pixels, still distorted.
1280 VRTrackedCameraFrameType_Undistorted, // In pixels, an undistorted inscribed rectangle region without invalid regions. This size is subject to changes shortly.
1281 VRTrackedCameraFrameType_MaximumUndistorted, // In pixels, maximum undistorted with invalid regions. Non zero alpha component identifies valid regions.
1283};
1284
1285typedef uint64_t TrackedCameraHandle_t;
1286#define INVALID_TRACKED_CAMERA_HANDLE ((vr::TrackedCameraHandle_t)0)
1287
1300
1301// Screenshot types
1302typedef uint32_t ScreenshotHandle_t;
1303
1304static const uint32_t k_unScreenshotHandleInvalid = 0;
1305
1308{
1309 uint32_t m_nSize; // Set to sizeof( DriverDirectMode_FrameTiming )
1310 uint32_t m_nNumFramePresents; // number of times frame was presented
1311 uint32_t m_nNumMisPresented; // number of times frame was presented on a vsync other than it was originally predicted to
1312 uint32_t m_nNumDroppedFrames; // number of additional times previous frame was scanned out (i.e. compositor missed vsync)
1314};
1315
1316#pragma pack( pop )
1317
1318// figure out how to import from the VR API dll
1319#if defined(_WIN32)
1320
1321#ifdef VR_API_EXPORT
1322#define VR_INTERFACE extern "C" __declspec( dllexport )
1323#else
1324#define VR_INTERFACE extern "C" __declspec( dllimport )
1325#endif
1326
1327#elif defined(__GNUC__) || defined(COMPILER_GCC) || defined(__APPLE__)
1328
1329#ifdef VR_API_EXPORT
1330#define VR_INTERFACE extern "C" __attribute__((visibility("default")))
1331#else
1332#define VR_INTERFACE extern "C"
1333#endif
1334
1335#else
1336#error "Unsupported Platform."
1337#endif
1338
1339
1340#if defined( _WIN32 )
1341#define VR_CALLTYPE __cdecl
1342#else
1343#define VR_CALLTYPE
1344#endif
1345
1346} // namespace vr
1347
1348#endif // _INCLUDE_VRTYPES_H
1349
1350
1351// vrannotation.h
1352#ifdef API_GEN
1353# define VR_CLANG_ATTR(ATTR) __attribute__((annotate( ATTR )))
1354#else
1355# define VR_CLANG_ATTR(ATTR)
1356#endif
1357
1358#define VR_METHOD_DESC(DESC) VR_CLANG_ATTR( "desc:" #DESC ";" )
1359#define VR_IGNOREATTR() VR_CLANG_ATTR( "ignore" )
1360#define VR_OUT_STRUCT() VR_CLANG_ATTR( "out_struct: ;" )
1361#define VR_OUT_STRING() VR_CLANG_ATTR( "out_string: ;" )
1362#define VR_OUT_ARRAY_CALL(COUNTER,FUNCTION,PARAMS) VR_CLANG_ATTR( "out_array_call:" #COUNTER "," #FUNCTION "," #PARAMS ";" )
1363#define VR_OUT_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "out_array_count:" #COUNTER ";" )
1364#define VR_ARRAY_COUNT(COUNTER) VR_CLANG_ATTR( "array_count:" #COUNTER ";" )
1365#define VR_ARRAY_COUNT_D(COUNTER, DESC) VR_CLANG_ATTR( "array_count:" #COUNTER ";desc:" #DESC )
1366#define VR_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "buffer_count:" #COUNTER ";" )
1367#define VR_OUT_BUFFER_COUNT(COUNTER) VR_CLANG_ATTR( "out_buffer_count:" #COUNTER ";" )
1368#define VR_OUT_STRING_COUNT(COUNTER) VR_CLANG_ATTR( "out_string_count:" #COUNTER ";" )
1369
1370// ivrsystem.h
1371namespace vr
1372{
1373
1375{
1376 void (__stdcall *GetRecommendedRenderTargetSize)( uint32_t *pnWidth, uint32_t *pnHeight );
1377 HmdMatrix44_t (__stdcall *GetProjectionMatrix)( EVREye eEye, float fNearZ, float fFarZ );
1378 void (__stdcall *GetProjectionRaw)( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom );
1379 bool (__stdcall *ComputeDistortion)( EVREye eEye, float fU, float fV, DistortionCoordinates_t *pDistortionCoordinates );
1380 HmdMatrix34_t (__stdcall *GetEyeToHeadTransform)( EVREye eEye );
1381 bool (__stdcall *GetTimeSinceLastVsync)( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter );
1382 int32_t (__stdcall *GetD3D9AdapterIndex)();
1383 void (__stdcall *GetDXGIOutputInfo)( int32_t *pnAdapterIndex );
1384 void (__stdcall *GetOutputDevice)( uint64_t *pnDevice, ETextureType textureType, VkInstance_T *pInstance);
1385 bool (__stdcall *IsDisplayOnDesktop)();
1386 bool (__stdcall *SetDisplayVisibility)( bool bIsVisibleOnDesktop );
1388 void (__stdcall *ResetSeatedZeroPose)();
1389 HmdMatrix34_t (__stdcall *GetSeatedZeroPoseToStandingAbsoluteTrackingPose)();
1390 HmdMatrix34_t (__stdcall *GetRawZeroPoseToStandingAbsoluteTrackingPose)();
1392 EDeviceActivityLevel (__stdcall *GetTrackedDeviceActivityLevel)( vr::TrackedDeviceIndex_t unDeviceId );
1393 void (__stdcall *ApplyTransform)( TrackedDevicePose_t *pOutputPose, const TrackedDevicePose_t *pTrackedDevicePose, const HmdMatrix34_t *pTransform );
1394 vr::TrackedDeviceIndex_t (__stdcall *GetTrackedDeviceIndexForControllerRole)( vr::ETrackedControllerRole unDeviceType );
1395 vr::ETrackedControllerRole (__stdcall *GetControllerRoleForTrackedDeviceIndex)( vr::TrackedDeviceIndex_t unDeviceIndex );
1396 ETrackedDeviceClass (__stdcall *GetTrackedDeviceClass)( vr::TrackedDeviceIndex_t unDeviceIndex );
1397 bool (__stdcall *IsTrackedDeviceConnected)( vr::TrackedDeviceIndex_t unDeviceIndex );
1398 bool (__stdcall *GetBoolTrackedDeviceProperty)( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError);
1399 float (__stdcall *GetFloatTrackedDeviceProperty)( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError);
1400 int32_t (__stdcall *GetInt32TrackedDeviceProperty)( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError);
1401 uint64_t (__stdcall *GetUint64TrackedDeviceProperty)( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError);
1402 HmdMatrix34_t (__stdcall *GetMatrix34TrackedDeviceProperty)( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError);
1403 uint32_t (__stdcall *GetArrayTrackedDeviceProperty)( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, PropertyTypeTag_t propType, void *pBuffer, uint32_t unBufferSize, ETrackedPropertyError *pError);
1404 uint32_t (__stdcall *GetStringTrackedDeviceProperty)( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError);
1406 bool (__stdcall *PollNextEvent)( VREvent_t *pEvent, uint32_t uncbVREvent );
1408 const char *(__stdcall *GetEventTypeNameFromEnum)( EVREventType eType );
1409 HiddenAreaMesh_t (__stdcall *GetHiddenAreaMesh)( EVREye eEye, EHiddenAreaMeshType type);
1412 void (__stdcall *TriggerHapticPulse)( vr::TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec );
1413 const char *(__stdcall *GetButtonIdNameFromEnum)( EVRButtonId eButtonId );
1414 const char *(__stdcall *GetControllerAxisTypeNameFromEnum)( EVRControllerAxisType eAxisType );
1415 bool (__stdcall *IsInputAvailable)();
1416 bool (__stdcall *IsSteamVRDrawingControllers)();
1417 bool (__stdcall *ShouldApplicationPause)();
1418 bool (__stdcall *ShouldApplicationReduceRenderingWork)();
1419 uint32_t (__stdcall *DriverDebugRequest)( vr::TrackedDeviceIndex_t unDeviceIndex, const char *pchRequest, char *pchResponseBuffer, uint32_t unResponseBufferSize );
1420 vr::EVRFirmwareError (__stdcall *PerformFirmwareUpdate)( vr::TrackedDeviceIndex_t unDeviceIndex );
1421 void (__stdcall *AcknowledgeQuit_Exiting)();
1422 void (__stdcall *AcknowledgeQuit_UserPrompt)();
1423};
1424
1426{
1427 VR_IVRSystem_FnTable _table;
1428public:
1429
1430
1431 // ------------------------------------
1432 // Display Methods
1433 // ------------------------------------
1434
1436 void GetRecommendedRenderTargetSize( uint32_t *pnWidth, uint32_t *pnHeight ) { _table.GetRecommendedRenderTargetSize(pnWidth, pnHeight); }
1437
1439 HmdMatrix44_t GetProjectionMatrix( EVREye eEye, float fNearZ, float fFarZ ) { return _table.GetProjectionMatrix(eEye, fNearZ, fFarZ); }
1440
1443 void GetProjectionRaw( EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom ) { _table.GetProjectionRaw(eEye, pfLeft, pfRight, pfTop, pfBottom); }
1444
1448 bool ComputeDistortion( EVREye eEye, float fU, float fV, DistortionCoordinates_t *pDistortionCoordinates ) { return _table.ComputeDistortion(eEye, fU, fV, pDistortionCoordinates); }
1449
1454 HmdMatrix34_t GetEyeToHeadTransform( EVREye eEye ) { return _table.GetEyeToHeadTransform(eEye); }
1455
1460 bool GetTimeSinceLastVsync( float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter ) { return _table.GetTimeSinceLastVsync(pfSecondsSinceLastVsync, pulFrameCounter); }
1461
1466 int32_t GetD3D9AdapterIndex() { return _table.GetD3D9AdapterIndex(); }
1467
1472 void GetDXGIOutputInfo( int32_t *pnAdapterIndex ) { _table.GetDXGIOutputInfo(pnAdapterIndex); }
1473
1496 void GetOutputDevice( uint64_t *pnDevice, ETextureType textureType, VkInstance_T *pInstance = nullptr ) { _table.GetOutputDevice(pnDevice, textureType, pInstance); }
1497
1498 // ------------------------------------
1499 // Display Mode methods
1500 // ------------------------------------
1501
1503 bool IsDisplayOnDesktop() { return _table.IsDisplayOnDesktop(); }
1504
1506 bool SetDisplayVisibility( bool bIsVisibleOnDesktop ) { return _table.SetDisplayVisibility(bIsVisibleOnDesktop); }
1507
1508 // ------------------------------------
1509 // Tracking Methods
1510 // ------------------------------------
1511
1529 void GetDeviceToAbsoluteTrackingPose( ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount ) { _table.GetDeviceToAbsoluteTrackingPose(eOrigin, fPredictedSecondsToPhotonsFromNow, pTrackedDevicePoseArray, unTrackedDevicePoseArrayCount); }
1530
1540 void ResetSeatedZeroPose() { _table.ResetSeatedZeroPose(); }
1541
1548 HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose() { return _table.GetSeatedZeroPoseToStandingAbsoluteTrackingPose(); }
1549
1552 HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose() { return _table.GetRawZeroPoseToStandingAbsoluteTrackingPose(); }
1553
1557 uint32_t GetSortedTrackedDeviceIndicesOfClass( ETrackedDeviceClass eTrackedDeviceClass, VR_ARRAY_COUNT(unTrackedDeviceIndexArrayCount) vr::TrackedDeviceIndex_t *punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, vr::TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex = k_unTrackedDeviceIndex_Hmd ) { return _table.GetSortedTrackedDeviceIndicesOfClass(eTrackedDeviceClass, punTrackedDeviceIndexArray, unTrackedDeviceIndexArrayCount, unRelativeToTrackedDeviceIndex); }
1558
1560 EDeviceActivityLevel GetTrackedDeviceActivityLevel( vr::TrackedDeviceIndex_t unDeviceId ) { return _table.GetTrackedDeviceActivityLevel(unDeviceId); }
1561
1565 void ApplyTransform( TrackedDevicePose_t *pOutputPose, const TrackedDevicePose_t *pTrackedDevicePose, const HmdMatrix34_t *pTransform ) { _table.ApplyTransform(pOutputPose, pTrackedDevicePose, pTransform); }
1566
1568 vr::TrackedDeviceIndex_t GetTrackedDeviceIndexForControllerRole( vr::ETrackedControllerRole unDeviceType ) { return _table.GetTrackedDeviceIndexForControllerRole(unDeviceType); }
1569
1571 vr::ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex( vr::TrackedDeviceIndex_t unDeviceIndex ) { return _table.GetControllerRoleForTrackedDeviceIndex(unDeviceIndex); }
1572
1573 // ------------------------------------
1574 // Property methods
1575 // ------------------------------------
1576
1584 ETrackedDeviceClass GetTrackedDeviceClass( vr::TrackedDeviceIndex_t unDeviceIndex ) { return _table.GetTrackedDeviceClass(unDeviceIndex); }
1585
1587 bool IsTrackedDeviceConnected( vr::TrackedDeviceIndex_t unDeviceIndex ) { return _table.IsTrackedDeviceConnected(unDeviceIndex); }
1588
1590 bool GetBoolTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) { return _table.GetBoolTrackedDeviceProperty(unDeviceIndex, prop, pError); }
1591
1593 float GetFloatTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) { return _table.GetFloatTrackedDeviceProperty(unDeviceIndex, prop, pError); }
1594
1596 int32_t GetInt32TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) { return _table.GetInt32TrackedDeviceProperty(unDeviceIndex, prop, pError); }
1597
1599 uint64_t GetUint64TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) { return _table.GetUint64TrackedDeviceProperty(unDeviceIndex, prop, pError); }
1600
1602 HmdMatrix34_t GetMatrix34TrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError = 0L ) { return _table.GetMatrix34TrackedDeviceProperty(unDeviceIndex, prop, pError); }
1603
1607 uint32_t GetArrayTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, PropertyTypeTag_t propType, void *pBuffer, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ) { return _table.GetArrayTrackedDeviceProperty(unDeviceIndex, prop, propType, pBuffer, unBufferSize, pError); }
1608
1612 uint32_t GetStringTrackedDeviceProperty( vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError = 0L ) { return _table.GetStringTrackedDeviceProperty(unDeviceIndex, prop, pchValue, unBufferSize, pError); }
1613
1616 const char *GetPropErrorNameFromEnum( ETrackedPropertyError error ) { return _table.GetPropErrorNameFromEnum(error); }
1617
1618 // ------------------------------------
1619 // Event methods
1620 // ------------------------------------
1621
1624 bool PollNextEvent( VREvent_t *pEvent, uint32_t uncbVREvent ) { return _table.PollNextEvent(pEvent, uncbVREvent); }
1625
1630 bool PollNextEventWithPose( ETrackingUniverseOrigin eOrigin, VREvent_t *pEvent, uint32_t uncbVREvent, vr::TrackedDevicePose_t *pTrackedDevicePose ) { return _table.PollNextEventWithPose(eOrigin, pEvent, uncbVREvent, pTrackedDevicePose); }
1631
1633 const char *GetEventTypeNameFromEnum( EVREventType eType ) { return _table.GetEventTypeNameFromEnum(eType); }
1634
1635 // ------------------------------------
1636 // Rendering helper methods
1637 // ------------------------------------
1638
1647 HiddenAreaMesh_t GetHiddenAreaMesh( EVREye eEye, EHiddenAreaMeshType type = k_eHiddenAreaMesh_Standard ) { return _table.GetHiddenAreaMesh(eEye, type); }
1648
1649 // ------------------------------------
1650 // Controller methods
1651 // ------------------------------------
1652
1655 bool GetControllerState( vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize ) { return _table.GetControllerState(unControllerDeviceIndex, pControllerState, unControllerStateSize); }
1656
1660 bool GetControllerStateWithPose( ETrackingUniverseOrigin eOrigin, vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize, TrackedDevicePose_t *pTrackedDevicePose ) { return _table.GetControllerStateWithPose(eOrigin, unControllerDeviceIndex, pControllerState, unControllerStateSize, pTrackedDevicePose); }
1661
1664 void TriggerHapticPulse( vr::TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec ) { _table.TriggerHapticPulse(unControllerDeviceIndex, unAxisId, usDurationMicroSec); }
1665
1667 const char *GetButtonIdNameFromEnum( EVRButtonId eButtonId ) { return _table.GetButtonIdNameFromEnum(eButtonId); }
1668
1670 const char *GetControllerAxisTypeNameFromEnum( EVRControllerAxisType eAxisType ) { return _table.GetControllerAxisTypeNameFromEnum(eAxisType); }
1671
1674 bool IsInputAvailable() { return _table.IsInputAvailable(); }
1675
1678 bool IsSteamVRDrawingControllers() { return _table.IsSteamVRDrawingControllers(); }
1679
1682 bool ShouldApplicationPause() { return _table.ShouldApplicationPause(); }
1683
1686 bool ShouldApplicationReduceRenderingWork() { return _table.ShouldApplicationReduceRenderingWork(); }
1687
1688 // ------------------------------------
1689 // Debug Methods
1690 // ------------------------------------
1691
1695 uint32_t DriverDebugRequest( vr::TrackedDeviceIndex_t unDeviceIndex, const char *pchRequest, VR_OUT_STRING() char *pchResponseBuffer, uint32_t unResponseBufferSize ) { return _table.DriverDebugRequest(unDeviceIndex, pchRequest, pchResponseBuffer, unResponseBufferSize); }
1696
1697 // ------------------------------------
1698 // Firmware methods
1699 // ------------------------------------
1700
1706 vr::EVRFirmwareError PerformFirmwareUpdate( vr::TrackedDeviceIndex_t unDeviceIndex ) { return _table.PerformFirmwareUpdate(unDeviceIndex); }
1707
1708 // ------------------------------------
1709 // Application life cycle methods
1710 // ------------------------------------
1711
1714 void AcknowledgeQuit_Exiting() { _table.AcknowledgeQuit_Exiting(); }
1715
1719 void AcknowledgeQuit_UserPrompt() { _table.AcknowledgeQuit_UserPrompt(); }
1720
1721};
1722
1723static const char * const IVRSystem_Version = "FnTable:IVRSystem_019";
1724
1725}
1726
1727
1728// ivrapplications.h
1729namespace vr
1730{
1731
1734 {
1736
1737 VRApplicationError_AppKeyAlreadyExists = 100, // Only one application can use any given key
1738 VRApplicationError_NoManifest = 101, // the running application does not have a manifest
1739 VRApplicationError_NoApplication = 102, // No application is running
1741 VRApplicationError_UnknownApplication = 104, // the application could not be found
1742 VRApplicationError_IPCFailed = 105, // An IPC failure caused the request to fail
1746 VRApplicationError_LaunchFailed = 109, // the process didn't start
1747 VRApplicationError_ApplicationAlreadyStarting = 110, // the system was already starting the same application
1748 VRApplicationError_LaunchInProgress = 111, // The system was already starting a different application
1751 VRApplicationError_IsTemplate = 114, // error when you try to call LaunchApplication() on a template type app (use LaunchTemplateApplication)
1753
1754 VRApplicationError_BufferTooSmall = 200, // The provided buffer was too small to fit the requested data
1755 VRApplicationError_PropertyNotSet = 201, // The requested property was not set
1758 };
1759
1761 static const uint32_t k_unMaxApplicationKeyLength = 128;
1762
1788
1799
1801 {
1802 const char *pchKey;
1803 const char *pchValue;
1804 };
1805
1807 static const char * const k_pch_MimeType_HomeApp = "vr/home";
1808 static const char * const k_pch_MimeType_GameTheater = "vr/game_theater";
1809
1811 {
1812 EVRApplicationError (__stdcall *AddApplicationManifest)( const char *pchApplicationManifestFullPath, bool bTemporary);
1813 EVRApplicationError (__stdcall *RemoveApplicationManifest)( const char *pchApplicationManifestFullPath );
1814 bool (__stdcall *IsApplicationInstalled)( const char *pchAppKey );
1815 uint32_t (__stdcall *GetApplicationCount)();
1816 EVRApplicationError (__stdcall *GetApplicationKeyByIndex)( uint32_t unApplicationIndex, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen );
1817 EVRApplicationError (__stdcall *GetApplicationKeyByProcessId)( uint32_t unProcessId, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen );
1818 EVRApplicationError (__stdcall *LaunchApplication)( const char *pchAppKey );
1819 EVRApplicationError (__stdcall *LaunchTemplateApplication)( const char *pchTemplateAppKey, const char *pchNewAppKey, const AppOverrideKeys_t *pKeys, uint32_t unKeys );
1820 vr::EVRApplicationError (__stdcall *LaunchApplicationFromMimeType)( const char *pchMimeType, const char *pchArgs );
1821 EVRApplicationError (__stdcall *LaunchDashboardOverlay)( const char *pchAppKey );
1822 bool (__stdcall *CancelApplicationLaunch)( const char *pchAppKey );
1823 EVRApplicationError (__stdcall *IdentifyApplication)( uint32_t unProcessId, const char *pchAppKey );
1824 uint32_t (__stdcall *GetApplicationProcessId)( const char *pchAppKey );
1827 bool (__stdcall *GetApplicationPropertyBool)( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError);
1828 uint64_t (__stdcall *GetApplicationPropertyUint64)( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError);
1829 EVRApplicationError (__stdcall *SetApplicationAutoLaunch)( const char *pchAppKey, bool bAutoLaunch );
1830 bool (__stdcall *GetApplicationAutoLaunch)( const char *pchAppKey );
1831 EVRApplicationError (__stdcall *SetDefaultApplicationForMimeType)( const char *pchAppKey, const char *pchMimeType );
1832 bool (__stdcall *GetDefaultApplicationForMimeType)( const char *pchMimeType, char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen );
1833 bool (__stdcall *GetApplicationSupportedMimeTypes)( const char *pchAppKey, char *pchMimeTypesBuffer, uint32_t unMimeTypesBuffer );
1834 uint32_t (__stdcall *GetApplicationsThatSupportMimeType)( const char *pchMimeType, char *pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer );
1835 uint32_t (__stdcall *GetApplicationLaunchArguments)( uint32_t unHandle, char *pchArgs, uint32_t unArgs );
1836 EVRApplicationError (__stdcall *GetStartingApplication)( char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen );
1837 EVRApplicationTransitionState (__stdcall *GetTransitionState)();
1838 EVRApplicationError (__stdcall *PerformApplicationPrelaunchCheck)( const char *pchAppKey );
1840 bool (__stdcall *IsQuitUserPromptRequested)();
1841 EVRApplicationError (__stdcall *LaunchInternalProcess)( const char *pchBinaryPath, const char *pchArguments, const char *pchWorkingDirectory );
1842 uint32_t (__stdcall *GetCurrentSceneProcessId)();
1843 };
1844
1846 {
1848 public:
1849
1850 // --------------- Application management --------------- //
1851
1854 EVRApplicationError AddApplicationManifest( const char *pchApplicationManifestFullPath, bool bTemporary = false ) { return _table.AddApplicationManifest(pchApplicationManifestFullPath, bTemporary); }
1855
1857 EVRApplicationError RemoveApplicationManifest( const char *pchApplicationManifestFullPath ) { return _table.RemoveApplicationManifest(pchApplicationManifestFullPath); }
1858
1860 bool IsApplicationInstalled( const char *pchAppKey ) { return _table.IsApplicationInstalled(pchAppKey); }
1861
1863 uint32_t GetApplicationCount() { return _table.GetApplicationCount(); }
1864
1868 EVRApplicationError GetApplicationKeyByIndex( uint32_t unApplicationIndex, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) { return _table.GetApplicationKeyByIndex(unApplicationIndex, pchAppKeyBuffer, unAppKeyBufferLen); }
1869
1872 EVRApplicationError GetApplicationKeyByProcessId( uint32_t unProcessId, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) { return _table.GetApplicationKeyByProcessId(unProcessId, pchAppKeyBuffer, unAppKeyBufferLen); }
1873
1876 EVRApplicationError LaunchApplication( const char *pchAppKey ) { return _table.LaunchApplication(pchAppKey); }
1877
1881 EVRApplicationError LaunchTemplateApplication( const char *pchTemplateAppKey, const char *pchNewAppKey, VR_ARRAY_COUNT( unKeys ) const AppOverrideKeys_t *pKeys, uint32_t unKeys ) { return _table.LaunchTemplateApplication(pchTemplateAppKey, pchNewAppKey, pKeys, unKeys); }
1882
1884 vr::EVRApplicationError LaunchApplicationFromMimeType( const char *pchMimeType, const char *pchArgs ) { return _table.LaunchApplicationFromMimeType(pchMimeType, pchArgs); }
1885
1888 EVRApplicationError LaunchDashboardOverlay( const char *pchAppKey ) { return _table.LaunchDashboardOverlay(pchAppKey); }
1889
1891 bool CancelApplicationLaunch( const char *pchAppKey ) { return _table.CancelApplicationLaunch(pchAppKey); }
1892
1897 EVRApplicationError IdentifyApplication( uint32_t unProcessId, const char *pchAppKey ) { return _table.IdentifyApplication(unProcessId, pchAppKey); }
1898
1900 uint32_t GetApplicationProcessId( const char *pchAppKey ) { return _table.GetApplicationProcessId(pchAppKey); }
1901
1903 const char *GetApplicationsErrorNameFromEnum( EVRApplicationError error ) { return _table.GetApplicationsErrorNameFromEnum(error); }
1904
1905 // --------------- Application properties --------------- //
1906
1908 uint32_t GetApplicationPropertyString( const char *pchAppKey, EVRApplicationProperty eProperty, VR_OUT_STRING() char *pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError *peError = nullptr ) { return _table.GetApplicationPropertyString(pchAppKey, eProperty, pchPropertyValueBuffer, unPropertyValueBufferLen, peError); }
1909
1911 bool GetApplicationPropertyBool( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) { return _table.GetApplicationPropertyBool(pchAppKey, eProperty, peError); }
1912
1914 uint64_t GetApplicationPropertyUint64( const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError = nullptr ) { return _table.GetApplicationPropertyUint64(pchAppKey, eProperty, peError); }
1915
1917 EVRApplicationError SetApplicationAutoLaunch( const char *pchAppKey, bool bAutoLaunch ) { return _table.SetApplicationAutoLaunch(pchAppKey, bAutoLaunch); }
1918
1920 bool GetApplicationAutoLaunch( const char *pchAppKey ) { return _table.GetApplicationAutoLaunch(pchAppKey); }
1921
1923 EVRApplicationError SetDefaultApplicationForMimeType( const char *pchAppKey, const char *pchMimeType ) { return _table.SetDefaultApplicationForMimeType(pchAppKey, pchMimeType); }
1924
1926 bool GetDefaultApplicationForMimeType( const char *pchMimeType, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) { return _table.GetDefaultApplicationForMimeType(pchMimeType, pchAppKeyBuffer, unAppKeyBufferLen); }
1927
1929 bool GetApplicationSupportedMimeTypes( const char *pchAppKey, VR_OUT_STRING() char *pchMimeTypesBuffer, uint32_t unMimeTypesBuffer ) { return _table.GetApplicationSupportedMimeTypes(pchAppKey, pchMimeTypesBuffer, unMimeTypesBuffer); }
1930
1932 uint32_t GetApplicationsThatSupportMimeType( const char *pchMimeType, VR_OUT_STRING() char *pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer ) { return _table.GetApplicationsThatSupportMimeType(pchMimeType, pchAppKeysThatSupportBuffer, unAppKeysThatSupportBuffer); }
1933
1935 uint32_t GetApplicationLaunchArguments( uint32_t unHandle, VR_OUT_STRING() char *pchArgs, uint32_t unArgs ) { return _table.GetApplicationLaunchArguments(unHandle, pchArgs, unArgs); }
1936
1937 // --------------- Transition methods --------------- //
1938
1940 EVRApplicationError GetStartingApplication( VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen ) { return _table.GetStartingApplication(pchAppKeyBuffer, unAppKeyBufferLen); }
1941
1943 EVRApplicationTransitionState GetTransitionState() { return _table.GetTransitionState(); }
1944
1954 EVRApplicationError PerformApplicationPrelaunchCheck( const char *pchAppKey ) { return _table.PerformApplicationPrelaunchCheck(pchAppKey); }
1955
1957 const char *GetApplicationsTransitionStateNameFromEnum( EVRApplicationTransitionState state ) { return _table.GetApplicationsTransitionStateNameFromEnum(state); }
1958
1960 bool IsQuitUserPromptRequested() { return _table.IsQuitUserPromptRequested(); }
1961
1967 EVRApplicationError LaunchInternalProcess( const char *pchBinaryPath, const char *pchArguments, const char *pchWorkingDirectory ) { return _table.LaunchInternalProcess(pchBinaryPath, pchArguments, pchWorkingDirectory); }
1968
1972 uint32_t GetCurrentSceneProcessId() { return _table.GetCurrentSceneProcessId(); }
1973 };
1974
1975 static const char * const IVRApplications_Version = "FnTable:IVRApplications_006";
1976
1977} // namespace vr
1978
1979// ivrsettings.h
1980namespace vr
1981{
1983 {
1989 VRSettingsError_UnsetSettingHasNoDefault = 5, // This will be returned if the setting does not appear in the appropriate default file and has not been set
1990 };
1991
1992 // The maximum length of a settings key
1993 static const uint32_t k_unMaxSettingsKeyLength = 128;
1994
1996 {
1997 const char *(__stdcall *GetSettingsErrorNameFromEnum)( EVRSettingsError eError );
1998 bool (__stdcall *Sync)( bool bForce, EVRSettingsError *peError);
1999 void (__stdcall *SetBool)( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError);
2000 void (__stdcall *SetInt32)( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError);
2001 void (__stdcall *SetFloat)( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError);
2002 void (__stdcall *SetString)( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError);
2003 bool (__stdcall *GetBool)( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError);
2004 int32_t (__stdcall *GetInt32)( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError);
2005 float (__stdcall *GetFloat)( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError);
2006 void (__stdcall *GetString)( const char *pchSection, const char *pchSettingsKey, char *pchValue, uint32_t unValueLen, EVRSettingsError *peError);
2007 void (__stdcall *RemoveSection)( const char *pchSection, EVRSettingsError *peError);
2008 void (__stdcall *RemoveKeyInSection)( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError);
2009 };
2010
2012 {
2014 public:
2015 const char *GetSettingsErrorNameFromEnum( EVRSettingsError eError ) { return _table.GetSettingsErrorNameFromEnum(eError); }
2016
2017 // Returns true if file sync occurred (force or settings dirty)
2018 bool Sync( bool bForce = false, EVRSettingsError *peError = nullptr ) { return _table.Sync(bForce, peError); }
2019
2020 void SetBool( const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError = nullptr ) { _table.SetBool(pchSection, pchSettingsKey, bValue, peError); }
2021 void SetInt32( const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError = nullptr ) { _table.SetInt32(pchSection, pchSettingsKey, nValue, peError); }
2022 void SetFloat( const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError = nullptr ) { _table.SetFloat(pchSection, pchSettingsKey, flValue, peError); }
2023 void SetString( const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError = nullptr ) { _table.SetString(pchSection, pchSettingsKey, pchValue, peError); }
2024
2025 // Users of the system need to provide a proper default in default.vrsettings in the resources/settings/ directory
2026 // of either the runtime or the driver_xxx directory. Otherwise the default will be false, 0, 0.0 or ""
2027 bool GetBool( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) { return _table.GetBool(pchSection, pchSettingsKey, peError); }
2028 int32_t GetInt32( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) { return _table.GetInt32(pchSection, pchSettingsKey, peError); }
2029 float GetFloat( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) { return _table.GetFloat(pchSection, pchSettingsKey, peError); }
2030 void GetString( const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError = nullptr ) { _table.GetString(pchSection, pchSettingsKey, pchValue, unValueLen, peError); }
2031
2032 void RemoveSection( const char *pchSection, EVRSettingsError *peError = nullptr ) { _table.RemoveSection(pchSection, peError); }
2033 void RemoveKeyInSection( const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError = nullptr ) { _table.RemoveKeyInSection(pchSection, pchSettingsKey, peError); }
2034 };
2035
2036 //-----------------------------------------------------------------------------
2037 static const char * const IVRSettings_Version = "FnTable:IVRSettings_002";
2038
2039 //-----------------------------------------------------------------------------
2040 // steamvr keys
2041 static const char * const k_pch_SteamVR_Section = "steamvr";
2042 static const char * const k_pch_SteamVR_RequireHmd_String = "requireHmd";
2043 static const char * const k_pch_SteamVR_ForcedDriverKey_String = "forcedDriver";
2044 static const char * const k_pch_SteamVR_ForcedHmdKey_String = "forcedHmd";
2045 static const char * const k_pch_SteamVR_DisplayDebug_Bool = "displayDebug";
2046 static const char * const k_pch_SteamVR_DebugProcessPipe_String = "debugProcessPipe";
2047 static const char * const k_pch_SteamVR_DisplayDebugX_Int32 = "displayDebugX";
2048 static const char * const k_pch_SteamVR_DisplayDebugY_Int32 = "displayDebugY";
2049 static const char * const k_pch_SteamVR_SendSystemButtonToAllApps_Bool= "sendSystemButtonToAllApps";
2050 static const char * const k_pch_SteamVR_LogLevel_Int32 = "loglevel";
2051 static const char * const k_pch_SteamVR_IPD_Float = "ipd";
2052 static const char * const k_pch_SteamVR_Background_String = "background";
2053 static const char * const k_pch_SteamVR_BackgroundUseDomeProjection_Bool = "backgroundUseDomeProjection";
2054 static const char * const k_pch_SteamVR_BackgroundCameraHeight_Float = "backgroundCameraHeight";
2055 static const char * const k_pch_SteamVR_BackgroundDomeRadius_Float = "backgroundDomeRadius";
2056 static const char * const k_pch_SteamVR_GridColor_String = "gridColor";
2057 static const char * const k_pch_SteamVR_PlayAreaColor_String = "playAreaColor";
2058 static const char * const k_pch_SteamVR_ShowStage_Bool = "showStage";
2059 static const char * const k_pch_SteamVR_ActivateMultipleDrivers_Bool = "activateMultipleDrivers";
2060 static const char * const k_pch_SteamVR_DirectMode_Bool = "directMode";
2061 static const char * const k_pch_SteamVR_DirectModeEdidVid_Int32 = "directModeEdidVid";
2062 static const char * const k_pch_SteamVR_DirectModeEdidPid_Int32 = "directModeEdidPid";
2063 static const char * const k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
2064 static const char * const k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
2065 static const char * const k_pch_SteamVR_BaseStationPowerManagement_Bool = "basestationPowerManagement";
2066 static const char * const k_pch_SteamVR_NeverKillProcesses_Bool = "neverKillProcesses";
2067 static const char * const k_pch_SteamVR_SupersampleScale_Float = "supersampleScale";
2068 static const char * const k_pch_SteamVR_AllowAsyncReprojection_Bool = "allowAsyncReprojection";
2069 static const char * const k_pch_SteamVR_AllowReprojection_Bool = "allowInterleavedReprojection";
2070 static const char * const k_pch_SteamVR_ForceReprojection_Bool = "forceReprojection";
2071 static const char * const k_pch_SteamVR_ForceFadeOnBadTracking_Bool = "forceFadeOnBadTracking";
2072 static const char * const k_pch_SteamVR_DefaultMirrorView_Int32 = "defaultMirrorView";
2073 static const char * const k_pch_SteamVR_ShowMirrorView_Bool = "showMirrorView";
2074 static const char * const k_pch_SteamVR_MirrorViewGeometry_String = "mirrorViewGeometry";
2075 static const char * const k_pch_SteamVR_StartMonitorFromAppLaunch = "startMonitorFromAppLaunch";
2076 static const char * const k_pch_SteamVR_StartCompositorFromAppLaunch_Bool = "startCompositorFromAppLaunch";
2077 static const char * const k_pch_SteamVR_StartDashboardFromAppLaunch_Bool = "startDashboardFromAppLaunch";
2078 static const char * const k_pch_SteamVR_StartOverlayAppsFromDashboard_Bool = "startOverlayAppsFromDashboard";
2079 static const char * const k_pch_SteamVR_EnableHomeApp = "enableHomeApp";
2080 static const char * const k_pch_SteamVR_CycleBackgroundImageTimeSec_Int32 = "CycleBackgroundImageTimeSec";
2081 static const char * const k_pch_SteamVR_RetailDemo_Bool = "retailDemo";
2082 static const char * const k_pch_SteamVR_IpdOffset_Float = "ipdOffset";
2083 static const char * const k_pch_SteamVR_AllowSupersampleFiltering_Bool = "allowSupersampleFiltering";
2084 static const char * const k_pch_SteamVR_EnableLinuxVulkanAsync_Bool = "enableLinuxVulkanAsync";
2085 static const char * const k_pch_SteamVR_AllowDisplayLockedMode_Bool = "allowDisplayLockedMode";
2086 static const char * const k_pch_SteamVR_HaveStartedTutorialForNativeChaperoneDriver_Bool = "haveStartedTutorialForNativeChaperoneDriver";
2087 static const char * const k_pch_SteamVR_ForceWindows32bitVRMonitor = "forceWindows32BitVRMonitor";
2088
2089 //-----------------------------------------------------------------------------
2090 // lighthouse keys
2091 static const char * const k_pch_Lighthouse_Section = "driver_lighthouse";
2092 static const char * const k_pch_Lighthouse_DisableIMU_Bool = "disableimu";
2093 static const char * const k_pch_Lighthouse_DisableIMUExceptHMD_Bool = "disableimuexcepthmd";
2094 static const char * const k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation";
2095 static const char * const k_pch_Lighthouse_DisambiguationDebug_Int32 = "disambiguationdebug";
2096 static const char * const k_pch_Lighthouse_PrimaryBasestation_Int32 = "primarybasestation";
2097 static const char * const k_pch_Lighthouse_DBHistory_Bool = "dbhistory";
2098 static const char * const k_pch_Lighthouse_EnableBluetooth_Bool = "enableBluetooth";
2099
2100 //-----------------------------------------------------------------------------
2101 // null keys
2102 static const char * const k_pch_Null_Section = "driver_null";
2103 static const char * const k_pch_Null_SerialNumber_String = "serialNumber";
2104 static const char * const k_pch_Null_ModelNumber_String = "modelNumber";
2105 static const char * const k_pch_Null_WindowX_Int32 = "windowX";
2106 static const char * const k_pch_Null_WindowY_Int32 = "windowY";
2107 static const char * const k_pch_Null_WindowWidth_Int32 = "windowWidth";
2108 static const char * const k_pch_Null_WindowHeight_Int32 = "windowHeight";
2109 static const char * const k_pch_Null_RenderWidth_Int32 = "renderWidth";
2110 static const char * const k_pch_Null_RenderHeight_Int32 = "renderHeight";
2111 static const char * const k_pch_Null_SecondsFromVsyncToPhotons_Float = "secondsFromVsyncToPhotons";
2112 static const char * const k_pch_Null_DisplayFrequency_Float = "displayFrequency";
2113
2114 //-----------------------------------------------------------------------------
2115 // user interface keys
2116 static const char * const k_pch_UserInterface_Section = "userinterface";
2117 static const char * const k_pch_UserInterface_StatusAlwaysOnTop_Bool = "StatusAlwaysOnTop";
2118 static const char * const k_pch_UserInterface_MinimizeToTray_Bool = "MinimizeToTray";
2119 static const char * const k_pch_UserInterface_Screenshots_Bool = "screenshots";
2120 static const char * const k_pch_UserInterface_ScreenshotType_Int = "screenshotType";
2121
2122 //-----------------------------------------------------------------------------
2123 // notification keys
2124 static const char * const k_pch_Notifications_Section = "notifications";
2125 static const char * const k_pch_Notifications_DoNotDisturb_Bool = "DoNotDisturb";
2126
2127 //-----------------------------------------------------------------------------
2128 // keyboard keys
2129 static const char * const k_pch_Keyboard_Section = "keyboard";
2130 static const char * const k_pch_Keyboard_TutorialCompletions = "TutorialCompletions";
2131 static const char * const k_pch_Keyboard_ScaleX = "ScaleX";
2132 static const char * const k_pch_Keyboard_ScaleY = "ScaleY";
2133 static const char * const k_pch_Keyboard_OffsetLeftX = "OffsetLeftX";
2134 static const char * const k_pch_Keyboard_OffsetRightX = "OffsetRightX";
2135 static const char * const k_pch_Keyboard_OffsetY = "OffsetY";
2136 static const char * const k_pch_Keyboard_Smoothing = "Smoothing";
2137
2138 //-----------------------------------------------------------------------------
2139 // perf keys
2140 static const char * const k_pch_Perf_Section = "perfcheck";
2141 static const char * const k_pch_Perf_HeuristicActive_Bool = "heuristicActive";
2142 static const char * const k_pch_Perf_NotifyInHMD_Bool = "warnInHMD";
2143 static const char * const k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce";
2144 static const char * const k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore";
2145 static const char * const k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
2146 static const char * const k_pch_Perf_TestData_Float = "perfTestData";
2147 static const char * const k_pch_Perf_LinuxGPUProfiling_Bool = "linuxGPUProfiling";
2148
2149 //-----------------------------------------------------------------------------
2150 // collision bounds keys
2151 static const char * const k_pch_CollisionBounds_Section = "collisionBounds";
2152 static const char * const k_pch_CollisionBounds_Style_Int32 = "CollisionBoundsStyle";
2153 static const char * const k_pch_CollisionBounds_GroundPerimeterOn_Bool = "CollisionBoundsGroundPerimeterOn";
2154 static const char * const k_pch_CollisionBounds_CenterMarkerOn_Bool = "CollisionBoundsCenterMarkerOn";
2155 static const char * const k_pch_CollisionBounds_PlaySpaceOn_Bool = "CollisionBoundsPlaySpaceOn";
2156 static const char * const k_pch_CollisionBounds_FadeDistance_Float = "CollisionBoundsFadeDistance";
2157 static const char * const k_pch_CollisionBounds_ColorGammaR_Int32 = "CollisionBoundsColorGammaR";
2158 static const char * const k_pch_CollisionBounds_ColorGammaG_Int32 = "CollisionBoundsColorGammaG";
2159 static const char * const k_pch_CollisionBounds_ColorGammaB_Int32 = "CollisionBoundsColorGammaB";
2160 static const char * const k_pch_CollisionBounds_ColorGammaA_Int32 = "CollisionBoundsColorGammaA";
2161
2162 //-----------------------------------------------------------------------------
2163 // camera keys
2164 static const char * const k_pch_Camera_Section = "camera";
2165 static const char * const k_pch_Camera_EnableCamera_Bool = "enableCamera";
2166 static const char * const k_pch_Camera_EnableCameraInDashboard_Bool = "enableCameraInDashboard";
2167 static const char * const k_pch_Camera_EnableCameraForCollisionBounds_Bool = "enableCameraForCollisionBounds";
2168 static const char * const k_pch_Camera_EnableCameraForRoomView_Bool = "enableCameraForRoomView";
2169 static const char * const k_pch_Camera_BoundsColorGammaR_Int32 = "cameraBoundsColorGammaR";
2170 static const char * const k_pch_Camera_BoundsColorGammaG_Int32 = "cameraBoundsColorGammaG";
2171 static const char * const k_pch_Camera_BoundsColorGammaB_Int32 = "cameraBoundsColorGammaB";
2172 static const char * const k_pch_Camera_BoundsColorGammaA_Int32 = "cameraBoundsColorGammaA";
2173 static const char * const k_pch_Camera_BoundsStrength_Int32 = "cameraBoundsStrength";
2174
2175 //-----------------------------------------------------------------------------
2176 // audio keys
2177 static const char * const k_pch_audio_Section = "audio";
2178 static const char * const k_pch_audio_OnPlaybackDevice_String = "onPlaybackDevice";
2179 static const char * const k_pch_audio_OnRecordDevice_String = "onRecordDevice";
2180 static const char * const k_pch_audio_OnPlaybackMirrorDevice_String = "onPlaybackMirrorDevice";
2181 static const char * const k_pch_audio_OffPlaybackDevice_String = "offPlaybackDevice";
2182 static const char * const k_pch_audio_OffRecordDevice_String = "offRecordDevice";
2183 static const char * const k_pch_audio_VIVEHDMIGain = "viveHDMIGain";
2184
2185 //-----------------------------------------------------------------------------
2186 // power management keys
2187 static const char * const k_pch_Power_Section = "power";
2188 static const char * const k_pch_Power_PowerOffOnExit_Bool = "powerOffOnExit";
2189 static const char * const k_pch_Power_TurnOffScreensTimeout_Float = "turnOffScreensTimeout";
2190 static const char * const k_pch_Power_TurnOffControllersTimeout_Float = "turnOffControllersTimeout";
2191 static const char * const k_pch_Power_ReturnToWatchdogTimeout_Float = "returnToWatchdogTimeout";
2192 static const char * const k_pch_Power_AutoLaunchSteamVROnButtonPress = "autoLaunchSteamVROnButtonPress";
2193 static const char * const k_pch_Power_PauseCompositorOnStandby_Bool = "pauseCompositorOnStandby";
2194
2195 //-----------------------------------------------------------------------------
2196 // dashboard keys
2197 static const char * const k_pch_Dashboard_Section = "dashboard";
2198 static const char * const k_pch_Dashboard_EnableDashboard_Bool = "enableDashboard";
2199 static const char * const k_pch_Dashboard_ArcadeMode_Bool = "arcadeMode";
2200
2201 //-----------------------------------------------------------------------------
2202 // model skin keys
2203 static const char * const k_pch_modelskin_Section = "modelskins";
2204
2205 //-----------------------------------------------------------------------------
2206 // driver keys - These could be checked in any driver_<name> section
2207 static const char * const k_pch_Driver_Enable_Bool = "enable";
2208
2209} // namespace vr
2210
2211// ivrchaperone.h
2212namespace vr
2213{
2214
2215#pragma pack( push, 8 )
2216
2218{
2219 // OK!
2220 ChaperoneCalibrationState_OK = 1, // Chaperone is fully calibrated and working correctly
2221
2222 // Warnings
2224 ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved = 101, // A base station thinks that it might have moved
2225 ChaperoneCalibrationState_Warning_BaseStationRemoved = 102, // There are less base stations than when calibrated
2226 ChaperoneCalibrationState_Warning_SeatedBoundsInvalid = 103, // Seated bounds haven't been calibrated for the current tracking center
2227
2228 // Errors
2229 ChaperoneCalibrationState_Error = 200, // The UniverseID is invalid
2230 ChaperoneCalibrationState_Error_BaseStationUninitialized = 201, // Tracking center hasn't be calibrated for at least one of the base stations
2231 ChaperoneCalibrationState_Error_BaseStationConflict = 202, // Tracking center is calibrated, but base stations disagree on the tracking space
2232 ChaperoneCalibrationState_Error_PlayAreaInvalid = 203, // Play Area hasn't been calibrated for the current tracking center
2233 ChaperoneCalibrationState_Error_CollisionBoundsInvalid = 204, // Collision Bounds haven't been calibrated for the current tracking center
2234};
2235
2236
2242{
2243 ChaperoneCalibrationState (__stdcall *GetCalibrationState)();
2244 bool (__stdcall *GetPlayAreaSize)( float *pSizeX, float *pSizeZ );
2245 bool (__stdcall *GetPlayAreaRect)( HmdQuad_t *rect );
2246 void (__stdcall *ReloadInfo)( void );
2247 void (__stdcall *SetSceneColor)( HmdColor_t color );
2248 void (__stdcall *GetBoundsColor)( HmdColor_t *pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t *pOutputCameraColor );
2249 bool (__stdcall *AreBoundsVisible)();
2250 void (__stdcall *ForceBoundsVisible)( bool bForce );
2251};
2252
2254{
2256public:
2257
2259 ChaperoneCalibrationState GetCalibrationState() { return _table.GetCalibrationState(); }
2260
2263 bool GetPlayAreaSize( float *pSizeX, float *pSizeZ ) { return _table.GetPlayAreaSize(pSizeX, pSizeZ); }
2264
2271 bool GetPlayAreaRect( HmdQuad_t *rect ) { return _table.GetPlayAreaRect(rect); }
2272
2274 void ReloadInfo( void ) { _table.ReloadInfo(); }
2275
2277 void SetSceneColor( HmdColor_t color ) { _table.SetSceneColor(color); }
2278
2280 void GetBoundsColor( HmdColor_t *pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t *pOutputCameraColor ) { _table.GetBoundsColor(pOutputColorArray, nNumOutputColors, flCollisionBoundsFadeDistance, pOutputCameraColor); }
2281
2283 bool AreBoundsVisible() { return _table.AreBoundsVisible(); }
2284
2286 void ForceBoundsVisible( bool bForce ) { _table.ForceBoundsVisible(bForce); }
2287};
2288
2289static const char * const IVRChaperone_Version = "FnTable:IVRChaperone_003";
2290
2291#pragma pack( pop )
2292
2293}
2294
2295// ivrchaperonesetup.h
2296namespace vr
2297{
2298
2300{
2301 EChaperoneConfigFile_Live = 1, // The live chaperone config, used by most applications and games
2302 EChaperoneConfigFile_Temp = 2, // The temporary chaperone config, used to live-preview collision bounds in room setup
2303};
2304
2309
2315{
2316 bool (__stdcall *CommitWorkingCopy)( EChaperoneConfigFile configFile );
2317 void (__stdcall *RevertWorkingCopy)();
2318 bool (__stdcall *GetWorkingPlayAreaSize)( float *pSizeX, float *pSizeZ );
2319 bool (__stdcall *GetWorkingPlayAreaRect)( HmdQuad_t *rect );
2320 bool (__stdcall *GetWorkingCollisionBoundsInfo)( HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount );
2321 bool (__stdcall *GetLiveCollisionBoundsInfo)( HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount );
2322 bool (__stdcall *GetWorkingSeatedZeroPoseToRawTrackingPose)( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose );
2323 bool (__stdcall *GetWorkingStandingZeroPoseToRawTrackingPose)( HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose );
2324 void (__stdcall *SetWorkingPlayAreaSize)( float sizeX, float sizeZ );
2325 void (__stdcall *SetWorkingCollisionBoundsInfo)( HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount );
2326 void (__stdcall *SetWorkingSeatedZeroPoseToRawTrackingPose)( const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose );
2327 void (__stdcall *SetWorkingStandingZeroPoseToRawTrackingPose)( const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose );
2328 void (__stdcall *ReloadFromDisk)( EChaperoneConfigFile configFile );
2329 bool (__stdcall *GetLiveSeatedZeroPoseToRawTrackingPose)( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose );
2330 void (__stdcall *SetWorkingCollisionBoundsTagsInfo)( uint8_t *pTagsBuffer, uint32_t unTagCount );
2331 bool (__stdcall *GetLiveCollisionBoundsTagsInfo)( uint8_t *pTagsBuffer, uint32_t *punTagCount );
2332 bool (__stdcall *SetWorkingPhysicalBoundsInfo)( HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount );
2333 bool (__stdcall *GetLivePhysicalBoundsInfo)( HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount );
2334 bool (__stdcall *ExportLiveToBuffer)( char *pBuffer, uint32_t *pnBufferLength );
2335 bool (__stdcall *ImportFromBufferToWorking)( const char *pBuffer, uint32_t nImportFlags );
2336};
2337
2339{
2341public:
2342
2344 bool CommitWorkingCopy( EChaperoneConfigFile configFile ) { return _table.CommitWorkingCopy(configFile); }
2345
2349 void RevertWorkingCopy() { _table.RevertWorkingCopy(); }
2350
2353 bool GetWorkingPlayAreaSize( float *pSizeX, float *pSizeZ ) { return _table.GetWorkingPlayAreaSize(pSizeX, pSizeZ); }
2354
2361 bool GetWorkingPlayAreaRect( HmdQuad_t *rect ) { return _table.GetWorkingPlayAreaRect(rect); }
2362
2365 bool GetWorkingCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) { return _table.GetWorkingCollisionBoundsInfo(pQuadsBuffer, punQuadsCount); }
2366
2369 bool GetLiveCollisionBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) { return _table.GetLiveCollisionBoundsInfo(pQuadsBuffer, punQuadsCount); }
2370
2372 bool GetWorkingSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) { return _table.GetWorkingSeatedZeroPoseToRawTrackingPose(pmatSeatedZeroPoseToRawTrackingPose); }
2373
2375 bool GetWorkingStandingZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose ) { return _table.GetWorkingStandingZeroPoseToRawTrackingPose(pmatStandingZeroPoseToRawTrackingPose); }
2376
2378 void SetWorkingPlayAreaSize( float sizeX, float sizeZ ) { _table.SetWorkingPlayAreaSize(sizeX, sizeZ); }
2379
2381 void SetWorkingCollisionBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) { _table.SetWorkingCollisionBoundsInfo(pQuadsBuffer, unQuadsCount); }
2382
2384 void SetWorkingSeatedZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose ) { _table.SetWorkingSeatedZeroPoseToRawTrackingPose(pMatSeatedZeroPoseToRawTrackingPose); }
2385
2387 void SetWorkingStandingZeroPoseToRawTrackingPose( const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose ) { _table.SetWorkingStandingZeroPoseToRawTrackingPose(pMatStandingZeroPoseToRawTrackingPose); }
2388
2390 void ReloadFromDisk( EChaperoneConfigFile configFile ) { _table.ReloadFromDisk(configFile); }
2391
2393 bool GetLiveSeatedZeroPoseToRawTrackingPose( HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose ) { return _table.GetLiveSeatedZeroPoseToRawTrackingPose(pmatSeatedZeroPoseToRawTrackingPose); }
2394
2395 void SetWorkingCollisionBoundsTagsInfo( VR_ARRAY_COUNT(unTagCount) uint8_t *pTagsBuffer, uint32_t unTagCount ) { _table.SetWorkingCollisionBoundsTagsInfo(pTagsBuffer, unTagCount); }
2396 bool GetLiveCollisionBoundsTagsInfo( VR_OUT_ARRAY_COUNT(punTagCount) uint8_t *pTagsBuffer, uint32_t *punTagCount ) { return _table.GetLiveCollisionBoundsTagsInfo(pTagsBuffer, punTagCount); }
2397
2398 bool SetWorkingPhysicalBoundsInfo( VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount ) { return _table.SetWorkingPhysicalBoundsInfo(pQuadsBuffer, unQuadsCount); }
2399 bool GetLivePhysicalBoundsInfo( VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t* punQuadsCount ) { return _table.GetLivePhysicalBoundsInfo(pQuadsBuffer, punQuadsCount); }
2400
2401 bool ExportLiveToBuffer( VR_OUT_STRING() char *pBuffer, uint32_t *pnBufferLength ) { return _table.ExportLiveToBuffer(pBuffer, pnBufferLength); }
2402 bool ImportFromBufferToWorking( const char *pBuffer, uint32_t nImportFlags ) { return _table.ImportFromBufferToWorking(pBuffer, nImportFlags); }
2403};
2404
2405static const char * const IVRChaperoneSetup_Version = "FnTable:IVRChaperoneSetup_005";
2406
2407
2408}
2409
2410// ivrcompositor.h
2411namespace vr
2412{
2413
2414#pragma pack( push, 8 )
2415
2432
2440
2443const uint32_t VRCompositor_ReprojectionAsync = 0x04; // This flag indicates the async reprojection mode is active,
2444 // but does not indicate if reprojection actually happened or not.
2445 // Use the ReprojectionReason flags above to check if reprojection
2446 // was actually applied (i.e. scene texture was reused).
2447 // NumFramePresents > 1 also indicates the scene texture was reused,
2448 // and also the number of times that it was presented in total.
2449
2452{
2453 uint32_t m_nSize; // Set to sizeof( Compositor_FrameTiming )
2455 uint32_t m_nNumFramePresents; // number of times this frame was presented
2456 uint32_t m_nNumMisPresented; // number of times this frame was presented on a vsync other than it was originally predicted to
2457 uint32_t m_nNumDroppedFrames; // number of additional times previous frame was scanned out
2459
2462
2467 float m_flPreSubmitGpuMs; // time spent rendering the scene (gpu work submitted between WaitGetPoses and second Submit)
2468 float m_flPostSubmitGpuMs; // additional time spent rendering by application (e.g. companion window)
2469 float m_flTotalRenderGpuMs; // time between work submitted immediately after present (ideally vsync) until the end of compositor submitted work
2470 float m_flCompositorRenderGpuMs; // time spend performing distortion correction, rendering chaperone, overlays, etc.
2471 float m_flCompositorRenderCpuMs; // time spent on cpu submitting the above work for this frame
2472 float m_flCompositorIdleCpuMs; // time spent waiting for running start (application could have used this much more time)
2473
2475 float m_flClientFrameIntervalMs; // time between calls to WaitGetPoses
2476 float m_flPresentCallCpuMs; // time blocked on call to present (usually 0.0, but can go long)
2477 float m_flWaitForPresentCpuMs; // time spent spin-waiting for frame index to change (not near-zero indicates wait object failure)
2478 float m_flSubmitFrameMs; // time spent in IVRCompositor::Submit (not near-zero indicates driver issue)
2479
2483 float m_flNewFrameReadyMs; // second call to IVRCompositor::Submit
2487
2488 vr::TrackedDevicePose_t m_HmdPose; // pose used by app to render this frame
2489};
2490
2494{
2495 uint32_t m_nPid; // Process id associated with these stats (may no longer be running).
2496 uint32_t m_nNumFramePresents; // total number of times we called present (includes reprojected frames)
2497 uint32_t m_nNumDroppedFrames; // total number of times an old frame was re-scanned out (without reprojection)
2498 uint32_t m_nNumReprojectedFrames; // total number of times a frame was scanned out a second time (with reprojection)
2499
2504
2511
2519};
2520
2521#pragma pack( pop )
2522
2525{
2526 void (__stdcall *SetTrackingSpace)( ETrackingUniverseOrigin eOrigin );
2527 ETrackingUniverseOrigin (__stdcall *GetTrackingSpace)();
2528 EVRCompositorError (__stdcall *WaitGetPoses)( TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount,
2530 EVRCompositorError (__stdcall *GetLastPoses)( TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount,
2532 EVRCompositorError (__stdcall *GetLastPoseForTrackedDeviceIndex)( TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t *pOutputPose, TrackedDevicePose_t *pOutputGamePose );
2534 void (__stdcall *ClearLastSubmittedFrame)();
2535 void (__stdcall *PostPresentHandoff)();
2536 bool (__stdcall *GetFrameTiming)( Compositor_FrameTiming *pTiming, uint32_t unFramesAgo);
2537 uint32_t (__stdcall *GetFrameTimings)( Compositor_FrameTiming *pTiming, uint32_t nFrames );
2538 float (__stdcall *GetFrameTimeRemaining)();
2539 void (__stdcall *GetCumulativeStats)( Compositor_CumulativeStats *pStats, uint32_t nStatsSizeInBytes );
2540 void (__stdcall *FadeToColor)( float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground);
2541 HmdColor_t (__stdcall *GetCurrentFadeColor)( bool bBackground);
2542 void (__stdcall *FadeGrid)( float fSeconds, bool bFadeIn );
2543 float (__stdcall *GetCurrentGridAlpha)();
2544 EVRCompositorError (__stdcall *SetSkyboxOverride)( const Texture_t *pTextures, uint32_t unTextureCount );
2545 void (__stdcall *ClearSkyboxOverride)();
2546 void (__stdcall *CompositorBringToFront)();
2547 void (__stdcall *CompositorGoToBack)();
2548 void (__stdcall *CompositorQuit)();
2549 bool (__stdcall *IsFullscreen)();
2550 uint32_t (__stdcall *GetCurrentSceneFocusProcess)();
2551 uint32_t (__stdcall *GetLastFrameRenderer)();
2552 bool (__stdcall *CanRenderScene)();
2553 void (__stdcall *ShowMirrorWindow)();
2554 void (__stdcall *HideMirrorWindow)();
2555 bool (__stdcall *IsMirrorWindowVisible)();
2556 void (__stdcall *CompositorDumpImages)();
2557 bool (__stdcall *ShouldAppRenderWithLowResources)();
2558 void (__stdcall *ForceInterleavedReprojectionOn)( bool bOverride );
2559 void (__stdcall *ForceReconnectProcess)();
2560 void (__stdcall *SuspendRendering)( bool bSuspend );
2561 vr::EVRCompositorError (__stdcall *GetMirrorTextureD3D11)( vr::EVREye eEye, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView );
2562 void (__stdcall *ReleaseMirrorTextureD3D11)( void *pD3D11ShaderResourceView );
2563 vr::EVRCompositorError (__stdcall *GetMirrorTextureGL)( vr::EVREye eEye, vr::glUInt_t *pglTextureId, vr::glSharedTextureHandle_t *pglSharedTextureHandle );
2564 bool (__stdcall *ReleaseSharedGLTexture)( vr::glUInt_t glTextureId, vr::glSharedTextureHandle_t glSharedTextureHandle );
2565 void (__stdcall *LockGLSharedTextureForAccess)( vr::glSharedTextureHandle_t glSharedTextureHandle );
2566 void (__stdcall *UnlockGLSharedTextureForAccess)( vr::glSharedTextureHandle_t glSharedTextureHandle );
2567 uint32_t (__stdcall *GetVulkanInstanceExtensionsRequired)( char *pchValue, uint32_t unBufferSize );
2568 uint32_t (__stdcall *GetVulkanDeviceExtensionsRequired)( VkPhysicalDevice_T *pPhysicalDevice, char *pchValue, uint32_t unBufferSize );
2569 void (__stdcall *SetExplicitTimingMode)( EVRCompositorTimingMode eTimingMode );
2570 EVRCompositorError (__stdcall *SubmitExplicitTimingData)();
2571};
2572
2574{
2576public:
2578 void SetTrackingSpace( ETrackingUniverseOrigin eOrigin ) { _table.SetTrackingSpace(eOrigin); }
2579
2581 ETrackingUniverseOrigin GetTrackingSpace() { return _table.GetTrackingSpace(); }
2582
2591 EVRCompositorError WaitGetPoses( VR_ARRAY_COUNT(unRenderPoseArrayCount) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount,
2592 VR_ARRAY_COUNT(unGamePoseArrayCount) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) { return _table.WaitGetPoses(pRenderPoseArray, unRenderPoseArrayCount, pGamePoseArray, unGamePoseArrayCount); }
2593
2595 EVRCompositorError GetLastPoses( VR_ARRAY_COUNT( unRenderPoseArrayCount ) TrackedDevicePose_t* pRenderPoseArray, uint32_t unRenderPoseArrayCount,
2596 VR_ARRAY_COUNT( unGamePoseArrayCount ) TrackedDevicePose_t* pGamePoseArray, uint32_t unGamePoseArrayCount ) { return _table.GetLastPoses(pRenderPoseArray, unRenderPoseArrayCount, pGamePoseArray, unGamePoseArrayCount); }
2597
2601 EVRCompositorError GetLastPoseForTrackedDeviceIndex( TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t *pOutputPose, TrackedDevicePose_t *pOutputGamePose ) { return _table.GetLastPoseForTrackedDeviceIndex(unDeviceIndex, pOutputPose, pOutputGamePose); }
2602
2618 EVRCompositorError Submit( EVREye eEye, const Texture_t *pTexture, const VRTextureBounds_t* pBounds = 0, EVRSubmitFlags nSubmitFlags = Submit_Default ) { return _table.Submit(eEye, pTexture, pBounds, nSubmitFlags); }
2619
2622 void ClearLastSubmittedFrame() { _table.ClearLastSubmittedFrame(); }
2623
2629 void PostPresentHandoff() { _table.PostPresentHandoff(); }
2630
2633 bool GetFrameTiming( Compositor_FrameTiming *pTiming, uint32_t unFramesAgo = 0 ) { return _table.GetFrameTiming(pTiming, unFramesAgo); }
2634
2637 uint32_t GetFrameTimings( Compositor_FrameTiming *pTiming, uint32_t nFrames ) { return _table.GetFrameTimings(pTiming, nFrames); }
2638
2641 float GetFrameTimeRemaining() { return _table.GetFrameTimeRemaining(); }
2642
2644 void GetCumulativeStats( Compositor_CumulativeStats *pStats, uint32_t nStatsSizeInBytes ) { _table.GetCumulativeStats(pStats, nStatsSizeInBytes); }
2645
2649 void FadeToColor( float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground = false ) { _table.FadeToColor(fSeconds, fRed, fGreen, fBlue, fAlpha, bBackground); }
2650
2652 HmdColor_t GetCurrentFadeColor( bool bBackground = false ) { return _table.GetCurrentFadeColor(bBackground); }
2653
2655 void FadeGrid( float fSeconds, bool bFadeIn ) { _table.FadeGrid(fSeconds, bFadeIn); }
2656
2658 float GetCurrentGridAlpha() { return _table.GetCurrentGridAlpha(); }
2659
2663 EVRCompositorError SetSkyboxOverride( VR_ARRAY_COUNT( unTextureCount ) const Texture_t *pTextures, uint32_t unTextureCount ) { return _table.SetSkyboxOverride(pTextures, unTextureCount); }
2664
2666 void ClearSkyboxOverride() { _table.ClearSkyboxOverride(); }
2667
2670 void CompositorBringToFront() { _table.CompositorBringToFront(); }
2671
2673 void CompositorGoToBack() { _table.CompositorGoToBack(); }
2674
2677 void CompositorQuit() { _table.CompositorQuit(); }
2678
2680 bool IsFullscreen() { return _table.IsFullscreen(); }
2681
2683 uint32_t GetCurrentSceneFocusProcess() { return _table.GetCurrentSceneFocusProcess(); }
2684
2687 uint32_t GetLastFrameRenderer() { return _table.GetLastFrameRenderer(); }
2688
2690 bool CanRenderScene() { return _table.CanRenderScene(); }
2691
2693 void ShowMirrorWindow() { _table.ShowMirrorWindow(); }
2694
2696 void HideMirrorWindow() { _table.HideMirrorWindow(); }
2697
2699 bool IsMirrorWindowVisible() { return _table.IsMirrorWindowVisible(); }
2700
2702 void CompositorDumpImages() { _table.CompositorDumpImages(); }
2703
2705 bool ShouldAppRenderWithLowResources() { return _table.ShouldAppRenderWithLowResources(); }
2706
2708 void ForceInterleavedReprojectionOn( bool bOverride ) { _table.ForceInterleavedReprojectionOn(bOverride); }
2709
2711 void ForceReconnectProcess() { _table.ForceReconnectProcess(); }
2712
2714 void SuspendRendering( bool bSuspend ) { _table.SuspendRendering(bSuspend); }
2715
2718 vr::EVRCompositorError GetMirrorTextureD3D11( vr::EVREye eEye, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView ) { return _table.GetMirrorTextureD3D11(eEye, pD3D11DeviceOrResource, ppD3D11ShaderResourceView); }
2719 void ReleaseMirrorTextureD3D11( void *pD3D11ShaderResourceView ) { _table.ReleaseMirrorTextureD3D11(pD3D11ShaderResourceView); }
2720
2722 vr::EVRCompositorError GetMirrorTextureGL( vr::EVREye eEye, vr::glUInt_t *pglTextureId, vr::glSharedTextureHandle_t *pglSharedTextureHandle ) { return _table.GetMirrorTextureGL(eEye, pglTextureId, pglSharedTextureHandle); }
2723 bool ReleaseSharedGLTexture( vr::glUInt_t glTextureId, vr::glSharedTextureHandle_t glSharedTextureHandle ) { return _table.ReleaseSharedGLTexture(glTextureId, glSharedTextureHandle); }
2724 void LockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) { _table.LockGLSharedTextureForAccess(glSharedTextureHandle); }
2725 void UnlockGLSharedTextureForAccess( vr::glSharedTextureHandle_t glSharedTextureHandle ) { _table.UnlockGLSharedTextureForAccess(glSharedTextureHandle); }
2726
2730 uint32_t GetVulkanInstanceExtensionsRequired( VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) { return _table.GetVulkanInstanceExtensionsRequired(pchValue, unBufferSize); }
2731
2735 uint32_t GetVulkanDeviceExtensionsRequired( VkPhysicalDevice_T *pPhysicalDevice, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) { return _table.GetVulkanDeviceExtensionsRequired(pPhysicalDevice, pchValue, unBufferSize); }
2736
2755 void SetExplicitTimingMode( EVRCompositorTimingMode eTimingMode ) { _table.SetExplicitTimingMode(eTimingMode); }
2756
2763 EVRCompositorError SubmitExplicitTimingData() { return _table.SubmitExplicitTimingData(); }
2764};
2765
2766static const char * const IVRCompositor_Version = "FnTable:IVRCompositor_022";
2767
2768} // namespace vr
2769
2770
2771
2772// ivrnotifications.h
2773namespace vr
2774{
2775
2776#pragma pack( push, 8 )
2777
2778// Used for passing graphic data
2780{
2782 : m_pImageData( nullptr )
2783 , m_nWidth( 0 )
2784 , m_nHeight( 0 )
2785 , m_nBytesPerPixel( 0 )
2786 {
2787 };
2788
2790 int32_t m_nWidth;
2791 int32_t m_nHeight;
2793};
2794
2795
2812
2830
2831static const uint32_t k_unNotificationTextMaxSize = 256;
2832
2833typedef uint32_t VRNotificationId;
2834
2835
2836
2837#pragma pack( pop )
2838
2842{
2844 EVRNotificationError (__stdcall *RemoveNotification)( VRNotificationId notificationId );
2845};
2846
2848{
2850public:
2855 EVRNotificationError CreateNotification( VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, const char *pchText, EVRNotificationStyle style, const NotificationBitmap_t *pImage, /* out */ VRNotificationId *pNotificationId ) { return _table.CreateNotification(ulOverlayHandle, ulUserValue, type, pchText, style, pImage, pNotificationId); }
2856
2858 EVRNotificationError RemoveNotification( VRNotificationId notificationId ) { return _table.RemoveNotification(notificationId); }
2859
2860};
2861
2862static const char * const IVRNotifications_Version = "FnTable:IVRNotifications_002";
2863
2864} // namespace vr
2865
2866
2867
2868// ivroverlay.h
2869namespace vr
2870{
2871
2873 static const uint32_t k_unVROverlayMaxKeyLength = 128;
2874
2876 static const uint32_t k_unVROverlayMaxNameLength = 128;
2877
2879 static const uint32_t k_unMaxOverlayCount = 64;
2880
2882 static const uint32_t k_unMaxOverlayIntersectionMaskPrimitivesCount = 32;
2883
2886 {
2887 VROverlayInputMethod_None = 0, // No input events will be generated automatically for this overlay
2888 VROverlayInputMethod_Mouse = 1, // Tracked controllers will get mouse events automatically
2889 VROverlayInputMethod_DualAnalog = 2, // Analog inputs from tracked controllers are turned into DualAnalog events
2890 };
2891
2900
2903 {
2905
2906 // The following only take effect when rendered using the high quality render path (see SetHighQualityOverlay).
2909
2910 // Set this flag on a dashboard overlay to prevent a tab from showing up for that overlay
2912
2913 // Set this flag on a dashboard that is able to deal with gamepad focus events
2915
2916 // Indicates that the overlay should dim/brighten to show gamepad focus
2918
2919 // When in VROverlayInputMethod_Mouse you can optionally enable sending VRScroll_t
2922
2923 // If set this will render a vertical scroll wheel on the primary controller,
2924 // only needed if not using VROverlayFlags_SendVRScrollEvents but you still want to represent a scroll wheel
2926
2927 // If this is set ownership and render access to the overlay are transferred
2928 // to the new scene process on a call to IVRApplications::LaunchInternalProcess
2930
2931 // If set, renders 50% of the texture in each eye, side by side
2932 VROverlayFlags_SideBySide_Parallel = 10, // Texture is left/right
2933 VROverlayFlags_SideBySide_Crossed = 11, // Texture is crossed and right/left
2934
2935 VROverlayFlags_Panorama = 12, // Texture is a panorama
2936 VROverlayFlags_StereoPanorama = 13, // Texture is a stereo panorama
2937
2938 // If this is set on an overlay owned by the scene application that overlay
2939 // will be sorted with the "Other" overlays on top of all other scene overlays
2941
2942 // If set, the overlay will be shown in the dashboard, otherwise it will be hidden.
2944 };
2945
2956
2963
2971
2972 // Input modes for the Big Picture gamepad text entry
2979
2980 // Controls number of allowed lines for the Big Picture gamepad text entry
2986
2997
3003
3011
3018
3025
3031
3033 {
3034 EVROverlayError (__stdcall *FindOverlay)( const char *pchOverlayKey, VROverlayHandle_t * pOverlayHandle );
3035 EVROverlayError (__stdcall *CreateOverlay)( const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t * pOverlayHandle );
3036 EVROverlayError (__stdcall *DestroyOverlay)( VROverlayHandle_t ulOverlayHandle );
3037 EVROverlayError (__stdcall *SetHighQualityOverlay)( VROverlayHandle_t ulOverlayHandle );
3038 vr::VROverlayHandle_t (__stdcall *GetHighQualityOverlay)();
3039 uint32_t (__stdcall *GetOverlayKey)( VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, EVROverlayError *pError);
3040 uint32_t (__stdcall *GetOverlayName)( VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, EVROverlayError *pError);
3041 EVROverlayError (__stdcall *SetOverlayName)( VROverlayHandle_t ulOverlayHandle, const char *pchName );
3042 EVROverlayError (__stdcall *GetOverlayImageData)( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight );
3044 EVROverlayError (__stdcall *SetOverlayRenderingPid)( VROverlayHandle_t ulOverlayHandle, uint32_t unPID );
3045 uint32_t (__stdcall *GetOverlayRenderingPid)( VROverlayHandle_t ulOverlayHandle );
3046 EVROverlayError (__stdcall *SetOverlayFlag)( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled );
3047 EVROverlayError (__stdcall *GetOverlayFlag)( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled );
3048 EVROverlayError (__stdcall *SetOverlayColor)( VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue );
3049 EVROverlayError (__stdcall *GetOverlayColor)( VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue );
3050 EVROverlayError (__stdcall *SetOverlayAlpha)( VROverlayHandle_t ulOverlayHandle, float fAlpha );
3051 EVROverlayError (__stdcall *GetOverlayAlpha)( VROverlayHandle_t ulOverlayHandle, float *pfAlpha );
3052 EVROverlayError (__stdcall *SetOverlayTexelAspect)( VROverlayHandle_t ulOverlayHandle, float fTexelAspect );
3053 EVROverlayError (__stdcall *GetOverlayTexelAspect)( VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect );
3054 EVROverlayError (__stdcall *SetOverlaySortOrder)( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder );
3055 EVROverlayError (__stdcall *GetOverlaySortOrder)( VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder );
3056 EVROverlayError (__stdcall *SetOverlayWidthInMeters)( VROverlayHandle_t ulOverlayHandle, float fWidthInMeters );
3057 EVROverlayError (__stdcall *GetOverlayWidthInMeters)( VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters );
3058 EVROverlayError (__stdcall *SetOverlayAutoCurveDistanceRangeInMeters)( VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters );
3059 EVROverlayError (__stdcall *GetOverlayAutoCurveDistanceRangeInMeters)( VROverlayHandle_t ulOverlayHandle, float *pfMinDistanceInMeters, float *pfMaxDistanceInMeters );
3060 EVROverlayError (__stdcall *SetOverlayTextureColorSpace)( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace );
3061 EVROverlayError (__stdcall *GetOverlayTextureColorSpace)( VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace );
3062 EVROverlayError (__stdcall *SetOverlayTextureBounds)( VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds );
3063 EVROverlayError (__stdcall *GetOverlayTextureBounds)( VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds );
3064 uint32_t (__stdcall *GetOverlayRenderModel)( vr::VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, HmdColor_t *pColor, vr::EVROverlayError *pError );
3065 vr::EVROverlayError (__stdcall *SetOverlayRenderModel)( vr::VROverlayHandle_t ulOverlayHandle, const char *pchRenderModel, const HmdColor_t *pColor );
3066 EVROverlayError (__stdcall *GetOverlayTransformType)( VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType );
3069 EVROverlayError (__stdcall *SetOverlayTransformTrackedDeviceRelative)( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform );
3070 EVROverlayError (__stdcall *GetOverlayTransformTrackedDeviceRelative)( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform );
3071 EVROverlayError (__stdcall *SetOverlayTransformTrackedDeviceComponent)( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName );
3072 EVROverlayError (__stdcall *GetOverlayTransformTrackedDeviceComponent)( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, char *pchComponentName, uint32_t unComponentNameSize );
3075 EVROverlayError (__stdcall *ShowOverlay)( VROverlayHandle_t ulOverlayHandle );
3076 EVROverlayError (__stdcall *HideOverlay)( VROverlayHandle_t ulOverlayHandle );
3077 bool (__stdcall *IsOverlayVisible)( VROverlayHandle_t ulOverlayHandle );
3079 bool (__stdcall *PollNextOverlayEvent)( VROverlayHandle_t ulOverlayHandle, VREvent_t *pEvent, uint32_t uncbVREvent );
3080 EVROverlayError (__stdcall *GetOverlayInputMethod)( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod );
3081 EVROverlayError (__stdcall *SetOverlayInputMethod)( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod );
3082 EVROverlayError (__stdcall *GetOverlayMouseScale)( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale );
3083 EVROverlayError (__stdcall *SetOverlayMouseScale)( VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale );
3084 bool (__stdcall *ComputeOverlayIntersection)( VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults );
3085 bool (__stdcall *IsHoverTargetOverlay)( VROverlayHandle_t ulOverlayHandle );
3086 vr::VROverlayHandle_t (__stdcall *GetGamepadFocusOverlay)();
3087 EVROverlayError (__stdcall *SetGamepadFocusOverlay)( VROverlayHandle_t ulNewFocusOverlay );
3088 EVROverlayError (__stdcall *SetOverlayNeighbor)( EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo );
3089 EVROverlayError (__stdcall *MoveGamepadFocusToNeighbor)( EOverlayDirection eDirection, VROverlayHandle_t ulFrom );
3090 EVROverlayError (__stdcall *SetOverlayDualAnalogTransform)( VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, const HmdVector2_t & vCenter, float fRadius );
3091 EVROverlayError (__stdcall *GetOverlayDualAnalogTransform)( VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, HmdVector2_t *pvCenter, float *pfRadius );
3092 EVROverlayError (__stdcall *SetOverlayTexture)( VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture );
3093 EVROverlayError (__stdcall *ClearOverlayTexture)( VROverlayHandle_t ulOverlayHandle );
3094 EVROverlayError (__stdcall *SetOverlayRaw)( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth );
3095 EVROverlayError (__stdcall *SetOverlayFromFile)( VROverlayHandle_t ulOverlayHandle, const char *pchFilePath );
3097 EVROverlayError (__stdcall *ReleaseNativeOverlayHandle)( VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle );
3098 EVROverlayError (__stdcall *GetOverlayTextureSize)( VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight );
3099 EVROverlayError (__stdcall *CreateDashboardOverlay)( const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t *pThumbnailHandle );
3100 bool (__stdcall *IsDashboardVisible)();
3101 bool (__stdcall *IsActiveDashboardOverlay)( VROverlayHandle_t ulOverlayHandle );
3102 EVROverlayError (__stdcall *SetDashboardOverlaySceneProcess)( VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId );
3103 EVROverlayError (__stdcall *GetDashboardOverlaySceneProcess)( VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId );
3104 void (__stdcall *ShowDashboard)( const char *pchOverlayToShow );
3105 vr::TrackedDeviceIndex_t (__stdcall *GetPrimaryDashboardDevice)();
3108 uint32_t (__stdcall *GetKeyboardText)( char *pchText, uint32_t cchText );
3109 void (__stdcall *HideKeyboard)();
3111 void (__stdcall *SetKeyboardPositionForOverlay)( VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect );
3113 EVROverlayError (__stdcall *GetOverlayFlags)( VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags );
3114 VRMessageOverlayResponse (__stdcall *ShowMessageOverlay)( const char* pchText, const char* pchCaption, const char* pchButton0Text, const char* pchButton1Text, const char* pchButton2Text, const char* pchButton3Text);
3115 void (__stdcall *CloseMessageOverlay)();
3116 };
3117
3119 {
3120 VR_IVROverlay_FnTable _table;
3121 public:
3122
3123 // ---------------------------------------------
3124 // Overlay management methods
3125 // ---------------------------------------------
3126
3128 EVROverlayError FindOverlay( const char *pchOverlayKey, VROverlayHandle_t * pOverlayHandle ) { return _table.FindOverlay(pchOverlayKey, pOverlayHandle); }
3129
3131 EVROverlayError CreateOverlay( const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t * pOverlayHandle ) { return _table.CreateOverlay(pchOverlayKey, pchOverlayName, pOverlayHandle); }
3132
3135 EVROverlayError DestroyOverlay( VROverlayHandle_t ulOverlayHandle ) { return _table.DestroyOverlay(ulOverlayHandle); }
3136
3142 EVROverlayError SetHighQualityOverlay( VROverlayHandle_t ulOverlayHandle ) { return _table.SetHighQualityOverlay(ulOverlayHandle); }
3143
3146 vr::VROverlayHandle_t GetHighQualityOverlay() { return _table.GetHighQualityOverlay(); }
3147
3150 uint32_t GetOverlayKey( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) { return _table.GetOverlayKey(ulOverlayHandle, pchValue, unBufferSize, pError); }
3151
3154 uint32_t GetOverlayName( VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError = 0L ) { return _table.GetOverlayName(ulOverlayHandle, pchValue, unBufferSize, pError); }
3155
3157 EVROverlayError SetOverlayName( VROverlayHandle_t ulOverlayHandle, const char *pchName ) { return _table.SetOverlayName(ulOverlayHandle, pchName); }
3158
3161 EVROverlayError GetOverlayImageData( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight ) { return _table.GetOverlayImageData(ulOverlayHandle, pvBuffer, unBufferSize, punWidth, punHeight); }
3162
3165 const char *GetOverlayErrorNameFromEnum( EVROverlayError error ) { return _table.GetOverlayErrorNameFromEnum(error); }
3166
3167 // ---------------------------------------------
3168 // Overlay rendering methods
3169 // ---------------------------------------------
3170
3173 EVROverlayError SetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle, uint32_t unPID ) { return _table.SetOverlayRenderingPid(ulOverlayHandle, unPID); }
3174
3176 uint32_t GetOverlayRenderingPid( VROverlayHandle_t ulOverlayHandle ) { return _table.GetOverlayRenderingPid(ulOverlayHandle); }
3177
3179 EVROverlayError SetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled ) { return _table.SetOverlayFlag(ulOverlayHandle, eOverlayFlag, bEnabled); }
3180
3182 EVROverlayError GetOverlayFlag( VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled ) { return _table.GetOverlayFlag(ulOverlayHandle, eOverlayFlag, pbEnabled); }
3183
3185 EVROverlayError SetOverlayColor( VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue ) { return _table.SetOverlayColor(ulOverlayHandle, fRed, fGreen, fBlue); }
3186
3188 EVROverlayError GetOverlayColor( VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue ) { return _table.GetOverlayColor(ulOverlayHandle, pfRed, pfGreen, pfBlue); }
3189
3191 EVROverlayError SetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float fAlpha ) { return _table.SetOverlayAlpha(ulOverlayHandle, fAlpha); }
3192
3194 EVROverlayError GetOverlayAlpha( VROverlayHandle_t ulOverlayHandle, float *pfAlpha ) { return _table.GetOverlayAlpha(ulOverlayHandle, pfAlpha); }
3195
3198 EVROverlayError SetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float fTexelAspect ) { return _table.SetOverlayTexelAspect(ulOverlayHandle, fTexelAspect); }
3199
3201 EVROverlayError GetOverlayTexelAspect( VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect ) { return _table.GetOverlayTexelAspect(ulOverlayHandle, pfTexelAspect); }
3202
3211 EVROverlayError SetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder ) { return _table.SetOverlaySortOrder(ulOverlayHandle, unSortOrder); }
3212
3214 EVROverlayError GetOverlaySortOrder( VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder ) { return _table.GetOverlaySortOrder(ulOverlayHandle, punSortOrder); }
3215
3217 EVROverlayError SetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float fWidthInMeters ) { return _table.SetOverlayWidthInMeters(ulOverlayHandle, fWidthInMeters); }
3218
3220 EVROverlayError GetOverlayWidthInMeters( VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters ) { return _table.GetOverlayWidthInMeters(ulOverlayHandle, pfWidthInMeters); }
3221
3224 EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters ) { return _table.SetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle, fMinDistanceInMeters, fMaxDistanceInMeters); }
3225
3228 EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters( VROverlayHandle_t ulOverlayHandle, float *pfMinDistanceInMeters, float *pfMaxDistanceInMeters ) { return _table.GetOverlayAutoCurveDistanceRangeInMeters(ulOverlayHandle, pfMinDistanceInMeters, pfMaxDistanceInMeters); }
3229
3232 EVROverlayError SetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace ) { return _table.SetOverlayTextureColorSpace(ulOverlayHandle, eTextureColorSpace); }
3233
3235 EVROverlayError GetOverlayTextureColorSpace( VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace ) { return _table.GetOverlayTextureColorSpace(ulOverlayHandle, peTextureColorSpace); }
3236
3238 EVROverlayError SetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds ) { return _table.SetOverlayTextureBounds(ulOverlayHandle, pOverlayTextureBounds); }
3239
3241 EVROverlayError GetOverlayTextureBounds( VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds ) { return _table.GetOverlayTextureBounds(ulOverlayHandle, pOverlayTextureBounds); }
3242
3244 uint32_t GetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, HmdColor_t *pColor, vr::EVROverlayError *pError ) { return _table.GetOverlayRenderModel(ulOverlayHandle, pchValue, unBufferSize, pColor, pError); }
3245
3248 vr::EVROverlayError SetOverlayRenderModel( vr::VROverlayHandle_t ulOverlayHandle, const char *pchRenderModel, const HmdColor_t *pColor ) { return _table.SetOverlayRenderModel(ulOverlayHandle, pchRenderModel, pColor); }
3249
3251 EVROverlayError GetOverlayTransformType( VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType ) { return _table.GetOverlayTransformType(ulOverlayHandle, peTransformType); }
3252
3254 EVROverlayError SetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) { return _table.SetOverlayTransformAbsolute(ulOverlayHandle, eTrackingOrigin, pmatTrackingOriginToOverlayTransform); }
3255
3257 EVROverlayError GetOverlayTransformAbsolute( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin *peTrackingOrigin, HmdMatrix34_t *pmatTrackingOriginToOverlayTransform ) { return _table.GetOverlayTransformAbsolute(ulOverlayHandle, peTrackingOrigin, pmatTrackingOriginToOverlayTransform); }
3258
3260 EVROverlayError SetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) { return _table.SetOverlayTransformTrackedDeviceRelative(ulOverlayHandle, unTrackedDevice, pmatTrackedDeviceToOverlayTransform); }
3261
3263 EVROverlayError GetOverlayTransformTrackedDeviceRelative( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform ) { return _table.GetOverlayTransformTrackedDeviceRelative(ulOverlayHandle, punTrackedDevice, pmatTrackedDeviceToOverlayTransform); }
3264
3267 EVROverlayError SetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName ) { return _table.SetOverlayTransformTrackedDeviceComponent(ulOverlayHandle, unDeviceIndex, pchComponentName); }
3268
3270 EVROverlayError GetOverlayTransformTrackedDeviceComponent( VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, VR_OUT_STRING() char *pchComponentName, uint32_t unComponentNameSize ) { return _table.GetOverlayTransformTrackedDeviceComponent(ulOverlayHandle, punDeviceIndex, pchComponentName, unComponentNameSize); }
3271
3273 vr::EVROverlayError GetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t *ulOverlayHandleParent, HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) { return _table.GetOverlayTransformOverlayRelative(ulOverlayHandle, ulOverlayHandleParent, pmatParentOverlayToOverlayTransform); }
3274
3276 vr::EVROverlayError SetOverlayTransformOverlayRelative( VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, const HmdMatrix34_t *pmatParentOverlayToOverlayTransform ) { return _table.SetOverlayTransformOverlayRelative(ulOverlayHandle, ulOverlayHandleParent, pmatParentOverlayToOverlayTransform); }
3277
3279 EVROverlayError ShowOverlay( VROverlayHandle_t ulOverlayHandle ) { return _table.ShowOverlay(ulOverlayHandle); }
3280
3282 EVROverlayError HideOverlay( VROverlayHandle_t ulOverlayHandle ) { return _table.HideOverlay(ulOverlayHandle); }
3283
3285 bool IsOverlayVisible( VROverlayHandle_t ulOverlayHandle ) { return _table.IsOverlayVisible(ulOverlayHandle); }
3286
3288 EVROverlayError GetTransformForOverlayCoordinates( VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform ) { return _table.GetTransformForOverlayCoordinates(ulOverlayHandle, eTrackingOrigin, coordinatesInOverlay, pmatTransform); }
3289
3290 // ---------------------------------------------
3291 // Overlay input methods
3292 // ---------------------------------------------
3293
3296 bool PollNextOverlayEvent( VROverlayHandle_t ulOverlayHandle, VREvent_t *pEvent, uint32_t uncbVREvent ) { return _table.PollNextOverlayEvent(ulOverlayHandle, pEvent, uncbVREvent); }
3297
3299 EVROverlayError GetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod ) { return _table.GetOverlayInputMethod(ulOverlayHandle, peInputMethod); }
3300
3302 EVROverlayError SetOverlayInputMethod( VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod ) { return _table.SetOverlayInputMethod(ulOverlayHandle, eInputMethod); }
3303
3306 EVROverlayError GetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale ) { return _table.GetOverlayMouseScale(ulOverlayHandle, pvecMouseScale); }
3307
3310 EVROverlayError SetOverlayMouseScale( VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale ) { return _table.SetOverlayMouseScale(ulOverlayHandle, pvecMouseScale); }
3311
3314 bool ComputeOverlayIntersection( VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults ) { return _table.ComputeOverlayIntersection(ulOverlayHandle, pParams, pResults); }
3315
3318 bool IsHoverTargetOverlay( VROverlayHandle_t ulOverlayHandle ) { return _table.IsHoverTargetOverlay(ulOverlayHandle); }
3319
3321 vr::VROverlayHandle_t GetGamepadFocusOverlay() { return _table.GetGamepadFocusOverlay(); }
3322
3324 EVROverlayError SetGamepadFocusOverlay( VROverlayHandle_t ulNewFocusOverlay ) { return _table.SetGamepadFocusOverlay(ulNewFocusOverlay); }
3325
3329 EVROverlayError SetOverlayNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo ) { return _table.SetOverlayNeighbor(eDirection, ulFrom, ulTo); }
3330
3333 EVROverlayError MoveGamepadFocusToNeighbor( EOverlayDirection eDirection, VROverlayHandle_t ulFrom ) { return _table.MoveGamepadFocusToNeighbor(eDirection, ulFrom); }
3334
3336 EVROverlayError SetOverlayDualAnalogTransform( VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, const HmdVector2_t & vCenter, float fRadius ) { return _table.SetOverlayDualAnalogTransform(ulOverlay, eWhich, vCenter, fRadius); }
3337
3339 EVROverlayError GetOverlayDualAnalogTransform( VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, HmdVector2_t *pvCenter, float *pfRadius ) { return _table.GetOverlayDualAnalogTransform(ulOverlay, eWhich, pvCenter, pfRadius); }
3340
3341 // ---------------------------------------------
3342 // Overlay texture methods
3343 // ---------------------------------------------
3344
3350 EVROverlayError SetOverlayTexture( VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture ) { return _table.SetOverlayTexture(ulOverlayHandle, pTexture); }
3351
3353 EVROverlayError ClearOverlayTexture( VROverlayHandle_t ulOverlayHandle ) { return _table.ClearOverlayTexture(ulOverlayHandle); }
3354
3357 EVROverlayError SetOverlayRaw( VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth ) { return _table.SetOverlayRaw(ulOverlayHandle, pvBuffer, unWidth, unHeight, unDepth); }
3358
3361 EVROverlayError SetOverlayFromFile( VROverlayHandle_t ulOverlayHandle, const char *pchFilePath ) { return _table.SetOverlayFromFile(ulOverlayHandle, pchFilePath); }
3362
3373 EVROverlayError GetOverlayTexture( VROverlayHandle_t ulOverlayHandle, void **pNativeTextureHandle, void *pNativeTextureRef, uint32_t *pWidth, uint32_t *pHeight, uint32_t *pNativeFormat, ETextureType *pAPIType, EColorSpace *pColorSpace, VRTextureBounds_t *pTextureBounds ) { return _table.GetOverlayTexture(ulOverlayHandle, pNativeTextureHandle, pNativeTextureRef, pWidth, pHeight, pNativeFormat, pAPIType, pColorSpace, pTextureBounds); }
3374
3378 EVROverlayError ReleaseNativeOverlayHandle( VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle ) { return _table.ReleaseNativeOverlayHandle(ulOverlayHandle, pNativeTextureHandle); }
3379
3381 EVROverlayError GetOverlayTextureSize( VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight ) { return _table.GetOverlayTextureSize(ulOverlayHandle, pWidth, pHeight); }
3382
3383 // ----------------------------------------------
3384 // Dashboard Overlay Methods
3385 // ----------------------------------------------
3386
3388 EVROverlayError CreateDashboardOverlay( const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t * pMainHandle, VROverlayHandle_t *pThumbnailHandle ) { return _table.CreateDashboardOverlay(pchOverlayKey, pchOverlayFriendlyName, pMainHandle, pThumbnailHandle); }
3389
3391 bool IsDashboardVisible() { return _table.IsDashboardVisible(); }
3392
3394 bool IsActiveDashboardOverlay( VROverlayHandle_t ulOverlayHandle ) { return _table.IsActiveDashboardOverlay(ulOverlayHandle); }
3395
3397 EVROverlayError SetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId ) { return _table.SetDashboardOverlaySceneProcess(ulOverlayHandle, unProcessId); }
3398
3400 EVROverlayError GetDashboardOverlaySceneProcess( VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId ) { return _table.GetDashboardOverlaySceneProcess(ulOverlayHandle, punProcessId); }
3401
3403 void ShowDashboard( const char *pchOverlayToShow ) { _table.ShowDashboard(pchOverlayToShow); }
3404
3406 vr::TrackedDeviceIndex_t GetPrimaryDashboardDevice() { return _table.GetPrimaryDashboardDevice(); }
3407
3408 // ---------------------------------------------
3409 // Keyboard methods
3410 // ---------------------------------------------
3411
3413 EVROverlayError ShowKeyboard( EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) { return _table.ShowKeyboard(eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText, bUseMinimalMode, uUserValue); }
3414
3415 EVROverlayError ShowKeyboardForOverlay( VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue ) { return _table.ShowKeyboardForOverlay(ulOverlayHandle, eInputMode, eLineInputMode, pchDescription, unCharMax, pchExistingText, bUseMinimalMode, uUserValue); }
3416
3418 uint32_t GetKeyboardText( VR_OUT_STRING() char *pchText, uint32_t cchText ) { return _table.GetKeyboardText(pchText, cchText); }
3419
3421 void HideKeyboard() { _table.HideKeyboard(); }
3422
3424 void SetKeyboardTransformAbsolute( ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToKeyboardTransform ) { _table.SetKeyboardTransformAbsolute(eTrackingOrigin, pmatTrackingOriginToKeyboardTransform); }
3425
3427 void SetKeyboardPositionForOverlay( VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect ) { _table.SetKeyboardPositionForOverlay(ulOverlayHandle, avoidRect); }
3428
3429 // ---------------------------------------------
3430 // Overlay input methods
3431 // ---------------------------------------------
3432
3435 EVROverlayError SetOverlayIntersectionMask( VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t *pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize = sizeof( VROverlayIntersectionMaskPrimitive_t ) ) { return _table.SetOverlayIntersectionMask(ulOverlayHandle, pMaskPrimitives, unNumMaskPrimitives, unPrimitiveSize); }
3436
3437 EVROverlayError GetOverlayFlags( VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags ) { return _table.GetOverlayFlags(ulOverlayHandle, pFlags); }
3438
3439 // ---------------------------------------------
3440 // Message box methods
3441 // ---------------------------------------------
3442
3444 VRMessageOverlayResponse ShowMessageOverlay( const char* pchText, const char* pchCaption, const char* pchButton0Text, const char* pchButton1Text = nullptr, const char* pchButton2Text = nullptr, const char* pchButton3Text = nullptr ) { return _table.ShowMessageOverlay(pchText, pchCaption, pchButton0Text, pchButton1Text, pchButton2Text, pchButton3Text); }
3445
3447 void CloseMessageOverlay() { _table.CloseMessageOverlay(); }
3448 };
3449
3450 static const char * const IVROverlay_Version = "FnTable:IVROverlay_018";
3451
3452} // namespace vr
3453
3454// ivrrendermodels.h
3455namespace vr
3456{
3457
3458static const char * const k_pch_Controller_Component_GDC2015 = "gdc2015"; // Canonical coordinate system of the gdc 2015 wired controller, provided for backwards compatibility
3459static const char * const k_pch_Controller_Component_Base = "base"; // For controllers with an unambiguous 'base'.
3460static const char * const k_pch_Controller_Component_Tip = "tip"; // For controllers with an unambiguous 'tip' (used for 'laser-pointing')
3461static const char * const k_pch_Controller_Component_HandGrip = "handgrip"; // Neutral, ambidextrous hand-pose when holding controller. On plane between neutrally posed index finger and thumb
3462static const char * const k_pch_Controller_Component_Status = "status"; // 1:1 aspect ratio status area, with canonical [0,1] uv mapping
3463
3464#pragma pack( push, 8 )
3465
3484
3485typedef uint32_t VRComponentProperties;
3486
3495
3498{
3499 HmdMatrix34_t mTrackingToComponentRenderModel; // Transform required when drawing the component render model
3500 HmdMatrix34_t mTrackingToComponentLocal; // Transform available for attaching to a local component coordinate system (-Z out from surface )
3502};
3503
3506{
3507 HmdVector3_t vPosition; // position in meters in device space
3510};
3511
3513#if defined(__linux__) || defined(__APPLE__)
3514// This structure was originally defined mis-packed on Linux, preserved for
3515// compatibility.
3516#pragma pack( push, 4 )
3517#endif
3518
3520{
3521 uint16_t unWidth, unHeight; // width and height of the texture map in pixels
3522 const uint8_t *rubTextureMapData; // Map texture data. All textures are RGBA with 8 bits per channel per pixel. Data size is width * height * 4ub
3523};
3524#if defined(__linux__) || defined(__APPLE__)
3525#pragma pack( pop )
3526#endif
3527
3530
3531typedef int32_t TextureID_t;
3532
3534
3535#if defined(__linux__) || defined(__APPLE__)
3536// This structure was originally defined mis-packed on Linux, preserved for
3537// compatibility.
3538#pragma pack( push, 4 )
3539#endif
3540
3542{
3543 const RenderModel_Vertex_t *rVertexData; // Vertex data for the mesh
3544 uint32_t unVertexCount; // Number of vertices in the vertex data
3545 const uint16_t *rIndexData; // Indices into the vertex data for each triangle
3546 uint32_t unTriangleCount; // Number of triangles in the mesh. Index count is 3 * TriangleCount
3547 TextureID_t diffuseTextureId; // Session unique texture identifier. Rendermodels which share the same texture will have the same id. <0 == texture not present
3548};
3549#if defined(__linux__) || defined(__APPLE__)
3550#pragma pack( pop )
3551#endif
3552
3553
3555{
3556 bool bScrollWheelVisible; // is this controller currently set to be in a scroll wheel mode
3557};
3558
3559#pragma pack( pop )
3560
3562{
3563 EVRRenderModelError (__stdcall *LoadRenderModel_Async)( const char *pchRenderModelName, RenderModel_t **ppRenderModel );
3564 void (__stdcall *FreeRenderModel)( RenderModel_t *pRenderModel );
3565 EVRRenderModelError (__stdcall *LoadTexture_Async)( TextureID_t textureId, RenderModel_TextureMap_t **ppTexture );
3566 void (__stdcall *FreeTexture)( RenderModel_TextureMap_t *pTexture );
3567 EVRRenderModelError (__stdcall *LoadTextureD3D11_Async)( TextureID_t textureId, void *pD3D11Device, void **ppD3D11Texture2D );
3568 EVRRenderModelError (__stdcall *LoadIntoTextureD3D11_Async)( TextureID_t textureId, void *pDstTexture );
3569 void (__stdcall *FreeTextureD3D11)( void *pD3D11Texture2D );
3570 uint32_t (__stdcall *GetRenderModelName)( uint32_t unRenderModelIndex, char *pchRenderModelName, uint32_t unRenderModelNameLen );
3571 uint32_t (__stdcall *GetRenderModelCount)();
3572 uint32_t (__stdcall *GetComponentCount)( const char *pchRenderModelName );
3574 uint64_t (__stdcall *GetComponentButtonMask)( const char *pchRenderModelName, const char *pchComponentName );
3575 uint32_t (__stdcall *GetComponentRenderModelName)( const char *pchRenderModelName, const char *pchComponentName, char *pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen );
3577 bool (__stdcall *RenderModelHasComponent)( const char *pchRenderModelName, const char *pchComponentName );
3578 uint32_t (__stdcall *GetRenderModelThumbnailURL)( const char *pchRenderModelName, char *pchThumbnailURL, uint32_t unThumbnailURLLen, vr::EVRRenderModelError *peError );
3579 uint32_t (__stdcall *GetRenderModelOriginalPath)( const char *pchRenderModelName, char *pchOriginalPath, uint32_t unOriginalPathLen, vr::EVRRenderModelError *peError );
3581};
3582
3584{
3586public:
3587
3597 EVRRenderModelError LoadRenderModel_Async( const char *pchRenderModelName, RenderModel_t **ppRenderModel ) { return _table.LoadRenderModel_Async(pchRenderModelName, ppRenderModel); }
3598
3601 void FreeRenderModel( RenderModel_t *pRenderModel ) { _table.FreeRenderModel(pRenderModel); }
3602
3604 EVRRenderModelError LoadTexture_Async( TextureID_t textureId, RenderModel_TextureMap_t **ppTexture ) { return _table.LoadTexture_Async(textureId, ppTexture); }
3605
3608 void FreeTexture( RenderModel_TextureMap_t *pTexture ) { _table.FreeTexture(pTexture); }
3609
3611 EVRRenderModelError LoadTextureD3D11_Async( TextureID_t textureId, void *pD3D11Device, void **ppD3D11Texture2D ) { return _table.LoadTextureD3D11_Async(textureId, pD3D11Device, ppD3D11Texture2D); }
3612
3614 EVRRenderModelError LoadIntoTextureD3D11_Async( TextureID_t textureId, void *pDstTexture ) { return _table.LoadIntoTextureD3D11_Async(textureId, pDstTexture); }
3615
3617 void FreeTextureD3D11( void *pD3D11Texture2D ) { _table.FreeTextureD3D11(pD3D11Texture2D); }
3618
3622 uint32_t GetRenderModelName( uint32_t unRenderModelIndex, VR_OUT_STRING() char *pchRenderModelName, uint32_t unRenderModelNameLen ) { return _table.GetRenderModelName(unRenderModelIndex, pchRenderModelName, unRenderModelNameLen); }
3623
3625 uint32_t GetRenderModelCount() { return _table.GetRenderModelCount(); }
3626
3627
3635 uint32_t GetComponentCount( const char *pchRenderModelName ) { return _table.GetComponentCount(pchRenderModelName); }
3636
3640 uint32_t GetComponentName( const char *pchRenderModelName, uint32_t unComponentIndex, VR_OUT_STRING( ) char *pchComponentName, uint32_t unComponentNameLen ) { return _table.GetComponentName(pchRenderModelName, unComponentIndex, pchComponentName, unComponentNameLen); }
3641
3646 uint64_t GetComponentButtonMask( const char *pchRenderModelName, const char *pchComponentName ) { return _table.GetComponentButtonMask(pchRenderModelName, pchComponentName); }
3647
3651 uint32_t GetComponentRenderModelName( const char *pchRenderModelName, const char *pchComponentName, VR_OUT_STRING( ) char *pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen ) { return _table.GetComponentRenderModelName(pchRenderModelName, pchComponentName, pchComponentRenderModelName, unComponentRenderModelNameLen); }
3652
3661 bool GetComponentState( const char *pchRenderModelName, const char *pchComponentName, const vr::VRControllerState_t *pControllerState, const RenderModel_ControllerMode_State_t *pState, RenderModel_ComponentState_t *pComponentState ) { return _table.GetComponentState(pchRenderModelName, pchComponentName, pControllerState, pState, pComponentState); }
3662
3664 bool RenderModelHasComponent( const char *pchRenderModelName, const char *pchComponentName ) { return _table.RenderModelHasComponent(pchRenderModelName, pchComponentName); }
3665
3667 uint32_t GetRenderModelThumbnailURL( const char *pchRenderModelName, VR_OUT_STRING() char *pchThumbnailURL, uint32_t unThumbnailURLLen, vr::EVRRenderModelError *peError ) { return _table.GetRenderModelThumbnailURL(pchRenderModelName, pchThumbnailURL, unThumbnailURLLen, peError); }
3668
3672 uint32_t GetRenderModelOriginalPath( const char *pchRenderModelName, VR_OUT_STRING() char *pchOriginalPath, uint32_t unOriginalPathLen, vr::EVRRenderModelError *peError ) { return _table.GetRenderModelOriginalPath(pchRenderModelName, pchOriginalPath, unOriginalPathLen, peError); }
3673
3675 const char *GetRenderModelErrorNameFromEnum( vr::EVRRenderModelError error ) { return _table.GetRenderModelErrorNameFromEnum(error); }
3676};
3677
3678static const char * const IVRRenderModels_Version = "FnTable:IVRRenderModels_005";
3679
3680}
3681
3682
3683// ivrextendeddisplay.h
3684namespace vr
3685{
3686
3690 {
3691 void (__stdcall *GetWindowBounds)( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight );
3692 void (__stdcall *GetEyeOutputViewport)( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight );
3693 void (__stdcall *GetDXGIOutputInfo)( int32_t *pnAdapterIndex, int32_t *pnAdapterOutputIndex );
3694 };
3695
3697 {
3699 public:
3700
3702 void GetWindowBounds( int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) { _table.GetWindowBounds(pnX, pnY, pnWidth, pnHeight); }
3703
3705 void GetEyeOutputViewport( EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight ) { _table.GetEyeOutputViewport(eEye, pnX, pnY, pnWidth, pnHeight); }
3706
3711 void GetDXGIOutputInfo( int32_t *pnAdapterIndex, int32_t *pnAdapterOutputIndex ) { _table.GetDXGIOutputInfo(pnAdapterIndex, pnAdapterOutputIndex); }
3712
3713 };
3714
3715 static const char * const IVRExtendedDisplay_Version = "FnTable:IVRExtendedDisplay_001";
3716
3717}
3718
3719
3720// ivrtrackedcamera.h
3721namespace vr
3722{
3723
3725{
3726 const char *(__stdcall *GetCameraErrorNameFromEnum)( vr::EVRTrackedCameraError eCameraError );
3727 vr::EVRTrackedCameraError (__stdcall *HasCamera)( vr::TrackedDeviceIndex_t nDeviceIndex, bool *pHasCamera );
3728 vr::EVRTrackedCameraError (__stdcall *GetCameraFrameSize)( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pnWidth, uint32_t *pnHeight, uint32_t *pnFrameBufferSize );
3729 vr::EVRTrackedCameraError (__stdcall *GetCameraIntrinsics)( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::HmdVector2_t *pFocalLength, vr::HmdVector2_t *pCenter );
3730 vr::EVRTrackedCameraError (__stdcall *GetCameraProjection)( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection );
3731 vr::EVRTrackedCameraError (__stdcall *AcquireVideoStreamingService)( vr::TrackedDeviceIndex_t nDeviceIndex, vr::TrackedCameraHandle_t *pHandle );
3732 vr::EVRTrackedCameraError (__stdcall *ReleaseVideoStreamingService)( vr::TrackedCameraHandle_t hTrackedCamera );
3733 vr::EVRTrackedCameraError (__stdcall *GetVideoStreamFrameBuffer)( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pFrameBuffer, uint32_t nFrameBufferSize, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize );
3734 vr::EVRTrackedCameraError (__stdcall *GetVideoStreamTextureSize)( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::VRTextureBounds_t *pTextureBounds, uint32_t *pnWidth, uint32_t *pnHeight );
3735 vr::EVRTrackedCameraError (__stdcall *GetVideoStreamTextureD3D11)( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize );
3736 vr::EVRTrackedCameraError (__stdcall *GetVideoStreamTextureGL)( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, vr::glUInt_t *pglTextureId, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize );
3737 vr::EVRTrackedCameraError (__stdcall *ReleaseVideoStreamTextureGL)( vr::TrackedCameraHandle_t hTrackedCamera, vr::glUInt_t glTextureId );
3738};
3739
3741{
3743public:
3745 const char *GetCameraErrorNameFromEnum( vr::EVRTrackedCameraError eCameraError ) { return _table.GetCameraErrorNameFromEnum(eCameraError); }
3746
3748 vr::EVRTrackedCameraError HasCamera( vr::TrackedDeviceIndex_t nDeviceIndex, bool *pHasCamera ) { return _table.HasCamera(nDeviceIndex, pHasCamera); }
3749
3751 vr::EVRTrackedCameraError GetCameraFrameSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pnWidth, uint32_t *pnHeight, uint32_t *pnFrameBufferSize ) { return _table.GetCameraFrameSize(nDeviceIndex, eFrameType, pnWidth, pnHeight, pnFrameBufferSize); }
3752
3753 vr::EVRTrackedCameraError GetCameraIntrinsics( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::HmdVector2_t *pFocalLength, vr::HmdVector2_t *pCenter ) { return _table.GetCameraIntrinsics(nDeviceIndex, eFrameType, pFocalLength, pCenter); }
3754
3755 vr::EVRTrackedCameraError GetCameraProjection( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection ) { return _table.GetCameraProjection(nDeviceIndex, eFrameType, flZNear, flZFar, pProjection); }
3756
3761 vr::EVRTrackedCameraError AcquireVideoStreamingService( vr::TrackedDeviceIndex_t nDeviceIndex, vr::TrackedCameraHandle_t *pHandle ) { return _table.AcquireVideoStreamingService(nDeviceIndex, pHandle); }
3762 vr::EVRTrackedCameraError ReleaseVideoStreamingService( vr::TrackedCameraHandle_t hTrackedCamera ) { return _table.ReleaseVideoStreamingService(hTrackedCamera); }
3763
3769 vr::EVRTrackedCameraError GetVideoStreamFrameBuffer( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pFrameBuffer, uint32_t nFrameBufferSize, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) { return _table.GetVideoStreamFrameBuffer(hTrackedCamera, eFrameType, pFrameBuffer, nFrameBufferSize, pFrameHeader, nFrameHeaderSize); }
3770
3772 vr::EVRTrackedCameraError GetVideoStreamTextureSize( vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::VRTextureBounds_t *pTextureBounds, uint32_t *pnWidth, uint32_t *pnHeight ) { return _table.GetVideoStreamTextureSize(nDeviceIndex, eFrameType, pTextureBounds, pnWidth, pnHeight); }
3773
3780 vr::EVRTrackedCameraError GetVideoStreamTextureD3D11( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) { return _table.GetVideoStreamTextureD3D11(hTrackedCamera, eFrameType, pD3D11DeviceOrResource, ppD3D11ShaderResourceView, pFrameHeader, nFrameHeaderSize); }
3781
3783 vr::EVRTrackedCameraError GetVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, vr::glUInt_t *pglTextureId, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize ) { return _table.GetVideoStreamTextureGL(hTrackedCamera, eFrameType, pglTextureId, pFrameHeader, nFrameHeaderSize); }
3784 vr::EVRTrackedCameraError ReleaseVideoStreamTextureGL( vr::TrackedCameraHandle_t hTrackedCamera, vr::glUInt_t glTextureId ) { return _table.ReleaseVideoStreamTextureGL(hTrackedCamera, glTextureId); }
3785};
3786
3787static const char * const IVRTrackedCamera_Version = "FnTable:IVRTrackedCamera_003";
3788
3789} // namespace vr
3790
3791
3792// ivrscreenshots.h
3793namespace vr
3794{
3795
3806
3809{
3810 vr::EVRScreenshotError (__stdcall *RequestScreenshot)( vr::ScreenshotHandle_t *pOutScreenshotHandle, vr::EVRScreenshotType type, const char *pchPreviewFilename, const char *pchVRFilename );
3811 vr::EVRScreenshotError (__stdcall *HookScreenshot)( const vr::EVRScreenshotType *pSupportedTypes, int numTypes );
3812 vr::EVRScreenshotType (__stdcall *GetScreenshotPropertyType)( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotError *pError );
3813 uint32_t (__stdcall *GetScreenshotPropertyFilename)( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotPropertyFilenames filenameType, char *pchFilename, uint32_t cchFilename, vr::EVRScreenshotError *pError );
3814 vr::EVRScreenshotError (__stdcall *UpdateScreenshotProgress)( vr::ScreenshotHandle_t screenshotHandle, float flProgress );
3815 vr::EVRScreenshotError (__stdcall *TakeStereoScreenshot)( vr::ScreenshotHandle_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename );
3816 vr::EVRScreenshotError (__stdcall *SubmitScreenshot)( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotType type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename );
3817};
3818
3820{
3822public:
3854 vr::EVRScreenshotError RequestScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, vr::EVRScreenshotType type, const char *pchPreviewFilename, const char *pchVRFilename ) { return _table.RequestScreenshot(pOutScreenshotHandle, type, pchPreviewFilename, pchVRFilename); }
3855
3864 vr::EVRScreenshotError HookScreenshot( VR_ARRAY_COUNT( numTypes ) const vr::EVRScreenshotType *pSupportedTypes, int numTypes ) { return _table.HookScreenshot(pSupportedTypes, numTypes); }
3865
3869 vr::EVRScreenshotType GetScreenshotPropertyType( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotError *pError ) { return _table.GetScreenshotPropertyType(screenshotHandle, pError); }
3870
3874 uint32_t GetScreenshotPropertyFilename( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotPropertyFilenames filenameType, VR_OUT_STRING() char *pchFilename, uint32_t cchFilename, vr::EVRScreenshotError *pError ) { return _table.GetScreenshotPropertyFilename(screenshotHandle, filenameType, pchFilename, cchFilename, pError); }
3875
3880 vr::EVRScreenshotError UpdateScreenshotProgress( vr::ScreenshotHandle_t screenshotHandle, float flProgress ) { return _table.UpdateScreenshotProgress(screenshotHandle, flProgress); }
3881
3889 vr::EVRScreenshotError TakeStereoScreenshot( vr::ScreenshotHandle_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename ) { return _table.TakeStereoScreenshot(pOutScreenshotHandle, pchPreviewFilename, pchVRFilename); }
3890
3902 vr::EVRScreenshotError SubmitScreenshot( vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotType type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename ) { return _table.SubmitScreenshot(screenshotHandle, type, pchSourcePreviewFilename, pchSourceVRFilename); }
3903};
3904
3905static const char * const IVRScreenshots_Version = "FnTable:IVRScreenshots_001";
3906
3907} // namespace vr
3908
3909
3910
3911// ivrresources.h
3912namespace vr
3913{
3914
3916{
3917 uint32_t (__stdcall *LoadSharedResource)( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen );
3918 uint32_t (__stdcall *GetResourceFullPath)( const char *pchResourceName, const char *pchResourceTypeDirectory, char *pchPathBuffer, uint32_t unBufferLen );
3919};
3920
3922{
3924public:
3925
3926 // ------------------------------------
3927 // Shared Resource Methods
3928 // ------------------------------------
3929
3932 uint32_t LoadSharedResource( const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen ) { return _table.LoadSharedResource(pchResourceName, pchBuffer, unBufferLen); }
3933
3937 uint32_t GetResourceFullPath( const char *pchResourceName, const char *pchResourceTypeDirectory, VR_OUT_STRING() char *pchPathBuffer, uint32_t unBufferLen ) { return _table.GetResourceFullPath(pchResourceName, pchResourceTypeDirectory, pchPathBuffer, unBufferLen); }
3938};
3939
3940static const char * const IVRResources_Version = "FnTable:IVRResources_001";
3941
3942
3943}
3944// ivrdrivermanager.h
3945namespace vr
3946{
3947
3949{
3950 uint32_t (__stdcall *GetDriverName)( vr::DriverId_t nDriver, char *pchValue, uint32_t unBufferSize );
3951};
3952
3954{
3956public:
3957 virtual uint32_t GetDriverCount() const = 0;
3958
3960 uint32_t GetDriverName( vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize ) { return _table.GetDriverName(nDriver, pchValue, unBufferSize); }
3961};
3962
3963static const char * const IVRDriverManager_Version = "FnTable:IVRDriverManager_001";
3964
3965} // namespace vr
3966
3967
3968// End
3969
3970#endif // _OPENVR_API
3971
3972
3973namespace vr
3974{
3984 inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo = nullptr );
3985
3988 inline void VR_Shutdown();
3989
3994 VR_INTERFACE bool VR_CALLTYPE VR_IsHmdPresent();
3995
3998
4000 VR_INTERFACE const char *VR_CALLTYPE VR_RuntimePath();
4001
4004
4008
4012 VR_INTERFACE void *VR_CALLTYPE VR_GetGenericInterface( const char *pchInterfaceVersion, EVRInitError *peError );
4013
4016 VR_INTERFACE bool VR_CALLTYPE VR_IsInterfaceVersionValid( const char *pchInterfaceVersion );
4017
4019 VR_INTERFACE uint32_t VR_CALLTYPE VR_GetInitToken();
4020
4021 // These typedefs allow old enum names from SDK 0.9.11 to be used in applications.
4022 // They will go away in the future.
4038
4039 inline uint32_t &VRToken()
4040 {
4041 static uint32_t token;
4042 return token;
4043 }
4044
4046 {
4047 public:
4049 void Clear();
4050
4051 inline void CheckClear()
4052 {
4053 if ( VRToken() != VR_GetInitToken() )
4054 {
4055 Clear();
4057 }
4058 }
4059
4061 {
4062 CheckClear();
4063 if ( m_pVRSystem == nullptr )
4064 {
4065 EVRInitError eError;
4066 m_pVRSystem = ( IVRSystem * )VR_GetGenericInterface( IVRSystem_Version, &eError );
4067 }
4068 return m_pVRSystem;
4069 }
4071 {
4072 CheckClear();
4073 if ( m_pVRChaperone == nullptr )
4074 {
4075 EVRInitError eError;
4076 m_pVRChaperone = ( IVRChaperone * )VR_GetGenericInterface( IVRChaperone_Version, &eError );
4077 }
4078 return m_pVRChaperone;
4079 }
4080
4082 {
4083 CheckClear();
4084 if ( m_pVRChaperoneSetup == nullptr )
4085 {
4086 EVRInitError eError;
4087 m_pVRChaperoneSetup = ( IVRChaperoneSetup * )VR_GetGenericInterface( IVRChaperoneSetup_Version, &eError );
4088 }
4089 return m_pVRChaperoneSetup;
4090 }
4091
4093 {
4094 CheckClear();
4095 if ( m_pVRCompositor == nullptr )
4096 {
4097 EVRInitError eError;
4098 m_pVRCompositor = ( IVRCompositor * )VR_GetGenericInterface( IVRCompositor_Version, &eError );
4099 }
4100 return m_pVRCompositor;
4101 }
4102
4104 {
4105 CheckClear();
4106 if ( m_pVROverlay == nullptr )
4107 {
4108 EVRInitError eError;
4109 m_pVROverlay = ( IVROverlay * )VR_GetGenericInterface( IVROverlay_Version, &eError );
4110 }
4111 return m_pVROverlay;
4112 }
4113
4115 {
4116 CheckClear();
4117 if ( m_pVRResources == nullptr )
4118 {
4119 EVRInitError eError;
4120 m_pVRResources = (IVRResources *)VR_GetGenericInterface( IVRResources_Version, &eError );
4121 }
4122 return m_pVRResources;
4123 }
4124
4126 {
4127 CheckClear();
4128 if ( m_pVRScreenshots == nullptr )
4129 {
4130 EVRInitError eError;
4131 m_pVRScreenshots = ( IVRScreenshots * )VR_GetGenericInterface( IVRScreenshots_Version, &eError );
4132 }
4133 return m_pVRScreenshots;
4134 }
4135
4137 {
4138 CheckClear();
4139 if ( m_pVRRenderModels == nullptr )
4140 {
4141 EVRInitError eError;
4142 m_pVRRenderModels = ( IVRRenderModels * )VR_GetGenericInterface( IVRRenderModels_Version, &eError );
4143 }
4144 return m_pVRRenderModels;
4145 }
4146
4148 {
4149 CheckClear();
4150 if ( m_pVRExtendedDisplay == nullptr )
4151 {
4152 EVRInitError eError;
4153 m_pVRExtendedDisplay = ( IVRExtendedDisplay * )VR_GetGenericInterface( IVRExtendedDisplay_Version, &eError );
4154 }
4155 return m_pVRExtendedDisplay;
4156 }
4157
4159 {
4160 CheckClear();
4161 if ( m_pVRSettings == nullptr )
4162 {
4163 EVRInitError eError;
4164 m_pVRSettings = ( IVRSettings * )VR_GetGenericInterface( IVRSettings_Version, &eError );
4165 }
4166 return m_pVRSettings;
4167 }
4168
4170 {
4171 CheckClear();
4172 if ( m_pVRApplications == nullptr )
4173 {
4174 EVRInitError eError;
4175 m_pVRApplications = ( IVRApplications * )VR_GetGenericInterface( IVRApplications_Version, &eError );
4176 }
4177 return m_pVRApplications;
4178 }
4179
4181 {
4182 CheckClear();
4183 if ( m_pVRTrackedCamera == nullptr )
4184 {
4185 EVRInitError eError;
4186 m_pVRTrackedCamera = ( IVRTrackedCamera * )VR_GetGenericInterface( IVRTrackedCamera_Version, &eError );
4187 }
4188 return m_pVRTrackedCamera;
4189 }
4190
4192 {
4193 CheckClear();
4194 if ( !m_pVRDriverManager )
4195 {
4196 EVRInitError eError;
4197 m_pVRDriverManager = ( IVRDriverManager * )VR_GetGenericInterface( IVRDriverManager_Version, &eError );
4198 }
4199 return m_pVRDriverManager;
4200 }
4201
4202 private:
4203 IVRSystem *m_pVRSystem;
4204 IVRChaperone *m_pVRChaperone;
4205 IVRChaperoneSetup *m_pVRChaperoneSetup;
4206 IVRCompositor *m_pVRCompositor;
4207 IVROverlay *m_pVROverlay;
4208 IVRResources *m_pVRResources;
4209 IVRRenderModels *m_pVRRenderModels;
4210 IVRExtendedDisplay *m_pVRExtendedDisplay;
4211 IVRSettings *m_pVRSettings;
4212 IVRApplications *m_pVRApplications;
4213 IVRTrackedCamera *m_pVRTrackedCamera;
4214 IVRScreenshots *m_pVRScreenshots;
4215 IVRDriverManager *m_pVRDriverManager;
4216 };
4217
4219 {
4220 static void *ctx[ sizeof( COpenVRContext ) / sizeof( void * ) ];
4221 return *( COpenVRContext * )ctx; // bypass zero-init constructor
4222 }
4223
4237
4239 {
4240 m_pVRSystem = nullptr;
4241 m_pVRChaperone = nullptr;
4242 m_pVRChaperoneSetup = nullptr;
4243 m_pVRCompositor = nullptr;
4244 m_pVROverlay = nullptr;
4245 m_pVRRenderModels = nullptr;
4246 m_pVRExtendedDisplay = nullptr;
4247 m_pVRSettings = nullptr;
4248 m_pVRApplications = nullptr;
4249 m_pVRTrackedCamera = nullptr;
4250 m_pVRResources = nullptr;
4251 m_pVRScreenshots = nullptr;
4252 m_pVRDriverManager = nullptr;
4253 }
4254
4255 VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal2( EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo );
4257
4259 inline IVRSystem *VR_Init( EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo )
4260 {
4261 IVRSystem *pVRSystem = nullptr;
4262
4263 EVRInitError eError;
4264 VRToken() = VR_InitInternal2( &eError, eApplicationType, pStartupInfo );
4266 ctx.Clear();
4267
4268 if ( eError == VRInitError_None )
4269 {
4270 if ( VR_IsInterfaceVersionValid( IVRSystem_Version ) )
4271 {
4272 pVRSystem = VRSystem();
4273 }
4274 else
4275 {
4278 }
4279 }
4280
4281 if ( peError )
4282 *peError = eError;
4283 return pVRSystem;
4284 }
4285
4288 inline void VR_Shutdown()
4289 {
4291 }
4292}
void error(std::string err, std::string fail_reason)
Definition check.cc:18
Definition openvr_mingw.h:4046
COpenVRContext()
Definition openvr_mingw.h:4048
IVRDriverManager * VRDriverManager()
Definition openvr_mingw.h:4191
IVROverlay * VROverlay()
Definition openvr_mingw.h:4103
IVRSettings * VRSettings()
Definition openvr_mingw.h:4158
IVRChaperone * VRChaperone()
Definition openvr_mingw.h:4070
void Clear()
Definition openvr_mingw.h:4238
IVRApplications * VRApplications()
Definition openvr_mingw.h:4169
IVRResources * VRResources()
Definition openvr_mingw.h:4114
IVRScreenshots * VRScreenshots()
Definition openvr_mingw.h:4125
IVRCompositor * VRCompositor()
Definition openvr_mingw.h:4092
void CheckClear()
Definition openvr_mingw.h:4051
IVRExtendedDisplay * VRExtendedDisplay()
Definition openvr_mingw.h:4147
IVRSystem * VRSystem()
Definition openvr_mingw.h:4060
IVRTrackedCamera * VRTrackedCamera()
Definition openvr_mingw.h:4180
IVRChaperoneSetup * VRChaperoneSetup()
Definition openvr_mingw.h:4081
IVRRenderModels * VRRenderModels()
Definition openvr_mingw.h:4136
Definition openvr_mingw.h:1846
uint64_t GetApplicationPropertyUint64(const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError=nullptr)
Definition openvr_mingw.h:1914
EVRApplicationError GetApplicationKeyByProcessId(uint32_t unProcessId, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen)
Definition openvr_mingw.h:1872
uint32_t GetApplicationPropertyString(const char *pchAppKey, EVRApplicationProperty eProperty, VR_OUT_STRING() char *pchPropertyValueBuffer, uint32_t unPropertyValueBufferLen, EVRApplicationError *peError=nullptr)
Definition openvr_mingw.h:1908
uint32_t GetApplicationLaunchArguments(uint32_t unHandle, VR_OUT_STRING() char *pchArgs, uint32_t unArgs)
Definition openvr_mingw.h:1935
uint32_t GetApplicationCount()
Definition openvr_mingw.h:1863
EVRApplicationError LaunchInternalProcess(const char *pchBinaryPath, const char *pchArguments, const char *pchWorkingDirectory)
Definition openvr_mingw.h:1967
EVRApplicationError GetStartingApplication(VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen)
Definition openvr_mingw.h:1940
uint32_t GetCurrentSceneProcessId()
Definition openvr_mingw.h:1972
const char * GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state)
Definition openvr_mingw.h:1957
EVRApplicationError IdentifyApplication(uint32_t unProcessId, const char *pchAppKey)
Definition openvr_mingw.h:1897
EVRApplicationError LaunchApplication(const char *pchAppKey)
Definition openvr_mingw.h:1876
EVRApplicationError LaunchDashboardOverlay(const char *pchAppKey)
Definition openvr_mingw.h:1888
EVRApplicationError SetApplicationAutoLaunch(const char *pchAppKey, bool bAutoLaunch)
Definition openvr_mingw.h:1917
const char * GetApplicationsErrorNameFromEnum(EVRApplicationError error)
Definition openvr_mingw.h:1903
EVRApplicationTransitionState GetTransitionState()
Definition openvr_mingw.h:1943
bool GetApplicationPropertyBool(const char *pchAppKey, EVRApplicationProperty eProperty, EVRApplicationError *peError=nullptr)
Definition openvr_mingw.h:1911
EVRApplicationError LaunchTemplateApplication(const char *pchTemplateAppKey, const char *pchNewAppKey, VR_ARRAY_COUNT(unKeys) const AppOverrideKeys_t *pKeys, uint32_t unKeys)
Definition openvr_mingw.h:1881
EVRApplicationError AddApplicationManifest(const char *pchApplicationManifestFullPath, bool bTemporary=false)
Definition openvr_mingw.h:1854
bool CancelApplicationLaunch(const char *pchAppKey)
Definition openvr_mingw.h:1891
uint32_t GetApplicationProcessId(const char *pchAppKey)
Definition openvr_mingw.h:1900
bool IsQuitUserPromptRequested()
Definition openvr_mingw.h:1960
EVRApplicationError SetDefaultApplicationForMimeType(const char *pchAppKey, const char *pchMimeType)
Definition openvr_mingw.h:1923
EVRApplicationError RemoveApplicationManifest(const char *pchApplicationManifestFullPath)
Definition openvr_mingw.h:1857
EVRApplicationError GetApplicationKeyByIndex(uint32_t unApplicationIndex, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen)
Definition openvr_mingw.h:1868
EVRApplicationError PerformApplicationPrelaunchCheck(const char *pchAppKey)
Definition openvr_mingw.h:1954
bool GetDefaultApplicationForMimeType(const char *pchMimeType, VR_OUT_STRING() char *pchAppKeyBuffer, uint32_t unAppKeyBufferLen)
Definition openvr_mingw.h:1926
bool GetApplicationAutoLaunch(const char *pchAppKey)
Definition openvr_mingw.h:1920
bool IsApplicationInstalled(const char *pchAppKey)
Definition openvr_mingw.h:1860
uint32_t GetApplicationsThatSupportMimeType(const char *pchMimeType, VR_OUT_STRING() char *pchAppKeysThatSupportBuffer, uint32_t unAppKeysThatSupportBuffer)
Definition openvr_mingw.h:1932
bool GetApplicationSupportedMimeTypes(const char *pchAppKey, VR_OUT_STRING() char *pchMimeTypesBuffer, uint32_t unMimeTypesBuffer)
Definition openvr_mingw.h:1929
vr::EVRApplicationError LaunchApplicationFromMimeType(const char *pchMimeType, const char *pchArgs)
Definition openvr_mingw.h:1884
Definition openvr_mingw.h:2339
bool CommitWorkingCopy(EChaperoneConfigFile configFile)
Definition openvr_mingw.h:2344
void SetWorkingStandingZeroPoseToRawTrackingPose(const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose)
Definition openvr_mingw.h:2387
void ReloadFromDisk(EChaperoneConfigFile configFile)
Definition openvr_mingw.h:2390
bool GetWorkingStandingZeroPoseToRawTrackingPose(HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose)
Definition openvr_mingw.h:2375
void SetWorkingPlayAreaSize(float sizeX, float sizeZ)
Definition openvr_mingw.h:2378
bool GetLivePhysicalBoundsInfo(VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t *punQuadsCount)
Definition openvr_mingw.h:2399
void SetWorkingCollisionBoundsInfo(VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount)
Definition openvr_mingw.h:2381
bool GetWorkingCollisionBoundsInfo(VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t *punQuadsCount)
Definition openvr_mingw.h:2365
bool GetWorkingPlayAreaSize(float *pSizeX, float *pSizeZ)
Definition openvr_mingw.h:2353
bool ExportLiveToBuffer(VR_OUT_STRING() char *pBuffer, uint32_t *pnBufferLength)
Definition openvr_mingw.h:2401
void SetWorkingSeatedZeroPoseToRawTrackingPose(const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose)
Definition openvr_mingw.h:2384
bool GetLiveCollisionBoundsInfo(VR_OUT_ARRAY_COUNT(punQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t *punQuadsCount)
Definition openvr_mingw.h:2369
void SetWorkingCollisionBoundsTagsInfo(VR_ARRAY_COUNT(unTagCount) uint8_t *pTagsBuffer, uint32_t unTagCount)
Definition openvr_mingw.h:2395
bool GetWorkingSeatedZeroPoseToRawTrackingPose(HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose)
Definition openvr_mingw.h:2372
bool ImportFromBufferToWorking(const char *pBuffer, uint32_t nImportFlags)
Definition openvr_mingw.h:2402
void RevertWorkingCopy()
Definition openvr_mingw.h:2349
bool GetLiveCollisionBoundsTagsInfo(VR_OUT_ARRAY_COUNT(punTagCount) uint8_t *pTagsBuffer, uint32_t *punTagCount)
Definition openvr_mingw.h:2396
bool GetWorkingPlayAreaRect(HmdQuad_t *rect)
Definition openvr_mingw.h:2361
bool GetLiveSeatedZeroPoseToRawTrackingPose(HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose)
Definition openvr_mingw.h:2393
bool SetWorkingPhysicalBoundsInfo(VR_ARRAY_COUNT(unQuadsCount) HmdQuad_t *pQuadsBuffer, uint32_t unQuadsCount)
Definition openvr_mingw.h:2398
Definition openvr_mingw.h:2254
void GetBoundsColor(HmdColor_t *pOutputColorArray, int nNumOutputColors, float flCollisionBoundsFadeDistance, HmdColor_t *pOutputCameraColor)
Definition openvr_mingw.h:2280
bool GetPlayAreaRect(HmdQuad_t *rect)
Definition openvr_mingw.h:2271
void SetSceneColor(HmdColor_t color)
Definition openvr_mingw.h:2277
void ForceBoundsVisible(bool bForce)
Definition openvr_mingw.h:2286
void ReloadInfo(void)
Definition openvr_mingw.h:2274
bool AreBoundsVisible()
Definition openvr_mingw.h:2283
ChaperoneCalibrationState GetCalibrationState()
Definition openvr_mingw.h:2259
bool GetPlayAreaSize(float *pSizeX, float *pSizeZ)
Definition openvr_mingw.h:2263
Definition openvr_mingw.h:2574
void HideMirrorWindow()
Definition openvr_mingw.h:2696
void CompositorGoToBack()
Definition openvr_mingw.h:2673
vr::EVRCompositorError GetMirrorTextureGL(vr::EVREye eEye, vr::glUInt_t *pglTextureId, vr::glSharedTextureHandle_t *pglSharedTextureHandle)
Definition openvr_mingw.h:2722
EVRCompositorError GetLastPoseForTrackedDeviceIndex(TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t *pOutputPose, TrackedDevicePose_t *pOutputGamePose)
Definition openvr_mingw.h:2601
EVRCompositorError Submit(EVREye eEye, const Texture_t *pTexture, const VRTextureBounds_t *pBounds=0, EVRSubmitFlags nSubmitFlags=Submit_Default)
Definition openvr_mingw.h:2618
void FadeToColor(float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground=false)
Definition openvr_mingw.h:2649
float GetFrameTimeRemaining()
Definition openvr_mingw.h:2641
EVRCompositorError SetSkyboxOverride(VR_ARRAY_COUNT(unTextureCount) const Texture_t *pTextures, uint32_t unTextureCount)
Definition openvr_mingw.h:2663
void PostPresentHandoff()
Definition openvr_mingw.h:2629
bool CanRenderScene()
Definition openvr_mingw.h:2690
void ForceInterleavedReprojectionOn(bool bOverride)
Definition openvr_mingw.h:2708
void FadeGrid(float fSeconds, bool bFadeIn)
Definition openvr_mingw.h:2655
void SetTrackingSpace(ETrackingUniverseOrigin eOrigin)
Definition openvr_mingw.h:2578
bool ReleaseSharedGLTexture(vr::glUInt_t glTextureId, vr::glSharedTextureHandle_t glSharedTextureHandle)
Definition openvr_mingw.h:2723
bool IsFullscreen()
Definition openvr_mingw.h:2680
uint32_t GetVulkanDeviceExtensionsRequired(VkPhysicalDevice_T *pPhysicalDevice, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize)
Definition openvr_mingw.h:2735
EVRCompositorError GetLastPoses(VR_ARRAY_COUNT(unRenderPoseArrayCount) TrackedDevicePose_t *pRenderPoseArray, uint32_t unRenderPoseArrayCount, VR_ARRAY_COUNT(unGamePoseArrayCount) TrackedDevicePose_t *pGamePoseArray, uint32_t unGamePoseArrayCount)
Definition openvr_mingw.h:2595
uint32_t GetLastFrameRenderer()
Definition openvr_mingw.h:2687
void CompositorDumpImages()
Definition openvr_mingw.h:2702
void CompositorBringToFront()
Definition openvr_mingw.h:2670
void SuspendRendering(bool bSuspend)
Definition openvr_mingw.h:2714
void ClearSkyboxOverride()
Definition openvr_mingw.h:2666
void SetExplicitTimingMode(EVRCompositorTimingMode eTimingMode)
Definition openvr_mingw.h:2755
void UnlockGLSharedTextureForAccess(vr::glSharedTextureHandle_t glSharedTextureHandle)
Definition openvr_mingw.h:2725
void ReleaseMirrorTextureD3D11(void *pD3D11ShaderResourceView)
Definition openvr_mingw.h:2719
uint32_t GetCurrentSceneFocusProcess()
Definition openvr_mingw.h:2683
bool ShouldAppRenderWithLowResources()
Definition openvr_mingw.h:2705
ETrackingUniverseOrigin GetTrackingSpace()
Definition openvr_mingw.h:2581
void CompositorQuit()
Definition openvr_mingw.h:2677
vr::EVRCompositorError GetMirrorTextureD3D11(vr::EVREye eEye, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView)
Definition openvr_mingw.h:2718
uint32_t GetVulkanInstanceExtensionsRequired(VR_OUT_STRING() char *pchValue, uint32_t unBufferSize)
Definition openvr_mingw.h:2730
HmdColor_t GetCurrentFadeColor(bool bBackground=false)
Definition openvr_mingw.h:2652
void GetCumulativeStats(Compositor_CumulativeStats *pStats, uint32_t nStatsSizeInBytes)
Definition openvr_mingw.h:2644
EVRCompositorError SubmitExplicitTimingData()
Definition openvr_mingw.h:2763
bool IsMirrorWindowVisible()
Definition openvr_mingw.h:2699
void LockGLSharedTextureForAccess(vr::glSharedTextureHandle_t glSharedTextureHandle)
Definition openvr_mingw.h:2724
bool GetFrameTiming(Compositor_FrameTiming *pTiming, uint32_t unFramesAgo=0)
Definition openvr_mingw.h:2633
EVRCompositorError WaitGetPoses(VR_ARRAY_COUNT(unRenderPoseArrayCount) TrackedDevicePose_t *pRenderPoseArray, uint32_t unRenderPoseArrayCount, VR_ARRAY_COUNT(unGamePoseArrayCount) TrackedDevicePose_t *pGamePoseArray, uint32_t unGamePoseArrayCount)
Definition openvr_mingw.h:2591
void ShowMirrorWindow()
Definition openvr_mingw.h:2693
void ForceReconnectProcess()
Definition openvr_mingw.h:2711
float GetCurrentGridAlpha()
Definition openvr_mingw.h:2658
uint32_t GetFrameTimings(Compositor_FrameTiming *pTiming, uint32_t nFrames)
Definition openvr_mingw.h:2637
void ClearLastSubmittedFrame()
Definition openvr_mingw.h:2622
Definition openvr_mingw.h:3954
virtual uint32_t GetDriverCount() const =0
uint32_t GetDriverName(vr::DriverId_t nDriver, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize)
Definition openvr_mingw.h:3960
Definition openvr_mingw.h:3697
void GetWindowBounds(int32_t *pnX, int32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight)
Definition openvr_mingw.h:3702
void GetEyeOutputViewport(EVREye eEye, uint32_t *pnX, uint32_t *pnY, uint32_t *pnWidth, uint32_t *pnHeight)
Definition openvr_mingw.h:3705
void GetDXGIOutputInfo(int32_t *pnAdapterIndex, int32_t *pnAdapterOutputIndex)
Definition openvr_mingw.h:3711
Definition openvr_mingw.h:2848
EVRNotificationError CreateNotification(VROverlayHandle_t ulOverlayHandle, uint64_t ulUserValue, EVRNotificationType type, const char *pchText, EVRNotificationStyle style, const NotificationBitmap_t *pImage, VRNotificationId *pNotificationId)
Definition openvr_mingw.h:2855
EVRNotificationError RemoveNotification(VRNotificationId notificationId)
Definition openvr_mingw.h:2858
Definition openvr_mingw.h:3119
vr::EVROverlayError SetOverlayTransformOverlayRelative(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, const HmdMatrix34_t *pmatParentOverlayToOverlayTransform)
Definition openvr_mingw.h:3276
void ShowDashboard(const char *pchOverlayToShow)
Definition openvr_mingw.h:3403
EVROverlayError SetOverlayMouseScale(VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale)
Definition openvr_mingw.h:3310
EVROverlayError SetOverlayAlpha(VROverlayHandle_t ulOverlayHandle, float fAlpha)
Definition openvr_mingw.h:3191
EVROverlayError SetOverlayTexelAspect(VROverlayHandle_t ulOverlayHandle, float fTexelAspect)
Definition openvr_mingw.h:3198
EVROverlayError GetOverlayTexture(VROverlayHandle_t ulOverlayHandle, void **pNativeTextureHandle, void *pNativeTextureRef, uint32_t *pWidth, uint32_t *pHeight, uint32_t *pNativeFormat, ETextureType *pAPIType, EColorSpace *pColorSpace, VRTextureBounds_t *pTextureBounds)
Definition openvr_mingw.h:3373
bool IsHoverTargetOverlay(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3318
EVROverlayError GetOverlayTransformType(VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType)
Definition openvr_mingw.h:3251
EVROverlayError GetOverlayTextureColorSpace(VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace)
Definition openvr_mingw.h:3235
EVROverlayError SetOverlayTextureBounds(VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds)
Definition openvr_mingw.h:3238
EVROverlayError ShowOverlay(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3279
bool IsDashboardVisible()
Definition openvr_mingw.h:3391
const char * GetOverlayErrorNameFromEnum(EVROverlayError error)
Definition openvr_mingw.h:3165
EVROverlayError GetOverlayDualAnalogTransform(VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, HmdVector2_t *pvCenter, float *pfRadius)
Definition openvr_mingw.h:3339
uint32_t GetOverlayRenderingPid(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3176
vr::EVROverlayError SetOverlayRenderModel(vr::VROverlayHandle_t ulOverlayHandle, const char *pchRenderModel, const HmdColor_t *pColor)
Definition openvr_mingw.h:3248
bool IsActiveDashboardOverlay(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3394
uint32_t GetOverlayRenderModel(vr::VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, HmdColor_t *pColor, vr::EVROverlayError *pError)
Definition openvr_mingw.h:3244
EVROverlayError SetOverlayTransformAbsolute(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToOverlayTransform)
Definition openvr_mingw.h:3254
vr::EVROverlayError GetOverlayTransformOverlayRelative(VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t *ulOverlayHandleParent, HmdMatrix34_t *pmatParentOverlayToOverlayTransform)
Definition openvr_mingw.h:3273
EVROverlayError SetOverlayAutoCurveDistanceRangeInMeters(VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters)
Definition openvr_mingw.h:3224
void SetKeyboardTransformAbsolute(ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToKeyboardTransform)
Definition openvr_mingw.h:3424
EVROverlayError GetOverlayTextureSize(VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight)
Definition openvr_mingw.h:3381
EVROverlayError SetOverlayRaw(VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth)
Definition openvr_mingw.h:3357
EVROverlayError GetOverlayFlag(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled)
Definition openvr_mingw.h:3182
EVROverlayError GetOverlayWidthInMeters(VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters)
Definition openvr_mingw.h:3220
EVROverlayError GetOverlayTransformTrackedDeviceRelative(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform)
Definition openvr_mingw.h:3263
EVROverlayError GetOverlayInputMethod(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod)
Definition openvr_mingw.h:3299
EVROverlayError SetOverlayFromFile(VROverlayHandle_t ulOverlayHandle, const char *pchFilePath)
Definition openvr_mingw.h:3361
EVROverlayError SetOverlayNeighbor(EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo)
Definition openvr_mingw.h:3329
EVROverlayError GetOverlayImageData(VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight)
Definition openvr_mingw.h:3161
bool PollNextOverlayEvent(VROverlayHandle_t ulOverlayHandle, VREvent_t *pEvent, uint32_t uncbVREvent)
Definition openvr_mingw.h:3296
EVROverlayError GetOverlayTransformAbsolute(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin *peTrackingOrigin, HmdMatrix34_t *pmatTrackingOriginToOverlayTransform)
Definition openvr_mingw.h:3257
bool IsOverlayVisible(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3285
EVROverlayError SetOverlayWidthInMeters(VROverlayHandle_t ulOverlayHandle, float fWidthInMeters)
Definition openvr_mingw.h:3217
uint32_t GetKeyboardText(VR_OUT_STRING() char *pchText, uint32_t cchText)
Definition openvr_mingw.h:3418
EVROverlayError GetOverlayAutoCurveDistanceRangeInMeters(VROverlayHandle_t ulOverlayHandle, float *pfMinDistanceInMeters, float *pfMaxDistanceInMeters)
Definition openvr_mingw.h:3228
EVROverlayError DestroyOverlay(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3135
EVROverlayError GetTransformForOverlayCoordinates(VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform)
Definition openvr_mingw.h:3288
EVROverlayError GetOverlayAlpha(VROverlayHandle_t ulOverlayHandle, float *pfAlpha)
Definition openvr_mingw.h:3194
EVROverlayError SetOverlayTransformTrackedDeviceRelative(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform)
Definition openvr_mingw.h:3260
uint32_t GetOverlayKey(VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError=0L)
Definition openvr_mingw.h:3150
EVROverlayError MoveGamepadFocusToNeighbor(EOverlayDirection eDirection, VROverlayHandle_t ulFrom)
Definition openvr_mingw.h:3333
bool ComputeOverlayIntersection(VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults)
Definition openvr_mingw.h:3314
EVROverlayError GetOverlayColor(VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue)
Definition openvr_mingw.h:3188
EVROverlayError SetOverlayIntersectionMask(VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t *pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize=sizeof(VROverlayIntersectionMaskPrimitive_t))
Definition openvr_mingw.h:3435
EVROverlayError ReleaseNativeOverlayHandle(VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle)
Definition openvr_mingw.h:3378
EVROverlayError SetGamepadFocusOverlay(VROverlayHandle_t ulNewFocusOverlay)
Definition openvr_mingw.h:3324
EVROverlayError SetOverlayColor(VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue)
Definition openvr_mingw.h:3185
EVROverlayError ClearOverlayTexture(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3353
EVROverlayError SetOverlayName(VROverlayHandle_t ulOverlayHandle, const char *pchName)
Definition openvr_mingw.h:3157
EVROverlayError FindOverlay(const char *pchOverlayKey, VROverlayHandle_t *pOverlayHandle)
Definition openvr_mingw.h:3128
EVROverlayError SetDashboardOverlaySceneProcess(VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId)
Definition openvr_mingw.h:3397
VRMessageOverlayResponse ShowMessageOverlay(const char *pchText, const char *pchCaption, const char *pchButton0Text, const char *pchButton1Text=nullptr, const char *pchButton2Text=nullptr, const char *pchButton3Text=nullptr)
Definition openvr_mingw.h:3444
vr::TrackedDeviceIndex_t GetPrimaryDashboardDevice()
Definition openvr_mingw.h:3406
vr::VROverlayHandle_t GetHighQualityOverlay()
Definition openvr_mingw.h:3146
EVROverlayError SetOverlayTransformTrackedDeviceComponent(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName)
Definition openvr_mingw.h:3267
EVROverlayError SetHighQualityOverlay(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3142
EVROverlayError GetOverlayTransformTrackedDeviceComponent(VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, VR_OUT_STRING() char *pchComponentName, uint32_t unComponentNameSize)
Definition openvr_mingw.h:3270
EVROverlayError SetOverlayRenderingPid(VROverlayHandle_t ulOverlayHandle, uint32_t unPID)
Definition openvr_mingw.h:3173
void CloseMessageOverlay()
Definition openvr_mingw.h:3447
EVROverlayError GetOverlaySortOrder(VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder)
Definition openvr_mingw.h:3214
EVROverlayError SetOverlayDualAnalogTransform(VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, const HmdVector2_t &vCenter, float fRadius)
Definition openvr_mingw.h:3336
EVROverlayError ShowKeyboard(EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue)
Definition openvr_mingw.h:3413
EVROverlayError GetOverlayTextureBounds(VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds)
Definition openvr_mingw.h:3241
EVROverlayError SetOverlayFlag(VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled)
Definition openvr_mingw.h:3179
EVROverlayError SetOverlayTextureColorSpace(VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace)
Definition openvr_mingw.h:3232
EVROverlayError SetOverlayInputMethod(VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod)
Definition openvr_mingw.h:3302
vr::VROverlayHandle_t GetGamepadFocusOverlay()
Definition openvr_mingw.h:3321
EVROverlayError CreateOverlay(const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t *pOverlayHandle)
Definition openvr_mingw.h:3131
EVROverlayError GetDashboardOverlaySceneProcess(VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId)
Definition openvr_mingw.h:3400
EVROverlayError SetOverlaySortOrder(VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder)
Definition openvr_mingw.h:3211
EVROverlayError GetOverlayMouseScale(VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale)
Definition openvr_mingw.h:3306
EVROverlayError GetOverlayTexelAspect(VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect)
Definition openvr_mingw.h:3201
void SetKeyboardPositionForOverlay(VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect)
Definition openvr_mingw.h:3427
EVROverlayError ShowKeyboardForOverlay(VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue)
Definition openvr_mingw.h:3415
void HideKeyboard()
Definition openvr_mingw.h:3421
EVROverlayError SetOverlayTexture(VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture)
Definition openvr_mingw.h:3350
EVROverlayError GetOverlayFlags(VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags)
Definition openvr_mingw.h:3437
EVROverlayError CreateDashboardOverlay(const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t *pMainHandle, VROverlayHandle_t *pThumbnailHandle)
Definition openvr_mingw.h:3388
uint32_t GetOverlayName(VROverlayHandle_t ulOverlayHandle, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, EVROverlayError *pError=0L)
Definition openvr_mingw.h:3154
EVROverlayError HideOverlay(VROverlayHandle_t ulOverlayHandle)
Definition openvr_mingw.h:3282
Definition openvr_mingw.h:3584
void FreeTexture(RenderModel_TextureMap_t *pTexture)
Definition openvr_mingw.h:3608
EVRRenderModelError LoadIntoTextureD3D11_Async(TextureID_t textureId, void *pDstTexture)
Definition openvr_mingw.h:3614
uint32_t GetComponentCount(const char *pchRenderModelName)
Definition openvr_mingw.h:3635
const char * GetRenderModelErrorNameFromEnum(vr::EVRRenderModelError error)
Definition openvr_mingw.h:3675
uint32_t GetRenderModelCount()
Definition openvr_mingw.h:3625
bool RenderModelHasComponent(const char *pchRenderModelName, const char *pchComponentName)
Definition openvr_mingw.h:3664
uint32_t GetRenderModelThumbnailURL(const char *pchRenderModelName, VR_OUT_STRING() char *pchThumbnailURL, uint32_t unThumbnailURLLen, vr::EVRRenderModelError *peError)
Definition openvr_mingw.h:3667
uint64_t GetComponentButtonMask(const char *pchRenderModelName, const char *pchComponentName)
Definition openvr_mingw.h:3646
void FreeRenderModel(RenderModel_t *pRenderModel)
Definition openvr_mingw.h:3601
EVRRenderModelError LoadTexture_Async(TextureID_t textureId, RenderModel_TextureMap_t **ppTexture)
Definition openvr_mingw.h:3604
uint32_t GetRenderModelOriginalPath(const char *pchRenderModelName, VR_OUT_STRING() char *pchOriginalPath, uint32_t unOriginalPathLen, vr::EVRRenderModelError *peError)
Definition openvr_mingw.h:3672
void FreeTextureD3D11(void *pD3D11Texture2D)
Definition openvr_mingw.h:3617
bool GetComponentState(const char *pchRenderModelName, const char *pchComponentName, const vr::VRControllerState_t *pControllerState, const RenderModel_ControllerMode_State_t *pState, RenderModel_ComponentState_t *pComponentState)
Definition openvr_mingw.h:3661
uint32_t GetComponentName(const char *pchRenderModelName, uint32_t unComponentIndex, VR_OUT_STRING() char *pchComponentName, uint32_t unComponentNameLen)
Definition openvr_mingw.h:3640
uint32_t GetComponentRenderModelName(const char *pchRenderModelName, const char *pchComponentName, VR_OUT_STRING() char *pchComponentRenderModelName, uint32_t unComponentRenderModelNameLen)
Definition openvr_mingw.h:3651
EVRRenderModelError LoadRenderModel_Async(const char *pchRenderModelName, RenderModel_t **ppRenderModel)
Definition openvr_mingw.h:3597
EVRRenderModelError LoadTextureD3D11_Async(TextureID_t textureId, void *pD3D11Device, void **ppD3D11Texture2D)
Definition openvr_mingw.h:3611
uint32_t GetRenderModelName(uint32_t unRenderModelIndex, VR_OUT_STRING() char *pchRenderModelName, uint32_t unRenderModelNameLen)
Definition openvr_mingw.h:3622
Definition openvr_mingw.h:3922
uint32_t LoadSharedResource(const char *pchResourceName, char *pchBuffer, uint32_t unBufferLen)
Definition openvr_mingw.h:3932
uint32_t GetResourceFullPath(const char *pchResourceName, const char *pchResourceTypeDirectory, VR_OUT_STRING() char *pchPathBuffer, uint32_t unBufferLen)
Definition openvr_mingw.h:3937
Definition openvr_mingw.h:3820
vr::EVRScreenshotError UpdateScreenshotProgress(vr::ScreenshotHandle_t screenshotHandle, float flProgress)
Definition openvr_mingw.h:3880
uint32_t GetScreenshotPropertyFilename(vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotPropertyFilenames filenameType, VR_OUT_STRING() char *pchFilename, uint32_t cchFilename, vr::EVRScreenshotError *pError)
Definition openvr_mingw.h:3874
vr::EVRScreenshotError RequestScreenshot(vr::ScreenshotHandle_t *pOutScreenshotHandle, vr::EVRScreenshotType type, const char *pchPreviewFilename, const char *pchVRFilename)
Definition openvr_mingw.h:3854
vr::EVRScreenshotError TakeStereoScreenshot(vr::ScreenshotHandle_t *pOutScreenshotHandle, const char *pchPreviewFilename, const char *pchVRFilename)
Definition openvr_mingw.h:3889
vr::EVRScreenshotError HookScreenshot(VR_ARRAY_COUNT(numTypes) const vr::EVRScreenshotType *pSupportedTypes, int numTypes)
Definition openvr_mingw.h:3864
vr::EVRScreenshotError SubmitScreenshot(vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotType type, const char *pchSourcePreviewFilename, const char *pchSourceVRFilename)
Definition openvr_mingw.h:3902
vr::EVRScreenshotType GetScreenshotPropertyType(vr::ScreenshotHandle_t screenshotHandle, vr::EVRScreenshotError *pError)
Definition openvr_mingw.h:3869
Definition openvr_mingw.h:2012
void RemoveSection(const char *pchSection, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2032
const char * GetSettingsErrorNameFromEnum(EVRSettingsError eError)
Definition openvr_mingw.h:2015
int32_t GetInt32(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2028
void SetInt32(const char *pchSection, const char *pchSettingsKey, int32_t nValue, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2021
bool GetBool(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2027
void RemoveKeyInSection(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2033
void SetFloat(const char *pchSection, const char *pchSettingsKey, float flValue, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2022
void SetBool(const char *pchSection, const char *pchSettingsKey, bool bValue, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2020
float GetFloat(const char *pchSection, const char *pchSettingsKey, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2029
void SetString(const char *pchSection, const char *pchSettingsKey, const char *pchValue, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2023
void GetString(const char *pchSection, const char *pchSettingsKey, VR_OUT_STRING() char *pchValue, uint32_t unValueLen, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2030
bool Sync(bool bForce=false, EVRSettingsError *peError=nullptr)
Definition openvr_mingw.h:2018
Definition openvr_mingw.h:1426
void AcknowledgeQuit_UserPrompt()
Definition openvr_mingw.h:1719
uint32_t DriverDebugRequest(vr::TrackedDeviceIndex_t unDeviceIndex, const char *pchRequest, VR_OUT_STRING() char *pchResponseBuffer, uint32_t unResponseBufferSize)
Definition openvr_mingw.h:1695
bool GetControllerStateWithPose(ETrackingUniverseOrigin eOrigin, vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize, TrackedDevicePose_t *pTrackedDevicePose)
Definition openvr_mingw.h:1660
void ResetSeatedZeroPose()
Definition openvr_mingw.h:1540
HiddenAreaMesh_t GetHiddenAreaMesh(EVREye eEye, EHiddenAreaMeshType type=k_eHiddenAreaMesh_Standard)
Definition openvr_mingw.h:1647
vr::ETrackedControllerRole GetControllerRoleForTrackedDeviceIndex(vr::TrackedDeviceIndex_t unDeviceIndex)
Definition openvr_mingw.h:1571
void TriggerHapticPulse(vr::TrackedDeviceIndex_t unControllerDeviceIndex, uint32_t unAxisId, unsigned short usDurationMicroSec)
Definition openvr_mingw.h:1664
bool GetTimeSinceLastVsync(float *pfSecondsSinceLastVsync, uint64_t *pulFrameCounter)
Definition openvr_mingw.h:1460
EDeviceActivityLevel GetTrackedDeviceActivityLevel(vr::TrackedDeviceIndex_t unDeviceId)
Definition openvr_mingw.h:1560
uint32_t GetSortedTrackedDeviceIndicesOfClass(ETrackedDeviceClass eTrackedDeviceClass, VR_ARRAY_COUNT(unTrackedDeviceIndexArrayCount) vr::TrackedDeviceIndex_t *punTrackedDeviceIndexArray, uint32_t unTrackedDeviceIndexArrayCount, vr::TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex=k_unTrackedDeviceIndex_Hmd)
Definition openvr_mingw.h:1557
void GetOutputDevice(uint64_t *pnDevice, ETextureType textureType, VkInstance_T *pInstance=nullptr)
Definition openvr_mingw.h:1496
ETrackedDeviceClass GetTrackedDeviceClass(vr::TrackedDeviceIndex_t unDeviceIndex)
Definition openvr_mingw.h:1584
const char * GetButtonIdNameFromEnum(EVRButtonId eButtonId)
Definition openvr_mingw.h:1667
void ApplyTransform(TrackedDevicePose_t *pOutputPose, const TrackedDevicePose_t *pTrackedDevicePose, const HmdMatrix34_t *pTransform)
Definition openvr_mingw.h:1565
HmdMatrix34_t GetRawZeroPoseToStandingAbsoluteTrackingPose()
Definition openvr_mingw.h:1552
uint32_t GetArrayTrackedDeviceProperty(vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, PropertyTypeTag_t propType, void *pBuffer, uint32_t unBufferSize, ETrackedPropertyError *pError=0L)
Definition openvr_mingw.h:1607
int32_t GetD3D9AdapterIndex()
Definition openvr_mingw.h:1466
bool SetDisplayVisibility(bool bIsVisibleOnDesktop)
Definition openvr_mingw.h:1506
void GetDXGIOutputInfo(int32_t *pnAdapterIndex)
Definition openvr_mingw.h:1472
void AcknowledgeQuit_Exiting()
Definition openvr_mingw.h:1714
bool ShouldApplicationPause()
Definition openvr_mingw.h:1682
uint32_t GetStringTrackedDeviceProperty(vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, VR_OUT_STRING() char *pchValue, uint32_t unBufferSize, ETrackedPropertyError *pError=0L)
Definition openvr_mingw.h:1612
float GetFloatTrackedDeviceProperty(vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError=0L)
Definition openvr_mingw.h:1593
bool PollNextEvent(VREvent_t *pEvent, uint32_t uncbVREvent)
Definition openvr_mingw.h:1624
bool ShouldApplicationReduceRenderingWork()
Definition openvr_mingw.h:1686
bool IsSteamVRDrawingControllers()
Definition openvr_mingw.h:1678
const char * GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType)
Definition openvr_mingw.h:1670
uint64_t GetUint64TrackedDeviceProperty(vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError=0L)
Definition openvr_mingw.h:1599
HmdMatrix44_t GetProjectionMatrix(EVREye eEye, float fNearZ, float fFarZ)
Definition openvr_mingw.h:1439
vr::EVRFirmwareError PerformFirmwareUpdate(vr::TrackedDeviceIndex_t unDeviceIndex)
Definition openvr_mingw.h:1706
HmdMatrix34_t GetEyeToHeadTransform(EVREye eEye)
Definition openvr_mingw.h:1454
void GetProjectionRaw(EVREye eEye, float *pfLeft, float *pfRight, float *pfTop, float *pfBottom)
Definition openvr_mingw.h:1443
bool GetBoolTrackedDeviceProperty(vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError=0L)
Definition openvr_mingw.h:1590
bool ComputeDistortion(EVREye eEye, float fU, float fV, DistortionCoordinates_t *pDistortionCoordinates)
Definition openvr_mingw.h:1448
bool IsInputAvailable()
Definition openvr_mingw.h:1674
vr::TrackedDeviceIndex_t GetTrackedDeviceIndexForControllerRole(vr::ETrackedControllerRole unDeviceType)
Definition openvr_mingw.h:1568
bool GetControllerState(vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize)
Definition openvr_mingw.h:1655
HmdMatrix34_t GetMatrix34TrackedDeviceProperty(vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError=0L)
Definition openvr_mingw.h:1602
int32_t GetInt32TrackedDeviceProperty(vr::TrackedDeviceIndex_t unDeviceIndex, ETrackedDeviceProperty prop, ETrackedPropertyError *pError=0L)
Definition openvr_mingw.h:1596
void GetRecommendedRenderTargetSize(uint32_t *pnWidth, uint32_t *pnHeight)
Definition openvr_mingw.h:1436
bool PollNextEventWithPose(ETrackingUniverseOrigin eOrigin, VREvent_t *pEvent, uint32_t uncbVREvent, vr::TrackedDevicePose_t *pTrackedDevicePose)
Definition openvr_mingw.h:1630
bool IsDisplayOnDesktop()
Definition openvr_mingw.h:1503
const char * GetEventTypeNameFromEnum(EVREventType eType)
Definition openvr_mingw.h:1633
bool IsTrackedDeviceConnected(vr::TrackedDeviceIndex_t unDeviceIndex)
Definition openvr_mingw.h:1587
void GetDeviceToAbsoluteTrackingPose(ETrackingUniverseOrigin eOrigin, float fPredictedSecondsToPhotonsFromNow, VR_ARRAY_COUNT(unTrackedDevicePoseArrayCount) TrackedDevicePose_t *pTrackedDevicePoseArray, uint32_t unTrackedDevicePoseArrayCount)
Definition openvr_mingw.h:1529
const char * GetPropErrorNameFromEnum(ETrackedPropertyError error)
Definition openvr_mingw.h:1616
HmdMatrix34_t GetSeatedZeroPoseToStandingAbsoluteTrackingPose()
Definition openvr_mingw.h:1548
Definition openvr_mingw.h:3741
const char * GetCameraErrorNameFromEnum(vr::EVRTrackedCameraError eCameraError)
Definition openvr_mingw.h:3745
vr::EVRTrackedCameraError GetCameraFrameSize(vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, uint32_t *pnWidth, uint32_t *pnHeight, uint32_t *pnFrameBufferSize)
Definition openvr_mingw.h:3751
vr::EVRTrackedCameraError GetCameraProjection(vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, float flZNear, float flZFar, vr::HmdMatrix44_t *pProjection)
Definition openvr_mingw.h:3755
vr::EVRTrackedCameraError GetVideoStreamTextureD3D11(vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pD3D11DeviceOrResource, void **ppD3D11ShaderResourceView, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize)
Definition openvr_mingw.h:3780
vr::EVRTrackedCameraError GetVideoStreamTextureGL(vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, vr::glUInt_t *pglTextureId, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize)
Definition openvr_mingw.h:3783
vr::EVRTrackedCameraError GetVideoStreamFrameBuffer(vr::TrackedCameraHandle_t hTrackedCamera, vr::EVRTrackedCameraFrameType eFrameType, void *pFrameBuffer, uint32_t nFrameBufferSize, vr::CameraVideoStreamFrameHeader_t *pFrameHeader, uint32_t nFrameHeaderSize)
Definition openvr_mingw.h:3769
vr::EVRTrackedCameraError ReleaseVideoStreamTextureGL(vr::TrackedCameraHandle_t hTrackedCamera, vr::glUInt_t glTextureId)
Definition openvr_mingw.h:3784
vr::EVRTrackedCameraError ReleaseVideoStreamingService(vr::TrackedCameraHandle_t hTrackedCamera)
Definition openvr_mingw.h:3762
vr::EVRTrackedCameraError GetCameraIntrinsics(vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::HmdVector2_t *pFocalLength, vr::HmdVector2_t *pCenter)
Definition openvr_mingw.h:3753
vr::EVRTrackedCameraError GetVideoStreamTextureSize(vr::TrackedDeviceIndex_t nDeviceIndex, vr::EVRTrackedCameraFrameType eFrameType, vr::VRTextureBounds_t *pTextureBounds, uint32_t *pnWidth, uint32_t *pnHeight)
Definition openvr_mingw.h:3772
vr::EVRTrackedCameraError HasCamera(vr::TrackedDeviceIndex_t nDeviceIndex, bool *pHasCamera)
Definition openvr_mingw.h:3748
vr::EVRTrackedCameraError AcquireVideoStreamingService(vr::TrackedDeviceIndex_t nDeviceIndex, vr::TrackedCameraHandle_t *pHandle)
Definition openvr_mingw.h:3761
background color
Definition gameapi_example.php:46
border style
Definition meshpage.php:1581
Definition openvr_mingw.h:29
uint32_t TrackedDeviceIndex_t
Definition openvr_mingw.h:152
VROverlayFlags
Definition openvr_mingw.h:2903
@ VROverlayFlags_RGSS4X
Definition openvr_mingw.h:2908
@ VROverlayFlags_ShowTouchPadScrollWheel
Definition openvr_mingw.h:2925
@ VROverlayFlags_None
Definition openvr_mingw.h:2904
@ VROverlayFlags_SortWithNonSceneOverlays
Definition openvr_mingw.h:2940
@ VROverlayFlags_SideBySide_Parallel
Definition openvr_mingw.h:2932
@ VROverlayFlags_SendVRScrollEvents
Definition openvr_mingw.h:2920
@ VROverlayFlags_AcceptsGamepadEvents
Definition openvr_mingw.h:2914
@ VROverlayFlags_Curved
Definition openvr_mingw.h:2907
@ VROverlayFlags_NoDashboardTab
Definition openvr_mingw.h:2911
@ VROverlayFlags_VisibleInDashboard
Definition openvr_mingw.h:2943
@ VROverlayFlags_ShowGamepadFocus
Definition openvr_mingw.h:2917
@ VROverlayFlags_TransferOwnershipToInternalProcess
Definition openvr_mingw.h:2929
@ VROverlayFlags_Panorama
Definition openvr_mingw.h:2935
@ VROverlayFlags_StereoPanorama
Definition openvr_mingw.h:2936
@ VROverlayFlags_SendVRTouchpadEvents
Definition openvr_mingw.h:2921
@ VROverlayFlags_SideBySide_Crossed
Definition openvr_mingw.h:2933
EVRTrackedCameraError
Definition openvr_mingw.h:1257
@ VRTrackedCameraError_NotSupportedForThisDevice
Definition openvr_mingw.h:1264
@ VRTrackedCameraError_IPCFailure
Definition openvr_mingw.h:1263
@ VRTrackedCameraError_InvalidArgument
Definition openvr_mingw.h:1273
@ VRTrackedCameraError_FailedToGetGLTextureId
Definition openvr_mingw.h:1270
@ VRTrackedCameraError_SharedTextureFailure
Definition openvr_mingw.h:1271
@ VRTrackedCameraError_OperationFailed
Definition openvr_mingw.h:1259
@ VRTrackedCameraError_None
Definition openvr_mingw.h:1258
@ VRTrackedCameraError_SharedMemoryFailure
Definition openvr_mingw.h:1265
@ VRTrackedCameraError_StreamSetupFailure
Definition openvr_mingw.h:1267
@ VRTrackedCameraError_FrameBufferingFailure
Definition openvr_mingw.h:1266
@ VRTrackedCameraError_InvalidFrameHeaderVersion
Definition openvr_mingw.h:1261
@ VRTrackedCameraError_InvalidHandle
Definition openvr_mingw.h:1260
@ VRTrackedCameraError_OutOfHandles
Definition openvr_mingw.h:1262
@ VRTrackedCameraError_InvalidSharedTextureHandle
Definition openvr_mingw.h:1269
@ VRTrackedCameraError_InvalidGLTextureId
Definition openvr_mingw.h:1268
@ VRTrackedCameraError_InvalidFrameBufferSize
Definition openvr_mingw.h:1274
@ VRTrackedCameraError_NoFrameAvailable
Definition openvr_mingw.h:1272
EVROverlayIntersectionMaskPrimitiveType
Definition openvr_mingw.h:2999
@ OverlayIntersectionPrimitiveType_Rectangle
Definition openvr_mingw.h:3000
@ OverlayIntersectionPrimitiveType_Circle
Definition openvr_mingw.h:3001
ETrackingUniverseOrigin TrackingUniverseOrigin
Definition openvr_mingw.h:4028
VROverlayTransformType
Definition openvr_mingw.h:2894
@ VROverlayTransform_TrackedDeviceRelative
Definition openvr_mingw.h:2896
@ VROverlayTransform_TrackedComponent
Definition openvr_mingw.h:2898
@ VROverlayTransform_SystemOverlay
Definition openvr_mingw.h:2897
@ VROverlayTransform_Absolute
Definition openvr_mingw.h:2895
VR_INTERFACE const char *VR_CALLTYPE VR_RuntimePath()
EVRScreenshotError
Definition openvr_mingw.h:3798
@ VRScreenshotError_None
Definition openvr_mingw.h:3799
@ VRScreenshotError_RequestFailed
Definition openvr_mingw.h:3800
@ VRScreenshotError_BufferTooSmall
Definition openvr_mingw.h:3803
@ VRScreenshotError_NotFound
Definition openvr_mingw.h:3802
@ VRScreenshotError_IncompatibleVersion
Definition openvr_mingw.h:3801
@ VRScreenshotError_ScreenshotAlreadyInProgress
Definition openvr_mingw.h:3804
ECollisionBoundsStyle CollisionBoundsStyle_t
Definition openvr_mingw.h:4033
VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsEnglishDescription(EVRInitError error)
uint64_t PropertyContainerHandle_t
Definition openvr_mingw.h:203
EVRFirmwareError VRFirmwareError
Definition openvr_mingw.h:4035
IVRResources *VR_CALLTYPE VRResources()
Definition openvr_mingw.h:4233
EVRNotificationError
Definition openvr_mingw.h:1130
@ VRNotificationError_SystemWithUserValueAlreadyExists
Definition openvr_mingw.h:1135
@ VRNotificationError_NotificationQueueFull
Definition openvr_mingw.h:1133
@ VRNotificationError_OK
Definition openvr_mingw.h:1131
@ VRNotificationError_InvalidNotificationId
Definition openvr_mingw.h:1132
@ VRNotificationError_InvalidOverlayHandle
Definition openvr_mingw.h:1134
IVRExtendedDisplay *VR_CALLTYPE VRExtendedDisplay()
Definition openvr_mingw.h:4234
EChaperoneConfigFile
Definition openvr_mingw.h:2300
@ EChaperoneConfigFile_Temp
Definition openvr_mingw.h:2302
@ EChaperoneConfigFile_Live
Definition openvr_mingw.h:2301
IVRSystem *VR_CALLTYPE VRSystem()
Definition openvr_mingw.h:4224
int32_t glInt_t
Definition openvr_mingw.h:33
EVRSettingsError
Definition openvr_mingw.h:1983
@ VRSettingsError_ReadFailed
Definition openvr_mingw.h:1987
@ VRSettingsError_JsonParseFailed
Definition openvr_mingw.h:1988
@ VRSettingsError_WriteFailed
Definition openvr_mingw.h:1986
@ VRSettingsError_IPCFailed
Definition openvr_mingw.h:1985
@ VRSettingsError_None
Definition openvr_mingw.h:1984
@ VRSettingsError_UnsetSettingHasNoDefault
Definition openvr_mingw.h:1989
IVRRenderModels *VR_CALLTYPE VRRenderModels()
Definition openvr_mingw.h:4230
uint32_t VRComponentProperties
Definition openvr_mingw.h:3485
ETrackedControllerRole
Definition openvr_mingw.h:172
@ TrackedControllerRole_RightHand
Definition openvr_mingw.h:175
@ TrackedControllerRole_Invalid
Definition openvr_mingw.h:173
@ TrackedControllerRole_LeftHand
Definition openvr_mingw.h:174
IVRScreenshots *VR_CALLTYPE VRScreenshots()
Definition openvr_mingw.h:4229
IVRChaperone *VR_CALLTYPE VRChaperone()
Definition openvr_mingw.h:4225
EGamepadTextInputMode
Definition openvr_mingw.h:2974
@ k_EGamepadTextInputModePassword
Definition openvr_mingw.h:2976
@ k_EGamepadTextInputModeSubmit
Definition openvr_mingw.h:2977
@ k_EGamepadTextInputModeNormal
Definition openvr_mingw.h:2975
EVRTrackedCameraFrameType
Definition openvr_mingw.h:1278
@ VRTrackedCameraFrameType_Distorted
Definition openvr_mingw.h:1279
@ MAX_CAMERA_FRAME_TYPES
Definition openvr_mingw.h:1282
@ VRTrackedCameraFrameType_Undistorted
Definition openvr_mingw.h:1280
@ VRTrackedCameraFrameType_MaximumUndistorted
Definition openvr_mingw.h:1281
EVROverlayError
Definition openvr_mingw.h:1072
@ VROverlayError_ArrayTooSmall
Definition openvr_mingw.h:1087
@ VROverlayError_WrongVisibilityType
Definition openvr_mingw.h:1079
@ VROverlayError_InvalidTrackedDevice
Definition openvr_mingw.h:1084
@ VROverlayError_UnknownOverlay
Definition openvr_mingw.h:1075
@ VROverlayError_KeyInUse
Definition openvr_mingw.h:1082
@ VROverlayError_TextureAlreadyLocked
Definition openvr_mingw.h:1095
@ VROverlayError_WrongTransformType
Definition openvr_mingw.h:1083
@ VROverlayError_KeyboardAlreadyInUse
Definition openvr_mingw.h:1091
@ VROverlayError_TextureLockCapacityReached
Definition openvr_mingw.h:1096
@ VROverlayError_InvalidHandle
Definition openvr_mingw.h:1076
@ VROverlayError_UnableToLoadFile
Definition openvr_mingw.h:1090
@ VROverlayError_KeyTooLong
Definition openvr_mingw.h:1080
@ VROverlayError_OverlayLimitExceeded
Definition openvr_mingw.h:1078
@ VROverlayError_RequestFailed
Definition openvr_mingw.h:1088
@ VROverlayError_InvalidParameter
Definition openvr_mingw.h:1085
@ VROverlayError_NoNeighbor
Definition openvr_mingw.h:1092
@ VROverlayError_ThumbnailCantBeDestroyed
Definition openvr_mingw.h:1086
@ VROverlayError_BadMaskPrimitive
Definition openvr_mingw.h:1094
@ VROverlayError_TextureNotLocked
Definition openvr_mingw.h:1097
@ VROverlayError_PermissionDenied
Definition openvr_mingw.h:1077
@ VROverlayError_None
Definition openvr_mingw.h:1073
@ VROverlayError_NameTooLong
Definition openvr_mingw.h:1081
@ VROverlayError_InvalidTexture
Definition openvr_mingw.h:1089
@ VROverlayError_TooManyMaskPrimitives
Definition openvr_mingw.h:1093
VROverlayInputMethod
Definition openvr_mingw.h:2886
@ VROverlayInputMethod_DualAnalog
Definition openvr_mingw.h:2889
@ VROverlayInputMethod_Mouse
Definition openvr_mingw.h:2888
@ VROverlayInputMethod_None
Definition openvr_mingw.h:2887
EChaperoneImportFlags
Definition openvr_mingw.h:2306
@ EChaperoneImport_BoundsOnly
Definition openvr_mingw.h:2307
uint64_t ButtonMaskFromId(EVRButtonId id)
Definition openvr_mingw.h:721
uint32_t VRNotificationId
Definition openvr_mingw.h:2833
COpenVRContext & OpenVRInternal_ModuleContext()
Definition openvr_mingw.h:4218
EVRApplicationTransitionState
Definition openvr_mingw.h:1791
@ VRApplicationTransition_OldAppQuitSent
Definition openvr_mingw.h:1794
@ VRApplicationTransition_WaitingForExternalLaunch
Definition openvr_mingw.h:1795
@ VRApplicationTransition_NewAppLaunched
Definition openvr_mingw.h:1797
@ VRApplicationTransition_None
Definition openvr_mingw.h:1792
IVRChaperoneSetup *VR_CALLTYPE VRChaperoneSetup()
Definition openvr_mingw.h:4226
VR_INTERFACE bool VR_CALLTYPE VR_IsRuntimeInstalled()
VR_INTERFACE bool VR_CALLTYPE VR_IsHmdPresent()
ETrackedDeviceClass TrackedDeviceClass
Definition openvr_mingw.h:4027
ETrackedDeviceClass
Definition openvr_mingw.h:160
@ TrackedDeviceClass_Controller
Definition openvr_mingw.h:163
@ TrackedDeviceClass_Invalid
Definition openvr_mingw.h:161
@ TrackedDeviceClass_TrackingReference
Definition openvr_mingw.h:165
@ TrackedDeviceClass_HMD
Definition openvr_mingw.h:162
@ TrackedDeviceClass_GenericTracker
Definition openvr_mingw.h:164
@ TrackedDeviceClass_DisplayRedirect
Definition openvr_mingw.h:166
EDeviceActivityLevel
Definition openvr_mingw.h:683
@ k_EDeviceActivityLevel_Unknown
Definition openvr_mingw.h:684
@ k_EDeviceActivityLevel_UserInteraction
Definition openvr_mingw.h:686
@ k_EDeviceActivityLevel_Standby
Definition openvr_mingw.h:688
@ k_EDeviceActivityLevel_UserInteraction_Timeout
Definition openvr_mingw.h:687
@ k_EDeviceActivityLevel_Idle
Definition openvr_mingw.h:685
EVRControllerAxisType
Definition openvr_mingw.h:985
@ k_eControllerAxis_Joystick
Definition openvr_mingw.h:988
@ k_eControllerAxis_None
Definition openvr_mingw.h:986
@ k_eControllerAxis_TrackPad
Definition openvr_mingw.h:987
@ k_eControllerAxis_Trigger
Definition openvr_mingw.h:989
IVRSettings *VR_CALLTYPE VRSettings()
Definition openvr_mingw.h:4232
uint32_t DriverId_t
Definition openvr_mingw.h:146
ETrackedPropertyError TrackedPropertyError
Definition openvr_mingw.h:4030
EHiddenAreaMeshType
Definition openvr_mingw.h:972
@ k_eHiddenAreaMesh_Standard
Definition openvr_mingw.h:973
@ k_eHiddenAreaMesh_Max
Definition openvr_mingw.h:977
@ k_eHiddenAreaMesh_Inverse
Definition openvr_mingw.h:974
@ k_eHiddenAreaMesh_LineLoop
Definition openvr_mingw.h:975
ETrackingResult HmdTrackingResult
Definition openvr_mingw.h:4026
ETextureType
Definition openvr_mingw.h:109
@ TextureType_IOSurface
Definition openvr_mingw.h:113
@ TextureType_Vulkan
Definition openvr_mingw.h:112
@ TextureType_OpenGL
Definition openvr_mingw.h:111
@ TextureType_DirectX
Definition openvr_mingw.h:110
@ TextureType_DirectX12
Definition openvr_mingw.h:114
ETrackedDeviceProperty TrackedDeviceProperty
Definition openvr_mingw.h:4029
VR_INTERFACE uint32_t VR_CALLTYPE VR_GetInitToken()
EVRRenderModelError
Definition openvr_mingw.h:3468
@ VRRenderModelError_BufferTooSmall
Definition openvr_mingw.h:3478
@ VRRenderModelError_MultipleShapes
Definition openvr_mingw.h:3475
@ VRRenderModelError_NoShapes
Definition openvr_mingw.h:3474
@ VRRenderModelError_NotEnoughTexCoords
Definition openvr_mingw.h:3480
@ VRRenderModelError_MultipleTextures
Definition openvr_mingw.h:3477
@ VRRenderModelError_Loading
Definition openvr_mingw.h:3470
@ VRRenderModelError_None
Definition openvr_mingw.h:3469
@ VRRenderModelError_InvalidArg
Definition openvr_mingw.h:3472
@ VRRenderModelError_NotSupported
Definition openvr_mingw.h:3471
@ VRRenderModelError_TooManyVertices
Definition openvr_mingw.h:3476
@ VRRenderModelError_InvalidModel
Definition openvr_mingw.h:3473
@ VRRenderModelError_InvalidTexture
Definition openvr_mingw.h:3482
@ VRRenderModelError_NotEnoughNormals
Definition openvr_mingw.h:3479
VR_INTERFACE void *VR_CALLTYPE VR_GetGenericInterface(const char *pchInterfaceVersion, EVRInitError *peError)
uint32_t PropertyTypeTag_t
Definition openvr_mingw.h:204
EVRInputError
Definition openvr_mingw.h:944
@ VRInputError_MaxCapacityReached
Definition openvr_mingw.h:951
@ VRInputError_None
Definition openvr_mingw.h:945
@ VRInputError_IPCError
Definition openvr_mingw.h:952
@ VRInputError_NoActiveActionSet
Definition openvr_mingw.h:953
@ VRInputError_InvalidHandle
Definition openvr_mingw.h:948
@ VRInputError_NoSteam
Definition openvr_mingw.h:950
@ VRInputError_InvalidDevice
Definition openvr_mingw.h:954
@ VRInputError_NameNotFound
Definition openvr_mingw.h:946
@ VRInputError_InvalidParam
Definition openvr_mingw.h:949
@ VRInputError_WrongType
Definition openvr_mingw.h:947
IVRTrackedCamera *VR_CALLTYPE VRTrackedCamera()
Definition openvr_mingw.h:4235
EVRNotificationType
Definition openvr_mingw.h:2798
@ EVRNotificationType_Transient_SystemWithUserValue
Definition openvr_mingw.h:2810
@ EVRNotificationType_Persistent
Definition openvr_mingw.h:2805
@ EVRNotificationType_Transient
Definition openvr_mingw.h:2801
EVRInitError HmdError
Definition openvr_mingw.h:4023
uint32_t glUInt_t
Definition openvr_mingw.h:34
EVRCompositorError VRCompositorError
Definition openvr_mingw.h:4036
VR_INTERFACE bool VR_CALLTYPE VR_IsInterfaceVersionValid(const char *pchInterfaceVersion)
const uint32_t VRCompositor_ReprojectionAsync
Definition openvr_mingw.h:2443
IVRCompositor *VR_CALLTYPE VRCompositor()
Definition openvr_mingw.h:4227
VR_INTERFACE void VR_CALLTYPE VR_ShutdownInternal()
EGamepadTextInputLineMode
Definition openvr_mingw.h:2982
@ k_EGamepadTextInputLineModeSingleLine
Definition openvr_mingw.h:2983
@ k_EGamepadTextInputLineModeMultipleLines
Definition openvr_mingw.h:2984
EVRApplicationType
Definition openvr_mingw.h:1103
@ VRApplication_Utility
Definition openvr_mingw.h:1109
@ VRApplication_Scene
Definition openvr_mingw.h:1105
@ VRApplication_Max
Definition openvr_mingw.h:1115
@ VRApplication_Overlay
Definition openvr_mingw.h:1106
@ VRApplication_Background
Definition openvr_mingw.h:1107
@ VRApplication_SteamWatchdog
Definition openvr_mingw.h:1112
@ VRApplication_Bootstrapper
Definition openvr_mingw.h:1113
@ VRApplication_VRMonitor
Definition openvr_mingw.h:1111
@ VRApplication_Other
Definition openvr_mingw.h:1104
VR_INTERFACE uint32_t VR_CALLTYPE VR_InitInternal2(EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo)
IVRDriverManager *VR_CALLTYPE VRDriverManager()
Definition openvr_mingw.h:4236
uint32_t ScreenshotHandle_t
Definition openvr_mingw.h:1302
EVRComponentProperty
Definition openvr_mingw.h:3488
@ VRComponentProperty_IsPressed
Definition openvr_mingw.h:3492
@ VRComponentProperty_IsTouched
Definition openvr_mingw.h:3491
@ VRComponentProperty_IsScrolled
Definition openvr_mingw.h:3493
@ VRComponentProperty_IsStatic
Definition openvr_mingw.h:3489
@ VRComponentProperty_IsVisible
Definition openvr_mingw.h:3490
IVRApplications *VR_CALLTYPE VRApplications()
Definition openvr_mingw.h:4231
EVRSubmitFlags VRSubmitFlags_t
Definition openvr_mingw.h:4031
ETrackedDeviceProperty
Definition openvr_mingw.h:235
@ Prop_TrackingRangeMinimumMeters_Float
Definition openvr_mingw.h:352
@ Prop_TrackingRangeMaximumMeters_Float
Definition openvr_mingw.h:353
@ Prop_DongleVersion_Uint64
Definition openvr_mingw.h:261
@ Prop_ModeLabel_String
Definition openvr_mingw.h:354
@ Prop_ScreenshotHorizontalFieldOfViewDegrees_Float
Definition openvr_mingw.h:313
@ Prop_StatusDisplayTransform_Matrix34
Definition openvr_mingw.h:252
@ Prop_DisplayGCBlackClamp_Float
Definition openvr_mingw.h:293
@ Prop_ControllerType_String
Definition openvr_mingw.h:382
@ Prop_IsOnDesktop_Bool
Definition openvr_mingw.h:286
@ Prop_DisplayMCImageWidth_Int32
Definition openvr_mingw.h:317
@ Prop_LensCenterRightV_Float
Definition openvr_mingw.h:304
@ Prop_GraphicsAdapterLuid_Uint64
Definition openvr_mingw.h:324
@ Prop_DeviceClass_Int32
Definition openvr_mingw.h:268
@ Prop_TrackingFirmwareVersion_String
Definition openvr_mingw.h:245
@ Prop_DriverRequestsReducedRendering_Bool
Definition openvr_mingw.h:335
@ Prop_NamedIconPathControllerLeftDeviceOff_String
Definition openvr_mingw.h:328
@ Prop_CanUnifyCoordinateSystemWithHmd_Bool
Definition openvr_mingw.h:263
@ Prop_HasControllerComponent_Bool
Definition openvr_mingw.h:376
@ Prop_ExpectedControllerCount_Int32
Definition openvr_mingw.h:327
@ Prop_VRCVersion_Uint64
Definition openvr_mingw.h:259
@ Prop_AttachedDeviceId_String
Definition openvr_mingw.h:338
@ Prop_BlockServerShutdown_Bool
Definition openvr_mingw.h:262
@ Prop_FirmwareVersion_Uint64
Definition openvr_mingw.h:257
@ Prop_ParentDriver_Uint64
Definition openvr_mingw.h:273
@ Prop_ScreenshotVerticalFieldOfViewDegrees_Float
Definition openvr_mingw.h:314
@ Prop_RegisteredDeviceType_String
Definition openvr_mingw.h:275
@ Prop_ModelNumber_String
Definition openvr_mingw.h:240
@ Prop_DisplayHiddenArea_Binary_Start
Definition openvr_mingw.h:368
@ Prop_HasDisplayComponent_Bool
Definition openvr_mingw.h:375
@ Prop_HasCameraComponent_Bool
Definition openvr_mingw.h:377
@ Prop_HasVirtualDisplayComponent_Bool
Definition openvr_mingw.h:379
@ Prop_DeviceIsWireless_Bool
Definition openvr_mingw.h:249
@ Prop_HardwareRevision_String
Definition openvr_mingw.h:246
@ Prop_PreviousUniverseId_Uint64
Definition openvr_mingw.h:284
@ Prop_DriverRequestsApplicationPause_Bool
Definition openvr_mingw.h:334
@ Prop_FieldOfViewTopDegrees_Float
Definition openvr_mingw.h:350
@ Prop_NamedIconPathDeviceSearching_String
Definition openvr_mingw.h:359
@ Prop_DisplayHiddenArea_Binary_End
Definition openvr_mingw.h:369
@ Prop_DisplayBootloaderVersion_Uint64
Definition openvr_mingw.h:309
@ Prop_DisplayAllowNightMode_Bool
Definition openvr_mingw.h:316
@ Prop_UserIpdMeters_Float
Definition openvr_mingw.h:282
@ Prop_EdidProductID_Int32
Definition openvr_mingw.h:294
@ Prop_CameraFirmwareDescription_String
Definition openvr_mingw.h:307
@ Prop_Invalid
Definition openvr_mingw.h:236
@ Prop_NamedIconPathDeviceAlertLow_String
Definition openvr_mingw.h:365
@ Prop_DisplayFirmwareVersion_Uint64
Definition openvr_mingw.h:285
@ Prop_DisplayGCType_Int32
Definition openvr_mingw.h:296
@ Prop_DisplayGCImage_String
Definition openvr_mingw.h:300
@ Prop_ReportsTimeSinceVSync_Bool
Definition openvr_mingw.h:279
@ Prop_CurrentUniverseId_Uint64
Definition openvr_mingw.h:283
@ Prop_SecondsFromPhotonsToVblank_Float
Definition openvr_mingw.h:321
@ Prop_RadioVersion_Uint64
Definition openvr_mingw.h:260
@ Prop_AllWirelessDongleDescriptions_String
Definition openvr_mingw.h:247
@ Prop_ViveSystemButtonFixRequired_Bool
Definition openvr_mingw.h:272
@ Prop_SerialNumber_String
Definition openvr_mingw.h:241
@ Prop_ControllerRoleHint_Int32
Definition openvr_mingw.h:345
@ Prop_FieldOfViewLeftDegrees_Float
Definition openvr_mingw.h:348
@ Prop_NamedIconPathDeviceNotReady_String
Definition openvr_mingw.h:363
@ Prop_ResourceRoot_String
Definition openvr_mingw.h:274
@ Prop_DriverIsDrawingControllers_Bool
Definition openvr_mingw.h:333
@ Prop_DisplaySuppressed_Bool
Definition openvr_mingw.h:315
@ Prop_CameraToHeadTransform_Matrix34
Definition openvr_mingw.h:295
@ Prop_NamedIconPathDeviceOff_String
Definition openvr_mingw.h:358
@ Prop_VendorSpecific_Reserved_Start
Definition openvr_mingw.h:386
@ Prop_DisplayFPGAVersion_Uint64
Definition openvr_mingw.h:308
@ Prop_NamedIconPathDeviceReady_String
Definition openvr_mingw.h:361
@ Prop_Firmware_ManualUpdate_Bool
Definition openvr_mingw.h:254
@ Prop_ContainsProximitySensor_Bool
Definition openvr_mingw.h:264
@ Prop_ManufacturerName_String
Definition openvr_mingw.h:244
@ Prop_CameraToHeadTransforms_Matrix34_Array
Definition openvr_mingw.h:332
@ Prop_AudioFirmwareVersion_Uint64
Definition openvr_mingw.h:311
@ Prop_NamedIconPathDeviceSearchingAlert_String
Definition openvr_mingw.h:360
@ Prop_VendorSpecific_Reserved_End
Definition openvr_mingw.h:387
@ Prop_DeviceBatteryPercentage_Float
Definition openvr_mingw.h:251
@ Prop_DisplayMCImageHeight_Int32
Definition openvr_mingw.h:318
@ Prop_NamedIconPathDeviceStandby_String
Definition openvr_mingw.h:364
@ Prop_SupportedButtons_Uint64
Definition openvr_mingw.h:339
@ Prop_CameraFirmwareVersion_Uint64
Definition openvr_mingw.h:306
@ Prop_DisplayMCImageLeft_String
Definition openvr_mingw.h:291
@ Prop_DeviceProvidesBatteryStatus_Bool
Definition openvr_mingw.h:265
@ Prop_Axis1Type_Int32
Definition openvr_mingw.h:341
@ Prop_InstallPath_String
Definition openvr_mingw.h:374
@ Prop_DeviceIsCharging_Bool
Definition openvr_mingw.h:250
@ Prop_Axis0Type_Int32
Definition openvr_mingw.h:340
@ Prop_RenderModelName_String
Definition openvr_mingw.h:242
@ Prop_ConnectedWirelessDongle_String
Definition openvr_mingw.h:248
@ Prop_DisplayFrequency_Float
Definition openvr_mingw.h:281
@ Prop_HasDriverDirectModeComponent_Bool
Definition openvr_mingw.h:378
@ Prop_InputProfilePath_String
Definition openvr_mingw.h:276
@ Prop_ExpectedTrackingReferenceCount_Int32
Definition openvr_mingw.h:326
@ Prop_DisplayGCOffset_Float
Definition openvr_mingw.h:297
@ Prop_DisplayMCOffset_Float
Definition openvr_mingw.h:288
@ Prop_Axis4Type_Int32
Definition openvr_mingw.h:344
@ Prop_Firmware_ManualUpdateURL_String
Definition openvr_mingw.h:255
@ Prop_LegacyInputProfile_String
Definition openvr_mingw.h:383
@ Prop_DisplayMCImageRight_String
Definition openvr_mingw.h:292
@ Prop_UserHeadToEyeDepthMeters_Float
Definition openvr_mingw.h:305
@ Prop_Firmware_ProgrammingTarget_String
Definition openvr_mingw.h:267
@ Prop_DisplayMCImageNumChannels_Int32
Definition openvr_mingw.h:319
@ Prop_NamedIconPathControllerRightDeviceOff_String
Definition openvr_mingw.h:329
@ Prop_HasCamera_Bool
Definition openvr_mingw.h:269
@ Prop_SecondsFromVsyncToPhotons_Float
Definition openvr_mingw.h:280
@ Prop_LensCenterRightU_Float
Definition openvr_mingw.h:303
@ Prop_LensCenterLeftV_Float
Definition openvr_mingw.h:302
@ Prop_DisplayDebugMode_Bool
Definition openvr_mingw.h:323
@ Prop_Axis3Type_Int32
Definition openvr_mingw.h:343
@ Prop_Firmware_UpdateAvailable_Bool
Definition openvr_mingw.h:253
@ Prop_TrackedDeviceProperty_Max
Definition openvr_mingw.h:389
@ Prop_DisplayMCImageData_Binary
Definition openvr_mingw.h:320
@ Prop_IconPathName_String
Definition openvr_mingw.h:357
@ Prop_EdidVendorID_Int32
Definition openvr_mingw.h:290
@ Prop_WillDriftInYaw_Bool
Definition openvr_mingw.h:243
@ Prop_DriverVersion_String
Definition openvr_mingw.h:270
@ Prop_NamedIconPathTrackingReferenceDeviceOff_String
Definition openvr_mingw.h:330
@ Prop_HardwareRevision_Uint64
Definition openvr_mingw.h:256
@ Prop_DisplayMCType_Int32
Definition openvr_mingw.h:287
@ Prop_DisplayMCScale_Float
Definition openvr_mingw.h:289
@ Prop_DeviceCanPowerOff_Bool
Definition openvr_mingw.h:266
@ Prop_FieldOfViewBottomDegrees_Float
Definition openvr_mingw.h:351
@ Prop_ParentContainer
Definition openvr_mingw.h:370
@ Prop_DoNotApplyPrediction_Bool
Definition openvr_mingw.h:331
@ Prop_DriverProvidedChaperonePath_String
Definition openvr_mingw.h:325
@ Prop_LensCenterLeftU_Float
Definition openvr_mingw.h:301
@ Prop_TrackingSystemName_String
Definition openvr_mingw.h:239
@ Prop_DriverDirectModeSendsVsyncEvents_Bool
Definition openvr_mingw.h:322
@ Prop_NamedIconPathDeviceReadyAlert_String
Definition openvr_mingw.h:362
@ Prop_UserConfigPath_String
Definition openvr_mingw.h:373
@ Prop_DisplayGCScale_Float
Definition openvr_mingw.h:298
@ Prop_Axis2Type_Int32
Definition openvr_mingw.h:342
@ Prop_Firmware_ForceUpdateRequired_Bool
Definition openvr_mingw.h:271
@ Prop_CameraCompatibilityMode_Int32
Definition openvr_mingw.h:312
@ Prop_DisplayGCPrescale_Float
Definition openvr_mingw.h:299
@ Prop_FieldOfViewRightDegrees_Float
Definition openvr_mingw.h:349
@ Prop_DisplayHardwareVersion_Uint64
Definition openvr_mingw.h:310
@ Prop_FPGAVersion_Uint64
Definition openvr_mingw.h:258
EVRNotificationStyle
Definition openvr_mingw.h:2814
@ EVRNotificationStyle_Application
Definition openvr_mingw.h:2819
@ EVRNotificationStyle_Contact_Active
Definition openvr_mingw.h:2828
@ EVRNotificationStyle_Contact_Enabled
Definition openvr_mingw.h:2825
@ EVRNotificationStyle_Contact_Disabled
Definition openvr_mingw.h:2822
@ EVRNotificationStyle_None
Definition openvr_mingw.h:2816
uint32_t & VRToken()
Definition openvr_mingw.h:4039
ETrackingUniverseOrigin
Definition openvr_mingw.h:196
@ TrackingUniverseStanding
Definition openvr_mingw.h:198
@ TrackingUniverseRawAndUncalibrated
Definition openvr_mingw.h:199
@ TrackingUniverseSeated
Definition openvr_mingw.h:197
EVRState
Definition openvr_mingw.h:494
@ VRState_Off
Definition openvr_mingw.h:496
@ VRState_Searching_Alert
Definition openvr_mingw.h:498
@ VRState_Undefined
Definition openvr_mingw.h:495
@ VRState_Searching
Definition openvr_mingw.h:497
@ VRState_Ready_Alert_Low
Definition openvr_mingw.h:503
@ VRState_Standby
Definition openvr_mingw.h:502
@ VRState_Ready
Definition openvr_mingw.h:499
@ VRState_Ready_Alert
Definition openvr_mingw.h:500
@ VRState_NotReady
Definition openvr_mingw.h:501
EOverlayDirection
Definition openvr_mingw.h:2989
@ OverlayDirection_Down
Definition openvr_mingw.h:2991
@ OverlayDirection_Right
Definition openvr_mingw.h:2993
@ OverlayDirection_Left
Definition openvr_mingw.h:2992
@ OverlayDirection_Count
Definition openvr_mingw.h:2995
@ OverlayDirection_Up
Definition openvr_mingw.h:2990
ETrackingResult
Definition openvr_mingw.h:136
@ TrackingResult_Uninitialized
Definition openvr_mingw.h:137
@ TrackingResult_Calibrating_InProgress
Definition openvr_mingw.h:139
@ TrackingResult_Calibrating_OutOfRange
Definition openvr_mingw.h:140
@ TrackingResult_Running_OutOfRange
Definition openvr_mingw.h:143
@ TrackingResult_Running_OK
Definition openvr_mingw.h:142
EVRFirmwareError
Definition openvr_mingw.h:1121
@ VRFirmwareError_Fail
Definition openvr_mingw.h:1124
@ VRFirmwareError_Success
Definition openvr_mingw.h:1123
@ VRFirmwareError_None
Definition openvr_mingw.h:1122
EVROverlayError VROverlayError
Definition openvr_mingw.h:4034
EVRInitError
Definition openvr_mingw.h:1143
@ VRInitError_Init_VRClientDLLNotFound
Definition openvr_mingw.h:1149
@ VRInitError_Steam_SteamInstallationNotFound
Definition openvr_mingw.h:1237
@ VRInitError_Init_HmdNotFound
Definition openvr_mingw.h:1155
@ VRInitError_Init_Retry
Definition openvr_mingw.h:1162
@ VRInitError_Init_InstallationNotFound
Definition openvr_mingw.h:1147
@ VRInitError_Init_ShuttingDown
Definition openvr_mingw.h:1166
@ VRInitError_IPC_Failed
Definition openvr_mingw.h:1208
@ VRInitError_Init_VRHomeStartupFailed
Definition openvr_mingw.h:1183
@ VRInitError_Init_NoServerForBackgroundApp
Definition openvr_mingw.h:1168
@ VRInitError_Init_NotInitialized
Definition openvr_mingw.h:1156
@ VRInitError_Init_InvalidApplicationType
Definition openvr_mingw.h:1177
@ VRInitError_VendorSpecific_HmdFound_ConfigFailedSanityCheck
Definition openvr_mingw.h:1235
@ VRInitError_Init_AppInfoInitFailed
Definition openvr_mingw.h:1161
@ VRInitError_Compositor_Failed
Definition openvr_mingw.h:1213
@ VRInitError_Driver_HmdDisplayMirrored
Definition openvr_mingw.h:1201
@ VRInitError_Compositor_FirmwareRequiresUpdate
Definition openvr_mingw.h:1215
@ VRInitError_Init_InvalidInterface
Definition openvr_mingw.h:1153
@ VRInitError_Init_PathRegistryNotWritable
Definition openvr_mingw.h:1160
@ VRInitError_Init_HmdNotFoundPresenceFailed
Definition openvr_mingw.h:1173
@ VRInitError_VendorSpecific_HmdFound_UnableToInitZLib
Definition openvr_mingw.h:1228
@ VRInitError_Init_FirmwareUpdateBusy
Definition openvr_mingw.h:1185
@ VRInitError_VendorSpecific_HmdFound_UserDataAddressRange
Definition openvr_mingw.h:1233
@ VRInitError_Driver_Unknown
Definition openvr_mingw.h:1190
@ VRInitError_Init_TooManyObjects
Definition openvr_mingw.h:1167
@ VRInitError_VendorSpecific_HmdFound_ConfigTooBig
Definition openvr_mingw.h:1226
@ VRInitError_Init_NoLogPath
Definition openvr_mingw.h:1159
@ VRInitError_IPC_ConnectFailed
Definition openvr_mingw.h:1204
@ VRInitError_Init_VRHomeNotFound
Definition openvr_mingw.h:1182
@ VRInitError_Init_UserConfigDirectoryInvalid
Definition openvr_mingw.h:1154
@ VRInitError_Driver_TrackedDeviceInterfaceUnknown
Definition openvr_mingw.h:1198
@ VRInitError_Init_VRDashboardNotFound
Definition openvr_mingw.h:1180
@ VRInitError_Driver_HmdUnknown
Definition openvr_mingw.h:1191
@ VRInitError_VendorSpecific_HmdFound_CantReadFirmwareVersion
Definition openvr_mingw.h:1229
@ VRInitError_VendorSpecific_HmdFound_UserDataError
Definition openvr_mingw.h:1234
@ VRInitError_IPC_CompositorConnectFailed
Definition openvr_mingw.h:1209
@ VRInitError_Init_InitCanceledByUser
Definition openvr_mingw.h:1163
@ VRInitError_Init_NotSupportedWithCompositor
Definition openvr_mingw.h:1169
@ VRInitError_Driver_NotLoaded
Definition openvr_mingw.h:1192
@ VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart
Definition openvr_mingw.h:1224
@ VRInitError_VendorSpecific_UnableToConnectToOculusRuntime
Definition openvr_mingw.h:1220
@ VRInitError_Driver_RuntimeOutOfDate
Definition openvr_mingw.h:1193
@ VRInitError_Init_SettingsInitFailed
Definition openvr_mingw.h:1165
@ VRInitError_Compositor_UnableToCreateDevice
Definition openvr_mingw.h:1218
@ VRInitError_Init_Internal
Definition openvr_mingw.h:1171
@ VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataNext
Definition openvr_mingw.h:1232
@ VRInitError_Init_USBServiceBusy
Definition openvr_mingw.h:1187
@ VRInitError_Driver_HmdDisplayNotFound
Definition openvr_mingw.h:1197
@ VRInitError_Driver_Failed
Definition openvr_mingw.h:1189
@ VRInitError_Compositor_OverlayInitFailed
Definition openvr_mingw.h:1216
@ VRInitError_Init_FactoryNotFound
Definition openvr_mingw.h:1151
@ VRInitError_Compositor_D3D11HardwareRequired
Definition openvr_mingw.h:1214
@ VRInitError_IPC_ConnectFailedAfterMultipleAttempts
Definition openvr_mingw.h:1211
@ VRInitError_None
Definition openvr_mingw.h:1144
@ VRInitError_Driver_HmdInUse
Definition openvr_mingw.h:1194
@ VRInitError_Driver_CalibrationInvalid
Definition openvr_mingw.h:1196
@ VRInitError_Init_NoConfigPath
Definition openvr_mingw.h:1158
@ VRInitError_IPC_CompositorInitFailed
Definition openvr_mingw.h:1206
@ VRInitError_Init_FileNotFound
Definition openvr_mingw.h:1150
@ VRInitError_Init_HmdDriverIdIsNone
Definition openvr_mingw.h:1172
@ VRInitError_IPC_ServerInitFailed
Definition openvr_mingw.h:1203
@ VRInitError_Init_PathRegistryNotFound
Definition openvr_mingw.h:1157
@ VRInitError_VendorSpecific_HmdFound_CantOpenDevice
Definition openvr_mingw.h:1223
@ VRInitError_Init_InstallationCorrupt
Definition openvr_mingw.h:1148
@ VRInitError_Unknown
Definition openvr_mingw.h:1145
@ VRInitError_Driver_NotCalibrated
Definition openvr_mingw.h:1195
@ VRInitError_Init_AnotherAppLaunching
Definition openvr_mingw.h:1164
@ VRInitError_VendorSpecific_HmdFound_NoStoredConfig
Definition openvr_mingw.h:1225
@ VRInitError_IPC_MutexInitFailed
Definition openvr_mingw.h:1207
@ VRInitError_Init_WatchdogDisabledInSettings
Definition openvr_mingw.h:1179
@ VRInitError_Init_InterfaceNotFound
Definition openvr_mingw.h:1152
@ VRInitError_Init_VRDashboardStartupFailed
Definition openvr_mingw.h:1181
@ VRInitError_Init_NotAvailableToWatchdogApps
Definition openvr_mingw.h:1178
@ VRInitError_Compositor_ScreenshotsInitFailed
Definition openvr_mingw.h:1217
@ VRInitError_Init_RebootingBusy
Definition openvr_mingw.h:1184
@ VRInitError_VendorSpecific_WindowsNotInDevMode
Definition openvr_mingw.h:1221
@ VRInitError_VendorSpecific_HmdFound_UnableToGetUserDataStart
Definition openvr_mingw.h:1231
@ VRInitError_Driver_HmdDriverIdOutOfBounds
Definition openvr_mingw.h:1200
@ VRInitError_VendorSpecific_HmdFound_ConfigTooSmall
Definition openvr_mingw.h:1227
@ VRInitError_Init_FirmwareRecoveryBusy
Definition openvr_mingw.h:1186
@ VRInitError_Init_VRMonitorStartupFailed
Definition openvr_mingw.h:1175
@ VRInitError_Init_VRMonitorNotFound
Definition openvr_mingw.h:1174
@ VRInitError_IPC_CompositorInvalidConnectResponse
Definition openvr_mingw.h:1210
@ VRInitError_Init_NotAvailableToUtilityApps
Definition openvr_mingw.h:1170
@ VRInitError_Init_LowPowerWatchdogNotSupported
Definition openvr_mingw.h:1176
@ VRInitError_IPC_SharedStateInitFailed
Definition openvr_mingw.h:1205
@ VRInitError_VendorSpecific_HmdFound_UnableToSendUserDataStart
Definition openvr_mingw.h:1230
EVRCompositorError
Definition openvr_mingw.h:2418
@ VRCompositorError_IndexOutOfRange
Definition openvr_mingw.h:2428
@ VRCompositorError_None
Definition openvr_mingw.h:2419
@ VRCompositorError_IncompatibleVersion
Definition openvr_mingw.h:2421
@ VRCompositorError_SharedTexturesNotSupported
Definition openvr_mingw.h:2427
@ VRCompositorError_DoNotHaveFocus
Definition openvr_mingw.h:2422
@ VRCompositorError_TextureUsesUnsupportedFormat
Definition openvr_mingw.h:2426
@ VRCompositorError_IsNotSceneApplication
Definition openvr_mingw.h:2424
@ VRCompositorError_InvalidBounds
Definition openvr_mingw.h:2430
@ VRCompositorError_TextureIsOnWrongDevice
Definition openvr_mingw.h:2425
@ VRCompositorError_RequestFailed
Definition openvr_mingw.h:2420
@ VRCompositorError_AlreadySubmitted
Definition openvr_mingw.h:2429
@ VRCompositorError_InvalidTexture
Definition openvr_mingw.h:2423
EVRSubmitFlags
Definition openvr_mingw.h:446
@ Submit_LensDistortionAlreadyApplied
Definition openvr_mingw.h:453
@ Submit_Reserved
Definition openvr_mingw.h:459
@ Submit_Default
Definition openvr_mingw.h:448
@ Submit_TextureWithDepth
Definition openvr_mingw.h:467
@ Submit_TextureWithPose
Definition openvr_mingw.h:463
@ Submit_GlRenderBuffer
Definition openvr_mingw.h:456
EColorSpace ColorSpace
Definition openvr_mingw.h:4025
EDualAnalogWhich
Definition openvr_mingw.h:873
@ k_EDualAnalog_Right
Definition openvr_mingw.h:875
@ k_EDualAnalog_Left
Definition openvr_mingw.h:874
uint64_t SharedTextureHandle_t
Definition openvr_mingw.h:132
EColorSpace
Definition openvr_mingw.h:118
@ ColorSpace_Gamma
Definition openvr_mingw.h:120
@ ColorSpace_Auto
Definition openvr_mingw.h:119
@ ColorSpace_Linear
Definition openvr_mingw.h:121
EVRApplicationError
Definition openvr_mingw.h:1734
@ VRApplicationError_NoApplication
Definition openvr_mingw.h:1739
@ VRApplicationError_InvalidManifest
Definition openvr_mingw.h:1744
@ VRApplicationError_AppKeyAlreadyExists
Definition openvr_mingw.h:1737
@ VRApplicationError_UnknownApplication
Definition openvr_mingw.h:1741
@ VRApplicationError_NoManifest
Definition openvr_mingw.h:1738
@ VRApplicationError_ApplicationAlreadyStarting
Definition openvr_mingw.h:1747
@ VRApplicationError_InvalidIndex
Definition openvr_mingw.h:1740
@ VRApplicationError_SteamVRIsExiting
Definition openvr_mingw.h:1752
@ VRApplicationError_IPCFailed
Definition openvr_mingw.h:1742
@ VRApplicationError_LaunchFailed
Definition openvr_mingw.h:1746
@ VRApplicationError_None
Definition openvr_mingw.h:1735
@ VRApplicationError_OldApplicationQuitting
Definition openvr_mingw.h:1749
@ VRApplicationError_BufferTooSmall
Definition openvr_mingw.h:1754
@ VRApplicationError_InvalidApplication
Definition openvr_mingw.h:1745
@ VRApplicationError_UnknownProperty
Definition openvr_mingw.h:1756
@ VRApplicationError_LaunchInProgress
Definition openvr_mingw.h:1748
@ VRApplicationError_IsTemplate
Definition openvr_mingw.h:1751
@ VRApplicationError_PropertyNotSet
Definition openvr_mingw.h:1755
@ VRApplicationError_ApplicationAlreadyRunning
Definition openvr_mingw.h:1743
@ VRApplicationError_InvalidParameter
Definition openvr_mingw.h:1757
@ VRApplicationError_TransitionAborted
Definition openvr_mingw.h:1750
VRMessageOverlayResponse
Definition openvr_mingw.h:2947
@ VRMessageOverlayResponse_CouldntFindOrCreateClientOverlay
Definition openvr_mingw.h:2953
@ VRMessageOverlayResponse_ApplicationQuit
Definition openvr_mingw.h:2954
@ VRMessageOverlayResponse_ButtonPress_0
Definition openvr_mingw.h:2948
@ VRMessageOverlayResponse_ButtonPress_1
Definition openvr_mingw.h:2949
@ VRMessageOverlayResponse_ButtonPress_3
Definition openvr_mingw.h:2951
@ VRMessageOverlayResponse_CouldntFindSystemOverlay
Definition openvr_mingw.h:2952
@ VRMessageOverlayResponse_ButtonPress_2
Definition openvr_mingw.h:2950
int32_t TextureID_t
Definition openvr_mingw.h:3531
const uint32_t VRCompositor_ReprojectionReason_Cpu
Definition openvr_mingw.h:2441
uint64_t TrackedCameraHandle_t
Definition openvr_mingw.h:1285
EVRCompositorTimingMode
Definition openvr_mingw.h:2435
@ VRCompositorTimingMode_Explicit_ApplicationPerformsPostPresentHandoff
Definition openvr_mingw.h:2438
@ VRCompositorTimingMode_Explicit_RuntimePerformsPostPresentHandoff
Definition openvr_mingw.h:2437
@ VRCompositorTimingMode_Implicit
Definition openvr_mingw.h:2436
EVRMouseButton
Definition openvr_mingw.h:732
@ VRMouseButton_Left
Definition openvr_mingw.h:733
@ VRMouseButton_Right
Definition openvr_mingw.h:734
@ VRMouseButton_Middle
Definition openvr_mingw.h:735
EVRScreenshotPropertyFilenames
Definition openvr_mingw.h:1251
@ VRScreenshotPropertyFilenames_Preview
Definition openvr_mingw.h:1252
@ VRScreenshotPropertyFilenames_VR
Definition openvr_mingw.h:1253
IVROverlay *VR_CALLTYPE VROverlay()
Definition openvr_mingw.h:4228
const TextureID_t INVALID_TEXTURE_ID
Definition openvr_mingw.h:3533
ECollisionBoundsStyle
Definition openvr_mingw.h:1044
@ COLLISION_BOUNDS_STYLE_ADVANCED
Definition openvr_mingw.h:1048
@ COLLISION_BOUNDS_STYLE_SQUARES
Definition openvr_mingw.h:1047
@ COLLISION_BOUNDS_STYLE_COUNT
Definition openvr_mingw.h:1051
@ COLLISION_BOUNDS_STYLE_BEGINNER
Definition openvr_mingw.h:1045
@ COLLISION_BOUNDS_STYLE_INTERMEDIATE
Definition openvr_mingw.h:1046
@ COLLISION_BOUNDS_STYLE_NONE
Definition openvr_mingw.h:1049
VRControllerState001_t VRControllerState_t
Definition openvr_mingw.h:1030
const uint32_t VRCompositor_ReprojectionReason_Gpu
Definition openvr_mingw.h:2442
void * glSharedTextureHandle_t
Definition openvr_mingw.h:32
EVREye Hmd_Eye
Definition openvr_mingw.h:4024
ChaperoneCalibrationState
Definition openvr_mingw.h:2218
@ ChaperoneCalibrationState_Error
Definition openvr_mingw.h:2229
@ ChaperoneCalibrationState_OK
Definition openvr_mingw.h:2220
@ ChaperoneCalibrationState_Warning_BaseStationRemoved
Definition openvr_mingw.h:2225
@ ChaperoneCalibrationState_Warning
Definition openvr_mingw.h:2223
@ ChaperoneCalibrationState_Error_PlayAreaInvalid
Definition openvr_mingw.h:2232
@ ChaperoneCalibrationState_Warning_BaseStationMayHaveMoved
Definition openvr_mingw.h:2224
@ ChaperoneCalibrationState_Warning_SeatedBoundsInvalid
Definition openvr_mingw.h:2226
@ ChaperoneCalibrationState_Error_BaseStationUninitialized
Definition openvr_mingw.h:2230
@ ChaperoneCalibrationState_Error_BaseStationConflict
Definition openvr_mingw.h:2231
@ ChaperoneCalibrationState_Error_CollisionBoundsInvalid
Definition openvr_mingw.h:2233
IVRSystem * VR_Init(EVRInitError *peError, EVRApplicationType eApplicationType, const char *pStartupInfo=nullptr)
Definition openvr_mingw.h:4259
ETrackedPropertyError
Definition openvr_mingw.h:397
@ TrackedProp_CouldNotContactServer
Definition openvr_mingw.h:404
@ TrackedProp_ValueNotProvidedByDevice
Definition openvr_mingw.h:405
@ TrackedProp_InvalidDevice
Definition openvr_mingw.h:403
@ TrackedProp_NotYetAvailable
Definition openvr_mingw.h:407
@ TrackedProp_WrongDeviceClass
Definition openvr_mingw.h:400
@ TrackedProp_WrongDataType
Definition openvr_mingw.h:399
@ TrackedProp_StringExceedsMaximumLength
Definition openvr_mingw.h:406
@ TrackedProp_UnknownProperty
Definition openvr_mingw.h:402
@ TrackedProp_InvalidOperation
Definition openvr_mingw.h:409
@ TrackedProp_PermissionDenied
Definition openvr_mingw.h:408
@ TrackedProp_BufferTooSmall
Definition openvr_mingw.h:401
@ TrackedProp_Success
Definition openvr_mingw.h:398
@ TrackedProp_CannotWriteToWildcards
Definition openvr_mingw.h:410
EVRScreenshotError VRScreenshotsError
Definition openvr_mingw.h:4037
EVREventType
Definition openvr_mingw.h:508
@ VREvent_ChaperoneTempDataHasChanged
Definition openvr_mingw.h:606
@ VREvent_PropertyChanged
Definition openvr_mingw.h:522
@ VREvent_TrackedCamera_EditingSurface
Definition openvr_mingw.h:660
@ VREvent_PrimaryDashboardDeviceChanged
Definition openvr_mingw.h:591
@ VREvent_Input_HapticVibration
Definition openvr_mingw.h:669
@ VREvent_Notification_Hidden
Definition openvr_mingw.h:594
@ VREvent_DashboardThumbSelected
Definition openvr_mingw.h:568
@ VREvent_ChaperoneDataHasChanged
Definition openvr_mingw.h:604
@ VREvent_ConsoleOpened
Definition openvr_mingw.h:561
@ VREvent_ButtonUntouch
Definition openvr_mingw.h:529
@ VREvent_DualAnalog_ModeSwitch1
Definition openvr_mingw.h:536
@ VREvent_PerformanceTest_FidelityLevel
Definition openvr_mingw.h:664
@ VREvent_ModelSkinSettingsHaveChanged
Definition openvr_mingw.h:615
@ VREvent_InputFocusCaptured
Definition openvr_mingw.h:549
@ VREvent_ReprojectionSettingHasChanged
Definition openvr_mingw.h:614
@ VREvent_FocusEnter
Definition openvr_mingw.h:543
@ VREvent_TrackedCamera_PauseVideoStream
Definition openvr_mingw.h:658
@ VREvent_DualAnalog_Press
Definition openvr_mingw.h:531
@ VREvent_VendorSpecific_Reserved_End
Definition openvr_mingw.h:673
@ VREvent_ScreenshotFailed
Definition openvr_mingw.h:587
@ VREvent_NullSectionSettingChanged
Definition openvr_mingw.h:621
@ VREvent_ConsoleClosed
Definition openvr_mingw.h:562
@ VREvent_OverlayGamepadFocusLost
Definition openvr_mingw.h:576
@ VREvent_FocusLeave
Definition openvr_mingw.h:544
@ VREvent_SeatedZeroPoseReset
Definition openvr_mingw.h:608
@ VREvent_Notification_Destroyed
Definition openvr_mingw.h:596
@ VREvent_Compositor_ChaperoneBoundsShown
Definition openvr_mingw.h:653
@ VREvent_TrackedCamera_StartVideoStream
Definition openvr_mingw.h:656
@ VREvent_ScreenshotTaken
Definition openvr_mingw.h:586
@ VREvent_FirmwareUpdateStarted
Definition openvr_mingw.h:635
@ VREvent_DualAnalog_Cancel
Definition openvr_mingw.h:538
@ VREvent_QuitAborted_UserPrompt
Definition openvr_mingw.h:600
@ VREvent_OverlayGamepadFocusGained
Definition openvr_mingw.h:575
@ VREvent_ProcessDisconnected
Definition openvr_mingw.h:649
@ VREvent_ChaperoneUniverseHasChanged
Definition openvr_mingw.h:605
@ VREvent_OverlayShown
Definition openvr_mingw.h:564
@ VREvent_TrackedDeviceUpdated
Definition openvr_mingw.h:513
@ VREvent_DashboardDeactivated
Definition openvr_mingw.h:567
@ VREvent_ImageFailed
Definition openvr_mingw.h:581
@ VREvent_DashboardRequested
Definition openvr_mingw.h:569
@ VREvent_TrackedDeviceUserInteractionStarted
Definition openvr_mingw.h:514
@ VREvent_PowerSettingsHaveChanged
Definition openvr_mingw.h:617
@ VREvent_ProcessConnected
Definition openvr_mingw.h:648
@ VREvent_ChaperoneSettingsHaveChanged
Definition openvr_mingw.h:607
@ VREvent_HideRenderModels
Definition openvr_mingw.h:558
@ VREvent_SubmitScreenshotToDashboard
Definition openvr_mingw.h:588
@ VREvent_KeyboardCharInput
Definition openvr_mingw.h:639
@ VREvent_TouchPadMove
Definition openvr_mingw.h:546
@ VREvent_ScreenshotTriggered
Definition openvr_mingw.h:580
@ VREvent_MouseButtonUp
Definition openvr_mingw.h:542
@ VREvent_DualAnalog_Move
Definition openvr_mingw.h:535
@ VREvent_ApplicationTransitionAborted
Definition openvr_mingw.h:643
@ VREvent_TrackedDeviceDeactivated
Definition openvr_mingw.h:512
@ VREvent_SceneFocusGained
Definition openvr_mingw.h:552
@ VREvent_KeyboardClosed
Definition openvr_mingw.h:638
@ VREvent_PerfSectionSettingChanged
Definition openvr_mingw.h:625
@ VREvent_KeyboardDone
Definition openvr_mingw.h:640
@ VREvent_ShowRenderModels
Definition openvr_mingw.h:559
@ VREvent_SceneFocusChanged
Definition openvr_mingw.h:554
@ VREvent_WatchdogWakeUpRequested
Definition openvr_mingw.h:520
@ VREvent_WebInterfaceSectionSettingChanged
Definition openvr_mingw.h:627
@ VREvent_CameraSettingsHaveChanged
Definition openvr_mingw.h:613
@ VREvent_None
Definition openvr_mingw.h:509
@ VREvent_Compositor_MirrorWindowHidden
Definition openvr_mingw.h:652
@ VREvent_DashboardActivated
Definition openvr_mingw.h:566
@ VREvent_PerformanceTest_EnableCapture
Definition openvr_mingw.h:662
@ VREvent_InputFocusChanged
Definition openvr_mingw.h:555
@ VREvent_ImageLoaded
Definition openvr_mingw.h:572
@ VREvent_ApplicationListUpdated
Definition openvr_mingw.h:645
@ VREvent_MouseMove
Definition openvr_mingw.h:540
@ VREvent_SceneApplicationSecondaryRenderingStarted
Definition openvr_mingw.h:556
@ VREvent_Notification_Shown
Definition openvr_mingw.h:593
@ VREvent_RenderToast
Definition openvr_mingw.h:571
@ VREvent_StatusUpdate
Definition openvr_mingw.h:629
@ VREvent_ButtonTouch
Definition openvr_mingw.h:528
@ VREvent_ApplicationTransitionNewAppStarted
Definition openvr_mingw.h:644
@ VREvent_NotificationsSectionSettingChanged
Definition openvr_mingw.h:623
@ VREvent_TrackedDeviceActivated
Definition openvr_mingw.h:511
@ VREvent_EnterStandbyMode
Definition openvr_mingw.h:517
@ VREvent_EnableHomeAppSettingsHaveChanged
Definition openvr_mingw.h:618
@ VREvent_ButtonPress
Definition openvr_mingw.h:526
@ VREvent_WirelessDisconnect
Definition openvr_mingw.h:523
@ VREvent_SteamVRSectionSettingChanged
Definition openvr_mingw.h:619
@ VREvent_LeaveStandbyMode
Definition openvr_mingw.h:518
@ VREvent_Notification_BeginInteraction
Definition openvr_mingw.h:595
@ VREvent_ShowKeyboard
Definition openvr_mingw.h:573
@ VREvent_SceneFocusLost
Definition openvr_mingw.h:551
@ VREvent_AudioSettingsHaveChanged
Definition openvr_mingw.h:610
@ VREvent_HideKeyboard
Definition openvr_mingw.h:574
@ VREvent_MouseButtonDown
Definition openvr_mingw.h:541
@ VREvent_DashboardGuideButtonDown
Definition openvr_mingw.h:578
@ VREvent_ApplicationTransitionStarted
Definition openvr_mingw.h:642
@ VREvent_DriverRequestedQuit
Definition openvr_mingw.h:602
@ VREvent_ApplicationMimeTypeLoad
Definition openvr_mingw.h:646
@ VREvent_BackgroundSettingHasChanged
Definition openvr_mingw.h:612
@ VREvent_ApplicationTransitionNewAppLaunchComplete
Definition openvr_mingw.h:647
@ VREvent_MessageOverlayCloseRequested
Definition openvr_mingw.h:667
@ VREvent_OverlayHidden
Definition openvr_mingw.h:565
@ VREvent_ResetDashboard
Definition openvr_mingw.h:570
@ VREvent_Compositor_MirrorWindowShown
Definition openvr_mingw.h:651
@ VREvent_Scroll
Definition openvr_mingw.h:545
@ VREvent_WebInterface_InstallDriverCompleted
Definition openvr_mingw.h:631
@ VREvent_IpdChanged
Definition openvr_mingw.h:516
@ VREvent_DashboardGuideButtonUp
Definition openvr_mingw.h:579
@ VREvent_QuitAcknowledged
Definition openvr_mingw.h:601
@ VREvent_DashboardSectionSettingChanged
Definition openvr_mingw.h:626
@ VREvent_InputFocusReleased
Definition openvr_mingw.h:550
@ VREvent_DualAnalog_Touch
Definition openvr_mingw.h:533
@ VREvent_Compositor_ChaperoneBoundsHidden
Definition openvr_mingw.h:654
@ VREvent_ProcessQuit
Definition openvr_mingw.h:599
@ VREvent_RequestScreenshot
Definition openvr_mingw.h:585
@ VREvent_FirmwareUpdateFinished
Definition openvr_mingw.h:636
@ VREvent_ScreenshotProgressToDashboard
Definition openvr_mingw.h:589
@ VREvent_SceneApplicationChanged
Definition openvr_mingw.h:553
@ VREvent_LighthouseSectionSettingChanged
Definition openvr_mingw.h:620
@ VREvent_DashboardOverlayCreated
Definition openvr_mingw.h:582
@ VREvent_TrackedDeviceUserInteractionEnded
Definition openvr_mingw.h:515
@ VREvent_UserInterfaceSectionSettingChanged
Definition openvr_mingw.h:622
@ VREvent_Quit
Definition openvr_mingw.h:598
@ VREvent_ButtonUnpress
Definition openvr_mingw.h:527
@ VREvent_KeyboardSectionSettingChanged
Definition openvr_mingw.h:624
@ VREvent_OverlayFocusChanged
Definition openvr_mingw.h:547
@ VREvent_EnvironmentSettingsHaveChanged
Definition openvr_mingw.h:616
@ VREvent_OverlaySharedTextureChanged
Definition openvr_mingw.h:577
@ VREvent_PerformanceTest_DisableCapture
Definition openvr_mingw.h:663
@ VREvent_DualAnalog_Unpress
Definition openvr_mingw.h:532
@ VREvent_MCImageUpdated
Definition openvr_mingw.h:633
@ VREvent_TrackedDeviceRoleChanged
Definition openvr_mingw.h:519
@ VREvent_MessageOverlay_Closed
Definition openvr_mingw.h:666
@ VREvent_WirelessReconnect
Definition openvr_mingw.h:524
@ VREvent_LensDistortionChanged
Definition openvr_mingw.h:521
@ VREvent_TrackedCamera_ResumeVideoStream
Definition openvr_mingw.h:659
@ VREvent_DualAnalog_ModeSwitch2
Definition openvr_mingw.h:537
@ VREvent_DualAnalog_Untouch
Definition openvr_mingw.h:534
@ VREvent_VendorSpecific_Reserved_Start
Definition openvr_mingw.h:672
@ VREvent_TrackedCamera_StopVideoStream
Definition openvr_mingw.h:657
void VR_Shutdown()
Definition openvr_mingw.h:4288
EVREye
Definition openvr_mingw.h:103
@ Eye_Right
Definition openvr_mingw.h:105
@ Eye_Left
Definition openvr_mingw.h:104
uint64_t VROverlayHandle_t
Definition openvr_mingw.h:1066
EVRButtonId
Definition openvr_mingw.h:694
@ k_EButton_DPad_Down
Definition openvr_mingw.h:701
@ k_EButton_Axis2
Definition openvr_mingw.h:708
@ k_EButton_Axis3
Definition openvr_mingw.h:709
@ k_EButton_ProximitySensor
Definition openvr_mingw.h:704
@ k_EButton_DPad_Up
Definition openvr_mingw.h:699
@ k_EButton_DPad_Left
Definition openvr_mingw.h:698
@ k_EButton_DPad_Right
Definition openvr_mingw.h:700
@ k_EButton_System
Definition openvr_mingw.h:695
@ k_EButton_Axis4
Definition openvr_mingw.h:710
@ k_EButton_Grip
Definition openvr_mingw.h:697
@ k_EButton_SteamVR_Touchpad
Definition openvr_mingw.h:713
@ k_EButton_A
Definition openvr_mingw.h:702
@ k_EButton_ApplicationMenu
Definition openvr_mingw.h:696
@ k_EButton_Axis1
Definition openvr_mingw.h:707
@ k_EButton_SteamVR_Trigger
Definition openvr_mingw.h:714
@ k_EButton_Max
Definition openvr_mingw.h:718
@ k_EButton_Dashboard_Back
Definition openvr_mingw.h:716
@ k_EButton_Axis0
Definition openvr_mingw.h:706
EVRApplicationProperty
Definition openvr_mingw.h:1765
@ VRApplicationProperty_NewsURL_String
Definition openvr_mingw.h:1775
@ VRApplicationProperty_ImagePath_String
Definition openvr_mingw.h:1776
@ VRApplicationProperty_IsInternal_Bool
Definition openvr_mingw.h:1783
@ VRApplicationProperty_Source_String
Definition openvr_mingw.h:1777
@ VRApplicationProperty_IsDashboardOverlay_Bool
Definition openvr_mingw.h:1780
@ VRApplicationProperty_LastLaunchTime_Uint64
Definition openvr_mingw.h:1786
@ VRApplicationProperty_IsTemplate_Bool
Definition openvr_mingw.h:1781
@ VRApplicationProperty_LaunchType_String
Definition openvr_mingw.h:1768
@ VRApplicationProperty_BinaryPath_String
Definition openvr_mingw.h:1770
@ VRApplicationProperty_WorkingDirectory_String
Definition openvr_mingw.h:1769
@ VRApplicationProperty_Description_String
Definition openvr_mingw.h:1774
@ VRApplicationProperty_IsInstanced_Bool
Definition openvr_mingw.h:1782
@ VRApplicationProperty_WantsCompositorPauseInStandby_Bool
Definition openvr_mingw.h:1784
@ VRApplicationProperty_URL_String
Definition openvr_mingw.h:1772
@ VRApplicationProperty_Arguments_String
Definition openvr_mingw.h:1771
@ VRApplicationProperty_ActionManifestURL_String
Definition openvr_mingw.h:1778
@ VRApplicationProperty_Name_String
Definition openvr_mingw.h:1766
EVRControllerEventOutputType
Definition openvr_mingw.h:1035
@ ControllerEventOutput_OSEvents
Definition openvr_mingw.h:1036
@ ControllerEventOutput_VREvents
Definition openvr_mingw.h:1037
VR_INTERFACE const char *VR_CALLTYPE VR_GetVRInitErrorAsSymbol(EVRInitError error)
EVRScreenshotType
Definition openvr_mingw.h:1241
@ VRScreenshotType_None
Definition openvr_mingw.h:1242
@ VRScreenshotType_MonoPanorama
Definition openvr_mingw.h:1246
@ VRScreenshotType_Mono
Definition openvr_mingw.h:1243
@ VRScreenshotType_Cubemap
Definition openvr_mingw.h:1245
@ VRScreenshotType_StereoPanorama
Definition openvr_mingw.h:1247
@ VRScreenshotType_Stereo
Definition openvr_mingw.h:1244
EVRState VRState_t
Definition openvr_mingw.h:4032
#define VR_OUT_STRING()
Definition openvr_mingw.h:1361
#define VR_OUT_ARRAY_COUNT(COUNTER)
Definition openvr_mingw.h:1363
#define VR_ARRAY_COUNT(COUNTER)
Definition openvr_mingw.h:1364
#define VR_CALLTYPE
Definition openvr_mingw.h:1343
Definition GameApi.h:44
Definition openvr_mingw.h:1801
const char * pchKey
Definition openvr_mingw.h:1802
const char * pchValue
Definition openvr_mingw.h:1803
Definition openvr_mingw.h:1289
uint32_t nHeight
Definition openvr_mingw.h:1293
uint32_t nFrameSequence
Definition openvr_mingw.h:1296
TrackedDevicePose_t standingTrackedDevicePose
Definition openvr_mingw.h:1298
uint32_t nBytesPerPixel
Definition openvr_mingw.h:1294
EVRTrackedCameraFrameType eFrameType
Definition openvr_mingw.h:1290
uint32_t nWidth
Definition openvr_mingw.h:1292
Definition openvr_mingw.h:2494
uint32_t m_nNumTimedOut
Definition openvr_mingw.h:2515
uint32_t m_nNumDroppedFramesOnStartup
Definition openvr_mingw.h:2502
uint32_t m_nNumReprojectedFramesOnStartup
Definition openvr_mingw.h:2503
uint32_t m_nNumDroppedFramesTimedOut
Definition openvr_mingw.h:2517
uint32_t m_nPid
Definition openvr_mingw.h:2495
uint32_t m_nNumReprojectedFramesTimedOut
Definition openvr_mingw.h:2518
uint32_t m_nNumDroppedFrames
Definition openvr_mingw.h:2497
uint32_t m_nNumFramePresentsTimedOut
Definition openvr_mingw.h:2516
uint32_t m_nNumFramePresentsOnStartup
Definition openvr_mingw.h:2501
uint32_t m_nNumDroppedFramesLoading
Definition openvr_mingw.h:2509
uint32_t m_nNumReprojectedFramesLoading
Definition openvr_mingw.h:2510
uint32_t m_nNumReprojectedFrames
Definition openvr_mingw.h:2498
uint32_t m_nNumLoading
Definition openvr_mingw.h:2507
uint32_t m_nNumFramePresentsLoading
Definition openvr_mingw.h:2508
uint32_t m_nNumFramePresents
Definition openvr_mingw.h:2496
Definition openvr_mingw.h:2452
float m_flNewPosesReadyMs
Definition openvr_mingw.h:2482
uint32_t m_nReprojectionFlags
Definition openvr_mingw.h:2458
float m_flCompositorRenderGpuMs
Definition openvr_mingw.h:2470
uint32_t m_nNumMisPresented
Definition openvr_mingw.h:2456
float m_flCompositorRenderStartMs
Definition openvr_mingw.h:2486
float m_flWaitForPresentCpuMs
Definition openvr_mingw.h:2477
float m_flCompositorRenderCpuMs
Definition openvr_mingw.h:2471
double m_flSystemTimeInSeconds
Definition openvr_mingw.h:2461
float m_flWaitGetPosesCalledMs
Definition openvr_mingw.h:2481
uint32_t m_nFrameIndex
Definition openvr_mingw.h:2454
float m_flCompositorUpdateStartMs
Definition openvr_mingw.h:2484
float m_flPostSubmitGpuMs
Definition openvr_mingw.h:2468
uint32_t m_nNumFramePresents
Definition openvr_mingw.h:2455
vr::TrackedDevicePose_t m_HmdPose
Definition openvr_mingw.h:2488
float m_flTotalRenderGpuMs
Definition openvr_mingw.h:2469
float m_flPresentCallCpuMs
Definition openvr_mingw.h:2476
uint32_t m_nSize
Definition openvr_mingw.h:2453
float m_flCompositorUpdateEndMs
Definition openvr_mingw.h:2485
float m_flClientFrameIntervalMs
Definition openvr_mingw.h:2475
float m_flNewFrameReadyMs
Definition openvr_mingw.h:2483
float m_flPreSubmitGpuMs
Definition openvr_mingw.h:2467
float m_flSubmitFrameMs
Definition openvr_mingw.h:2478
float m_flCompositorIdleCpuMs
Definition openvr_mingw.h:2472
uint32_t m_nNumDroppedFrames
Definition openvr_mingw.h:2457
Definition openvr_mingw.h:1056
float vScale
Definition openvr_mingw.h:1060
HmdMatrix44_t transform
Definition openvr_mingw.h:1062
float gridDivs
Definition openvr_mingw.h:1061
float scale
Definition openvr_mingw.h:1059
bool antialias
Definition openvr_mingw.h:1058
float alpha
Definition openvr_mingw.h:1059
float gridWidth
Definition openvr_mingw.h:1061
uint32_t size
Definition openvr_mingw.h:1057
bool curved
Definition openvr_mingw.h:1058
float uScale
Definition openvr_mingw.h:1060
float distance
Definition openvr_mingw.h:1059
float vOffset
Definition openvr_mingw.h:1060
float gridScale
Definition openvr_mingw.h:1061
float uOffset
Definition openvr_mingw.h:1060
Definition openvr_mingw.h:486
ID3D12CommandQueue * m_pCommandQueue
Definition openvr_mingw.h:488
uint32_t m_nNodeMask
Definition openvr_mingw.h:489
ID3D12Resource * m_pResource
Definition openvr_mingw.h:487
Definition openvr_mingw.h:96
float rfRed[2]
Definition openvr_mingw.h:97
float rfGreen[2]
Definition openvr_mingw.h:98
float rfBlue[2]
Definition openvr_mingw.h:99
Definition openvr_mingw.h:1308
uint32_t m_nSize
Definition openvr_mingw.h:1309
uint32_t m_nReprojectionFlags
Definition openvr_mingw.h:1313
uint32_t m_nNumDroppedFrames
Definition openvr_mingw.h:1312
uint32_t m_nNumFramePresents
Definition openvr_mingw.h:1310
uint32_t m_nNumMisPresented
Definition openvr_mingw.h:1311
Definition openvr_mingw.h:965
const HmdVector2_t * pVertexData
Definition openvr_mingw.h:966
uint32_t unTriangleCount
Definition openvr_mingw.h:967
Definition openvr_mingw.h:77
float g
Definition openvr_mingw.h:78
float b
Definition openvr_mingw.h:78
float r
Definition openvr_mingw.h:78
float a
Definition openvr_mingw.h:78
Definition openvr_mingw.h:42
float m[3][4]
Definition openvr_mingw.h:43
Definition openvr_mingw.h:47
float m[4][4]
Definition openvr_mingw.h:48
Definition openvr_mingw.h:82
HmdVector3_t vCorners[4]
Definition openvr_mingw.h:83
Definition openvr_mingw.h:72
double z
Definition openvr_mingw.h:73
double x
Definition openvr_mingw.h:73
double y
Definition openvr_mingw.h:73
double w
Definition openvr_mingw.h:73
Definition openvr_mingw.h:87
HmdVector2_t vTopLeft
Definition openvr_mingw.h:88
HmdVector2_t vBottomRight
Definition openvr_mingw.h:89
Definition openvr_mingw.h:67
float v[2]
Definition openvr_mingw.h:68
Definition openvr_mingw.h:52
float v[3]
Definition openvr_mingw.h:53
Definition openvr_mingw.h:62
double v[3]
Definition openvr_mingw.h:63
Definition openvr_mingw.h:57
float v[4]
Definition openvr_mingw.h:58
Definition openvr_mingw.h:3013
float m_flCenterY
Definition openvr_mingw.h:3015
float m_flRadius
Definition openvr_mingw.h:3016
float m_flCenterX
Definition openvr_mingw.h:3014
Definition openvr_mingw.h:3005
float m_flTopLeftY
Definition openvr_mingw.h:3007
float m_flTopLeftX
Definition openvr_mingw.h:3006
float m_flWidth
Definition openvr_mingw.h:3008
float m_flHeight
Definition openvr_mingw.h:3009
Definition openvr_mingw.h:2780
NotificationBitmap_t()
Definition openvr_mingw.h:2781
int32_t m_nWidth
Definition openvr_mingw.h:2790
void * m_pImageData
Definition openvr_mingw.h:2789
int32_t m_nHeight
Definition openvr_mingw.h:2791
int32_t m_nBytesPerPixel
Definition openvr_mingw.h:2792
Definition openvr_mingw.h:3498
HmdMatrix34_t mTrackingToComponentRenderModel
Definition openvr_mingw.h:3499
HmdMatrix34_t mTrackingToComponentLocal
Definition openvr_mingw.h:3500
VRComponentProperties uProperties
Definition openvr_mingw.h:3501
Definition openvr_mingw.h:3555
bool bScrollWheelVisible
Definition openvr_mingw.h:3556
Definition openvr_mingw.h:3520
const uint8_t * rubTextureMapData
Definition openvr_mingw.h:3522
uint16_t unHeight
Definition openvr_mingw.h:3521
uint16_t unWidth
Definition openvr_mingw.h:3521
Definition openvr_mingw.h:3506
float rfTextureCoord[2]
Definition openvr_mingw.h:3509
HmdVector3_t vNormal
Definition openvr_mingw.h:3508
HmdVector3_t vPosition
Definition openvr_mingw.h:3507
Definition openvr_mingw.h:3542
const uint16_t * rIndexData
Definition openvr_mingw.h:3545
uint32_t unTriangleCount
Definition openvr_mingw.h:3546
TextureID_t diffuseTextureId
Definition openvr_mingw.h:3547
uint32_t unVertexCount
Definition openvr_mingw.h:3544
const RenderModel_Vertex_t * rVertexData
Definition openvr_mingw.h:3543
Definition openvr_mingw.h:125
EColorSpace eColorSpace
Definition openvr_mingw.h:128
ETextureType eType
Definition openvr_mingw.h:127
void * handle
Definition openvr_mingw.h:126
Definition openvr_mingw.h:181
HmdVector3_t vAngularVelocity
Definition openvr_mingw.h:184
HmdMatrix34_t mDeviceToAbsoluteTracking
Definition openvr_mingw.h:182
bool bDeviceIsConnected
Definition openvr_mingw.h:190
ETrackingResult eTrackingResult
Definition openvr_mingw.h:185
bool bPoseIsValid
Definition openvr_mingw.h:186
HmdVector3_t vVelocity
Definition openvr_mingw.h:183
Definition openvr_mingw.h:995
float x
Definition openvr_mingw.h:996
float y
Definition openvr_mingw.h:997
Definition openvr_mingw.h:1013
uint64_t ulButtonTouched
Definition openvr_mingw.h:1020
uint32_t unPacketNum
Definition openvr_mingw.h:1016
uint64_t ulButtonPressed
Definition openvr_mingw.h:1019
VRControllerAxis_t rAxis[k_unControllerStateAxisCount]
Definition openvr_mingw.h:1023
Definition openvr_mingw.h:850
uint32_t pid
Definition openvr_mingw.h:851
uint32_t unArgsHandle
Definition openvr_mingw.h:852
Definition openvr_mingw.h:816
uint64_t m_nPreviousUniverse
Definition openvr_mingw.h:817
uint64_t m_nCurrentUniverse
Definition openvr_mingw.h:818
Definition openvr_mingw.h:725
uint32_t button
Definition openvr_mingw.h:726
Definition openvr_mingw.h:879
float x
Definition openvr_mingw.h:880
float y
Definition openvr_mingw.h:880
EDualAnalogWhich which
Definition openvr_mingw.h:882
float transformedX
Definition openvr_mingw.h:881
float transformedY
Definition openvr_mingw.h:881
Definition openvr_mingw.h:856
uint32_t nVisualMode
Definition openvr_mingw.h:858
uint64_t overlayHandle
Definition openvr_mingw.h:857
Definition openvr_mingw.h:886
float fDurationSeconds
Definition openvr_mingw.h:889
uint64_t containerHandle
Definition openvr_mingw.h:887
float fAmplitude
Definition openvr_mingw.h:891
float fFrequency
Definition openvr_mingw.h:890
uint64_t componentHandle
Definition openvr_mingw.h:888
Definition openvr_mingw.h:811
float ipdMeters
Definition openvr_mingw.h:812
Definition openvr_mingw.h:805
uint64_t uUserValue
Definition openvr_mingw.h:807
char cNewInput[8]
Definition openvr_mingw.h:806
Definition openvr_mingw.h:862
uint32_t unVRMessageOverlayResponse
Definition openvr_mingw.h:863
Definition openvr_mingw.h:741
float x
Definition openvr_mingw.h:742
uint32_t button
Definition openvr_mingw.h:743
float y
Definition openvr_mingw.h:742
Definition openvr_mingw.h:776
uint64_t ulUserValue
Definition openvr_mingw.h:777
uint32_t notificationId
Definition openvr_mingw.h:778
Definition openvr_mingw.h:792
uint64_t overlayHandle
Definition openvr_mingw.h:793
Definition openvr_mingw.h:829
uint32_t m_nFidelityLevel
Definition openvr_mingw.h:830
Definition openvr_mingw.h:783
uint32_t pid
Definition openvr_mingw.h:784
uint32_t oldPid
Definition openvr_mingw.h:785
bool bForced
Definition openvr_mingw.h:786
Definition openvr_mingw.h:867
PropertyContainerHandle_t container
Definition openvr_mingw.h:868
ETrackedDeviceProperty prop
Definition openvr_mingw.h:869
Definition openvr_mingw.h:823
uint64_t reserved1
Definition openvr_mingw.h:825
uint64_t reserved0
Definition openvr_mingw.h:824
Definition openvr_mingw.h:845
float progress
Definition openvr_mingw.h:846
Definition openvr_mingw.h:839
uint32_t type
Definition openvr_mingw.h:841
uint32_t handle
Definition openvr_mingw.h:840
Definition openvr_mingw.h:748
uint32_t repeatCount
Definition openvr_mingw.h:750
float ydelta
Definition openvr_mingw.h:749
float xdelta
Definition openvr_mingw.h:749
Definition openvr_mingw.h:834
bool bResetBySystemMenu
Definition openvr_mingw.h:835
Definition openvr_mingw.h:799
uint32_t statusState
Definition openvr_mingw.h:800
Definition openvr_mingw.h:758
float fValueXRaw
Definition openvr_mingw.h:770
float fValueYFirst
Definition openvr_mingw.h:767
float fValueYRaw
Definition openvr_mingw.h:771
float fValueXFirst
Definition openvr_mingw.h:766
float flSecondsFingerDown
Definition openvr_mingw.h:763
bool bFingerDown
Definition openvr_mingw.h:760
Definition openvr_mingw.h:931
TrackedDeviceIndex_t trackedDeviceIndex
Definition openvr_mingw.h:933
float eventAgeSeconds
Definition openvr_mingw.h:934
uint32_t eventType
Definition openvr_mingw.h:932
VREvent_Data_t data
Definition openvr_mingw.h:936
Definition openvr_mingw.h:3027
VROverlayIntersectionMaskPrimitive_Data_t m_Primitive
Definition openvr_mingw.h:3029
EVROverlayIntersectionMaskPrimitiveType m_nPrimitiveType
Definition openvr_mingw.h:3028
Definition openvr_mingw.h:2958
HmdVector3_t vDirection
Definition openvr_mingw.h:2960
HmdVector3_t vSource
Definition openvr_mingw.h:2959
ETrackingUniverseOrigin eOrigin
Definition openvr_mingw.h:2961
Definition openvr_mingw.h:2965
HmdVector3_t vPoint
Definition openvr_mingw.h:2966
float fDistance
Definition openvr_mingw.h:2969
HmdVector2_t vUVs
Definition openvr_mingw.h:2968
HmdVector3_t vNormal
Definition openvr_mingw.h:2967
Definition openvr_mingw.h:416
float vMin
Definition openvr_mingw.h:417
float vMax
Definition openvr_mingw.h:418
float uMin
Definition openvr_mingw.h:417
float uMax
Definition openvr_mingw.h:418
Definition openvr_mingw.h:428
HmdVector2_t vRange
Definition openvr_mingw.h:431
void * handle
Definition openvr_mingw.h:429
HmdMatrix44_t mProjection
Definition openvr_mingw.h:430
Definition openvr_mingw.h:435
VRTextureDepthInfo_t depth
Definition openvr_mingw.h:436
Definition openvr_mingw.h:440
VRTextureDepthInfo_t depth
Definition openvr_mingw.h:441
Definition openvr_mingw.h:423
HmdMatrix34_t mDeviceToAbsoluteTracking
Definition openvr_mingw.h:424
Definition openvr_mingw.h:473
uint32_t m_nHeight
Definition openvr_mingw.h:480
uint32_t m_nFormat
Definition openvr_mingw.h:480
uint32_t m_nQueueFamilyIndex
Definition openvr_mingw.h:479
VkQueue_T * m_pQueue
Definition openvr_mingw.h:478
VkInstance_T * m_pInstance
Definition openvr_mingw.h:477
VkDevice_T * m_pDevice
Definition openvr_mingw.h:475
VkPhysicalDevice_T * m_pPhysicalDevice
Definition openvr_mingw.h:476
uint64_t m_nImage
Definition openvr_mingw.h:474
uint32_t m_nSampleCount
Definition openvr_mingw.h:480
uint32_t m_nWidth
Definition openvr_mingw.h:480
Definition openvr_mingw.h:1811
EVRApplicationError(__stdcall *SetDefaultApplicationForMimeType)(const char *pchAppKey
uint32_t(__stdcall *GetApplicationCount)()
EVRApplicationError(__stdcall *PerformApplicationPrelaunchCheck)(const char *pchAppKey)
const char * pchMimeType
Definition openvr_mingw.h:1831
EVRApplicationProperty eProperty
Definition openvr_mingw.h:1826
bool(__stdcall *GetApplicationAutoLaunch)(const char *pchAppKey)
const char const char * pchWorkingDirectory
Definition openvr_mingw.h:1841
EVRApplicationProperty char * pchPropertyValueBuffer
Definition openvr_mingw.h:1826
EVRApplicationProperty char uint32_t unPropertyValueBufferLen
Definition openvr_mingw.h:1826
EVRApplicationError(__stdcall *LaunchInternalProcess)(const char *pchBinaryPath
const char const AppOverrideKeys_t uint32_t unKeys
Definition openvr_mingw.h:1819
EVRApplicationError(__stdcall *GetApplicationKeyByIndex)(uint32_t unApplicationIndex
EVRApplicationError(__stdcall *GetStartingApplication)(char *pchAppKeyBuffer
const char * pchAppKey
Definition openvr_mingw.h:1823
char uint32_t unMimeTypesBuffer
Definition openvr_mingw.h:1833
const char *__stdcall * GetApplicationsErrorNameFromEnum(EVRApplicationError error)
const char const AppOverrideKeys_t * pKeys
Definition openvr_mingw.h:1819
const char *__stdcall * GetApplicationsTransitionStateNameFromEnum(EVRApplicationTransitionState state)
EVRApplicationProperty char uint32_t EVRApplicationError * peError
Definition openvr_mingw.h:1826
EVRApplicationTransitionState(__stdcall *GetTransitionState)()
const char * pchArgs
Definition openvr_mingw.h:1820
char * pchMimeTypesBuffer
Definition openvr_mingw.h:1833
bool(__stdcall *GetApplicationSupportedMimeTypes)(const char *pchAppKey
bool(__stdcall *IsQuitUserPromptRequested)()
char uint32_t unAppKeysThatSupportBuffer
Definition openvr_mingw.h:1834
const char * pchNewAppKey
Definition openvr_mingw.h:1819
uint64_t(__stdcall *GetApplicationPropertyUint64)(const char *pchAppKey
char * pchAppKeysThatSupportBuffer
Definition openvr_mingw.h:1834
uint32_t(__stdcall *GetCurrentSceneProcessId)()
EVRApplicationError(__stdcall *LaunchApplication)(const char *pchAppKey)
char * pchAppKeyBuffer
Definition openvr_mingw.h:1816
bool(__stdcall *IsApplicationInstalled)(const char *pchAppKey)
bool(__stdcall *CancelApplicationLaunch)(const char *pchAppKey)
EVRApplicationError(__stdcall *GetApplicationKeyByProcessId)(uint32_t unProcessId
char uint32_t unAppKeyBufferLen
Definition openvr_mingw.h:1816
bool(__stdcall *GetDefaultApplicationForMimeType)(const char *pchMimeType
char uint32_t unArgs
Definition openvr_mingw.h:1835
EVRApplicationError(__stdcall *RemoveApplicationManifest)(const char *pchApplicationManifestFullPath)
const char * pchArguments
Definition openvr_mingw.h:1841
EVRApplicationError(__stdcall *LaunchDashboardOverlay)(const char *pchAppKey)
bool bTemporary
Definition openvr_mingw.h:1812
EVRApplicationError(__stdcall *IdentifyApplication)(uint32_t unProcessId
bool bAutoLaunch
Definition openvr_mingw.h:1829
bool(__stdcall *GetApplicationPropertyBool)(const char *pchAppKey
EVRApplicationError(__stdcall *LaunchTemplateApplication)(const char *pchTemplateAppKey
uint32_t(__stdcall *GetApplicationProcessId)(const char *pchAppKey)
EVRApplicationError(__stdcall *AddApplicationManifest)(const char *pchApplicationManifestFullPath
Definition openvr_mingw.h:2315
void(__stdcall *RevertWorkingCopy)()
bool(__stdcall *GetWorkingPlayAreaRect)(HmdQuad_t *rect)
bool(__stdcall *GetWorkingSeatedZeroPoseToRawTrackingPose)(HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose)
void(__stdcall *SetWorkingSeatedZeroPoseToRawTrackingPose)(const HmdMatrix34_t *pMatSeatedZeroPoseToRawTrackingPose)
uint32_t * punQuadsCount
Definition openvr_mingw.h:2320
void(__stdcall *SetWorkingStandingZeroPoseToRawTrackingPose)(const HmdMatrix34_t *pMatStandingZeroPoseToRawTrackingPose)
void(__stdcall *ReloadFromDisk)(EChaperoneConfigFile configFile)
bool(__stdcall *ImportFromBufferToWorking)(const char *pBuffer
bool(__stdcall *GetLiveSeatedZeroPoseToRawTrackingPose)(HmdMatrix34_t *pmatSeatedZeroPoseToRawTrackingPose)
bool(__stdcall *SetWorkingPhysicalBoundsInfo)(HmdQuad_t *pQuadsBuffer
bool(__stdcall *CommitWorkingCopy)(EChaperoneConfigFile configFile)
bool(__stdcall *GetLiveCollisionBoundsInfo)(HmdQuad_t *pQuadsBuffer
bool(__stdcall *GetLivePhysicalBoundsInfo)(HmdQuad_t *pQuadsBuffer
bool(__stdcall *GetWorkingPlayAreaSize)(float *pSizeX
bool(__stdcall *GetLiveCollisionBoundsTagsInfo)(uint8_t *pTagsBuffer
uint32_t * punTagCount
Definition openvr_mingw.h:2331
uint32_t unTagCount
Definition openvr_mingw.h:2330
float * pSizeZ
Definition openvr_mingw.h:2318
uint32_t nImportFlags
Definition openvr_mingw.h:2335
bool(__stdcall *ExportLiveToBuffer)(char *pBuffer
bool(__stdcall *GetWorkingStandingZeroPoseToRawTrackingPose)(HmdMatrix34_t *pmatStandingZeroPoseToRawTrackingPose)
uint32_t unQuadsCount
Definition openvr_mingw.h:2325
uint32_t * pnBufferLength
Definition openvr_mingw.h:2334
float sizeZ
Definition openvr_mingw.h:2324
bool(__stdcall *GetWorkingCollisionBoundsInfo)(HmdQuad_t *pQuadsBuffer
Definition openvr_mingw.h:2242
void(__stdcall *ForceBoundsVisible)(bool bForce)
int nNumOutputColors
Definition openvr_mingw.h:2248
bool(__stdcall *GetPlayAreaRect)(HmdQuad_t *rect)
bool(__stdcall *GetPlayAreaSize)(float *pSizeX
bool(__stdcall *AreBoundsVisible)()
float * pSizeZ
Definition openvr_mingw.h:2244
void(__stdcall *ReloadInfo)(void)
int float flCollisionBoundsFadeDistance
Definition openvr_mingw.h:2248
void(__stdcall *SetSceneColor)(HmdColor_t color)
ChaperoneCalibrationState(__stdcall *GetCalibrationState)()
int float HmdColor_t * pOutputCameraColor
Definition openvr_mingw.h:2248
Definition openvr_mingw.h:2525
bool(__stdcall *CanRenderScene)()
EVRCompositorError(__stdcall *GetLastPoseForTrackedDeviceIndex)(TrackedDeviceIndex_t unDeviceIndex
uint32_t nFrames
Definition openvr_mingw.h:2537
EVRCompositorError(__stdcall *GetLastPoses)(TrackedDevicePose_t *pRenderPoseArray
uint32_t(__stdcall *GetCurrentSceneFocusProcess)()
float(__stdcall *GetCurrentGridAlpha)()
EVRCompositorError(__stdcall *SubmitExplicitTimingData)()
uint32_t TrackedDevicePose_t * pGamePoseArray
Definition openvr_mingw.h:2529
bool(__stdcall *IsFullscreen)()
void(__stdcall *CompositorBringToFront)()
uint32_t(__stdcall *GetLastFrameRenderer)()
TrackedDevicePose_t * pOutputPose
Definition openvr_mingw.h:2532
uint32_t unFramesAgo
Definition openvr_mingw.h:2536
bool(__stdcall *ShouldAppRenderWithLowResources)()
float float float fBlue
Definition openvr_mingw.h:2540
uint32_t unTextureCount
Definition openvr_mingw.h:2544
void(__stdcall *ForceInterleavedReprojectionOn)(bool bOverride)
void(__stdcall *SuspendRendering)(bool bSuspend)
float(__stdcall *GetFrameTimeRemaining)()
vr::EVRCompositorError(__stdcall *GetMirrorTextureD3D11)(vr void(__stdcall *ReleaseMirrorTextureD3D11)(void *pD3D11ShaderResourceView)
Definition openvr_mingw.h:2562
void(__stdcall *CompositorQuit)()
const Texture_t const VRTextureBounds_t EVRSubmitFlags nSubmitFlags
Definition openvr_mingw.h:2533
bool bFadeIn
Definition openvr_mingw.h:2542
uint32_t nStatsSizeInBytes
Definition openvr_mingw.h:2539
void(__stdcall *CompositorDumpImages)()
void(__stdcall *ShowMirrorWindow)()
void(__stdcall *HideMirrorWindow)()
HmdColor_t(__stdcall *GetCurrentFadeColor)(bool bBackground)
void(__stdcall *SetExplicitTimingMode)(EVRCompositorTimingMode eTimingMode)
void(__stdcall *ClearLastSubmittedFrame)()
EVRCompositorError(__stdcall *SetSkyboxOverride)(const Texture_t *pTextures
vr::EVRCompositorError(__stdcall *GetMirrorTextureGL)(vr bool(__stdcall *ReleaseSharedGLTexture)(vr void(__stdcall *LockGLSharedTextureForAccess)(vr void(__stdcall *UnlockGLSharedTextureForAccess)(vr uint32_t(__stdcall *GetVulkanInstanceExtensionsRequired)(char *pchValue
Definition openvr_mingw.h:2567
vr::EVRCompositorError(__stdcall *GetMirrorTextureGL)(vr bool(__stdcall *ReleaseSharedGLTexture)(vr void(__stdcall *LockGLSharedTextureForAccess)(vr void(__stdcall *UnlockGLSharedTextureForAccess)(vr uint32_t unBufferSize
Definition openvr_mingw.h:2567
const Texture_t const VRTextureBounds_t * pBounds
Definition openvr_mingw.h:2533
void(__stdcall *PostPresentHandoff)()
uint32_t unRenderPoseArrayCount
Definition openvr_mingw.h:2528
uint32_t TrackedDevicePose_t uint32_t unGamePoseArrayCount
Definition openvr_mingw.h:2529
void(__stdcall *CompositorGoToBack)()
float fRed
Definition openvr_mingw.h:2540
void(__stdcall *ForceReconnectProcess)()
void(__stdcall *ClearSkyboxOverride)()
float float float float fAlpha
Definition openvr_mingw.h:2540
char * pchValue
Definition openvr_mingw.h:2568
float float float float bool bBackground
Definition openvr_mingw.h:2540
float float fGreen
Definition openvr_mingw.h:2540
void(__stdcall *SetTrackingSpace)(ETrackingUniverseOrigin eOrigin)
bool(__stdcall *GetFrameTiming)(Compositor_FrameTiming *pTiming
TrackedDevicePose_t TrackedDevicePose_t * pOutputGamePose
Definition openvr_mingw.h:2532
EVRCompositorError(__stdcall *Submit)(EVREye eEye
ETrackingUniverseOrigin(__stdcall *GetTrackingSpace)()
bool(__stdcall *IsMirrorWindowVisible)()
const Texture_t * pTexture
Definition openvr_mingw.h:2533
EVRCompositorError(__stdcall *WaitGetPoses)(TrackedDevicePose_t *pRenderPoseArray
Definition openvr_mingw.h:3949
Definition openvr_mingw.h:3690
uint32_t * pnX
Definition openvr_mingw.h:3692
void(__stdcall *GetWindowBounds)(int32_t *pnX
int32_t uint32_t uint32_t * pnHeight
Definition openvr_mingw.h:3691
int32_t uint32_t * pnWidth
Definition openvr_mingw.h:3691
int32_t * pnAdapterOutputIndex
Definition openvr_mingw.h:3693
int32_t * pnY
Definition openvr_mingw.h:3691
Definition openvr_mingw.h:2842
uint64_t ulUserValue
Definition openvr_mingw.h:2843
uint64_t EVRNotificationType const char EVRNotificationStyle style
Definition openvr_mingw.h:2843
uint64_t EVRNotificationType const char EVRNotificationStyle const NotificationBitmap_t * pImage
Definition openvr_mingw.h:2843
uint64_t EVRNotificationType const char * pchText
Definition openvr_mingw.h:2843
uint64_t EVRNotificationType type
Definition openvr_mingw.h:2843
EVRNotificationError(__stdcall *RemoveNotification)(VRNotificationId notificationId)
uint64_t EVRNotificationType const char EVRNotificationStyle const NotificationBitmap_t VRNotificationId * pNotificationId
Definition openvr_mingw.h:2843
EVRNotificationError(__stdcall *CreateNotification)(VROverlayHandle_t ulOverlayHandle
Definition openvr_mingw.h:3033
EVROverlayError(__stdcall *GetOverlayColor)(VROverlayHandle_t ulOverlayHandle
VROverlayIntersectionMaskPrimitive_t * pMaskPrimitives
Definition openvr_mingw.h:3112
void uint32_t uint32_t * punWidth
Definition openvr_mingw.h:3042
void(__stdcall *ShowDashboard)(const char *pchOverlayToShow)
EDualAnalogWhich HmdVector2_t * pvCenter
Definition openvr_mingw.h:3091
EVROverlayError(__stdcall *SetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle
EGamepadTextInputLineMode const char uint32_t const char bool bUseMinimalMode
Definition openvr_mingw.h:3106
float * pfTexelAspect
Definition openvr_mingw.h:3053
uint32_t unProcessId
Definition openvr_mingw.h:3102
VREvent_t * pEvent
Definition openvr_mingw.h:3079
vr::VROverlayHandle_t(__stdcall *GetHighQualityOverlay)()
float * pfWidthInMeters
Definition openvr_mingw.h:3057
EVROverlayError(__stdcall *DestroyOverlay)(VROverlayHandle_t ulOverlayHandle)
EVROverlayError(__stdcall *HideOverlay)(VROverlayHandle_t ulOverlayHandle)
void * pvBuffer
Definition openvr_mingw.h:3042
void uint32_t uint32_t uint32_t * punHeight
Definition openvr_mingw.h:3042
const char const char const char const char const char * pchButton3Text
Definition openvr_mingw.h:3114
ETrackingUniverseOrigin HmdVector2_t coordinatesInOverlay
Definition openvr_mingw.h:3078
ETrackingUniverseOrigin eTrackingOrigin
Definition openvr_mingw.h:3067
uint32_t(__stdcall *GetOverlayName)(VROverlayHandle_t ulOverlayHandle
const Texture_t * pTexture
Definition openvr_mingw.h:3092
EVROverlayError(__stdcall *GetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *GetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle
const char const char const char const char * pchButton2Text
Definition openvr_mingw.h:3114
EGamepadTextInputLineMode const char uint32_t unCharMax
Definition openvr_mingw.h:3106
EVROverlayError(__stdcall *SetHighQualityOverlay)(VROverlayHandle_t ulOverlayHandle)
void(__stdcall *CloseMessageOverlay)()
uint32_t unPID
Definition openvr_mingw.h:3044
TrackedDeviceIndex_t unDeviceIndex
Definition openvr_mingw.h:3071
EVROverlayError(__stdcall *ReleaseNativeOverlayHandle)(VROverlayHandle_t ulOverlayHandle
bool(__stdcall *IsOverlayVisible)(VROverlayHandle_t ulOverlayHandle)
VROverlayHandle_t VROverlayHandle_t ulTo
Definition openvr_mingw.h:3088
float float float fBlue
Definition openvr_mingw.h:3048
EVROverlayError(__stdcall *GetOverlayFlag)(VROverlayHandle_t ulOverlayHandle
uint32_t(__stdcall *GetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle)
const char const char const char * pchButton1Text
Definition openvr_mingw.h:3114
float fMinDistanceInMeters
Definition openvr_mingw.h:3058
EVROverlayError(__stdcall *SetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle
void void uint32_t * pWidth
Definition openvr_mingw.h:3096
VROverlayInputMethod eInputMethod
Definition openvr_mingw.h:3081
VREvent_t uint32_t uncbVREvent
Definition openvr_mingw.h:3079
const char * pchFilePath
Definition openvr_mingw.h:3095
void void uint32_t uint32_t uint32_t ETextureType EColorSpace * pColorSpace
Definition openvr_mingw.h:3096
float float fGreen
Definition openvr_mingw.h:3048
EVROverlayError(__stdcall *SetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle
float float * pfGreen
Definition openvr_mingw.h:3049
HmdRect2_t avoidRect
Definition openvr_mingw.h:3111
EVROverlayError(__stdcall *GetDashboardOverlaySceneProcess)(VROverlayHandle_t ulOverlayHandle
uint32_t * pFlags
Definition openvr_mingw.h:3113
EVROverlayError(__stdcall *ShowOverlay)(VROverlayHandle_t ulOverlayHandle)
VROverlayHandle_t ulFrom
Definition openvr_mingw.h:3088
HmdVector2_t * pvecMouseScale
Definition openvr_mingw.h:3082
EDualAnalogWhich eWhich
Definition openvr_mingw.h:3090
EColorSpace * peTextureColorSpace
Definition openvr_mingw.h:3061
uint32_t unSortOrder
Definition openvr_mingw.h:3054
EVROverlayError(__stdcall *SetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle
void uint32_t unWidth
Definition openvr_mingw.h:3094
void void uint32_t uint32_t uint32_t * pNativeFormat
Definition openvr_mingw.h:3096
EDualAnalogWhich const HmdVector2_t float fRadius
Definition openvr_mingw.h:3090
const char VROverlayHandle_t * pMainHandle
Definition openvr_mingw.h:3099
EVROverlayError(__stdcall *SetOverlayDualAnalogTransform)(VROverlayHandle_t ulOverlay
TrackedDeviceIndex_t * punDeviceIndex
Definition openvr_mingw.h:3072
bool(__stdcall *IsDashboardVisible)()
void void uint32_t uint32_t uint32_t ETextureType * pAPIType
Definition openvr_mingw.h:3096
bool(__stdcall *IsActiveDashboardOverlay)(VROverlayHandle_t ulOverlayHandle)
EVROverlayError(__stdcall *SetGamepadFocusOverlay)(VROverlayHandle_t ulNewFocusOverlay)
VROverlayFlags bool * pbEnabled
Definition openvr_mingw.h:3047
VROverlayInputMethod * peInputMethod
Definition openvr_mingw.h:3080
EVROverlayError(__stdcall *SetOverlayIntersectionMask)(VROverlayHandle_t ulOverlayHandle
bool(__stdcall *PollNextOverlayEvent)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *GetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle
EDualAnalogWhich const HmdVector2_t & vCenter
Definition openvr_mingw.h:3090
EVROverlayError(__stdcall *SetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle
VROverlayHandle_t * pOverlayHandle
Definition openvr_mingw.h:3034
EVROverlayError(__stdcall *SetOverlayNeighbor)(EOverlayDirection eDirection
uint32_t(__stdcall *GetOverlayKey)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *GetOverlayTexture)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *GetOverlayImageData)(VROverlayHandle_t ulOverlayHandle
EDualAnalogWhich HmdVector2_t float * pfRadius
Definition openvr_mingw.h:3091
VROverlayIntersectionMaskPrimitive_t uint32_t uint32_t unPrimitiveSize
Definition openvr_mingw.h:3112
EVROverlayError(__stdcall *GetOverlayAutoCurveDistanceRangeInMeters)(VROverlayHandle_t ulOverlayHandle
vr::TrackedDeviceIndex_t(__stdcall *GetPrimaryDashboardDevice)()
EGamepadTextInputLineMode const char uint32_t const char bool uint64_t uUserValue
Definition openvr_mingw.h:3106
ETrackingUniverseOrigin * peTrackingOrigin
Definition openvr_mingw.h:3068
float float fMaxDistanceInMeters
Definition openvr_mingw.h:3058
EGamepadTextInputMode eInputMode
Definition openvr_mingw.h:3107
void ** pNativeTextureHandle
Definition openvr_mingw.h:3096
EVROverlayError(__stdcall *GetOverlayTexelAspect)(VROverlayHandle_t ulOverlayHandle
uint32_t(__stdcall *GetOverlayRenderModel)(vr vr::EVROverlayError(__stdcall *SetOverlayRenderModel)(vr EVROverlayError(__stdcall *GetOverlayTransformType)(VROverlayHandle_t ulOverlayHandle
Definition openvr_mingw.h:3066
EVROverlayError(__stdcall *SetOverlayFromFile)(VROverlayHandle_t ulOverlayHandle
const VROverlayIntersectionParams_t * pParams
Definition openvr_mingw.h:3084
TrackedDeviceIndex_t const HmdMatrix34_t * pmatTrackedDeviceToOverlayTransform
Definition openvr_mingw.h:3069
EVROverlayError(__stdcall *FindOverlay)(const char *pchOverlayKey
EGamepadTextInputLineMode eLineInputMode
Definition openvr_mingw.h:3106
EVROverlayError(__stdcall *SetOverlayTexture)(VROverlayHandle_t ulOverlayHandle
VROverlayFlags bool bEnabled
Definition openvr_mingw.h:3046
char * pchValue
Definition openvr_mingw.h:3039
EVROverlayError(__stdcall *SetOverlayRaw)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *CreateOverlay)(const char *pchOverlayKey
EVROverlayError(__stdcall *GetOverlayInputMethod)(VROverlayHandle_t ulOverlayHandle
TrackedDeviceIndex_t * punTrackedDevice
Definition openvr_mingw.h:3070
float * pfRed
Definition openvr_mingw.h:3049
bool(__stdcall *IsHoverTargetOverlay)(VROverlayHandle_t ulOverlayHandle)
const char const char * pchButton0Text
Definition openvr_mingw.h:3114
const HmdMatrix34_t * pmatTrackingOriginToKeyboardTransform
Definition openvr_mingw.h:3110
EVROverlayError(__stdcall *SetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle
void uint32_t uint32_t uint32_t unDepth
Definition openvr_mingw.h:3094
const char * pchOverlayFriendlyName
Definition openvr_mingw.h:3099
VROverlayIntersectionMaskPrimitive_t uint32_t unNumMaskPrimitives
Definition openvr_mingw.h:3112
EVROverlayError(__stdcall *GetOverlayTransformTrackedDeviceRelative)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *GetOverlaySortOrder)(VROverlayHandle_t ulOverlayHandle
uint32_t * punSortOrder
Definition openvr_mingw.h:3055
TrackedDeviceIndex_t unTrackedDevice
Definition openvr_mingw.h:3069
TrackedDeviceIndex_t const char * pchComponentName
Definition openvr_mingw.h:3071
uint32_t cchText
Definition openvr_mingw.h:3108
EVROverlayError(__stdcall *GetOverlayTextureSize)(VROverlayHandle_t ulOverlayHandle
float fRed
Definition openvr_mingw.h:3048
const char * pchOverlayName
Definition openvr_mingw.h:3035
void void uint32_t uint32_t * pHeight
Definition openvr_mingw.h:3096
EVROverlayError(__stdcall *SetOverlayWidthInMeters)(VROverlayHandle_t ulOverlayHandle
char uint32_t unBufferSize
Definition openvr_mingw.h:3039
TrackedDeviceIndex_t char uint32_t unComponentNameSize
Definition openvr_mingw.h:3072
const char * pchName
Definition openvr_mingw.h:3041
EVROverlayError(__stdcall *GetOverlayTransformAbsolute)(VROverlayHandle_t ulOverlayHandle
uint32_t(__stdcall *GetOverlayRenderModel)(vr vr::EVROverlayError(__stdcall *SetOverlayRenderModel)(vr VROverlayTransformType * peTransformType
Definition openvr_mingw.h:3066
void void * pNativeTextureRef
Definition openvr_mingw.h:3096
EVROverlayError(__stdcall *SetOverlayColor)(VROverlayHandle_t ulOverlayHandle
void uint32_t uint32_t unHeight
Definition openvr_mingw.h:3094
const char *__stdcall * GetOverlayErrorNameFromEnum(EVROverlayError error)
EVROverlayError(__stdcall *GetOverlayTextureColorSpace)(VROverlayHandle_t ulOverlayHandle
char uint32_t EVROverlayError * pError
Definition openvr_mingw.h:3039
EVROverlayError(__stdcall *ClearOverlayTexture)(VROverlayHandle_t ulOverlayHandle)
float fWidthInMeters
Definition openvr_mingw.h:3056
VROverlayHandle_t * ulOverlayHandleParent
Definition openvr_mingw.h:3073
EColorSpace eTextureColorSpace
Definition openvr_mingw.h:3060
EVROverlayError(__stdcall *GetOverlayDualAnalogTransform)(VROverlayHandle_t ulOverlay
ETrackingUniverseOrigin HmdVector2_t HmdMatrix34_t * pmatTransform
Definition openvr_mingw.h:3078
ETrackingUniverseOrigin const HmdMatrix34_t * pmatTrackingOriginToOverlayTransform
Definition openvr_mingw.h:3067
EVROverlayError(__stdcall *GetOverlayFlags)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *CreateDashboardOverlay)(const char *pchOverlayKey
uint32_t * punProcessId
Definition openvr_mingw.h:3103
EVROverlayError(__stdcall *SetOverlayRenderingPid)(VROverlayHandle_t ulOverlayHandle
void(__stdcall *HideKeyboard)()
const VRTextureBounds_t * pOverlayTextureBounds
Definition openvr_mingw.h:3062
EVROverlayError(__stdcall *GetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle
EGamepadTextInputLineMode const char * pchDescription
Definition openvr_mingw.h:3106
float float * pfMaxDistanceInMeters
Definition openvr_mingw.h:3059
EVROverlayError(__stdcall *GetOverlayAlpha)(VROverlayHandle_t ulOverlayHandle
EGamepadTextInputLineMode const char uint32_t const char * pchExistingText
Definition openvr_mingw.h:3106
EVROverlayError(__stdcall *SetOverlayName)(VROverlayHandle_t ulOverlayHandle
const VROverlayIntersectionParams_t VROverlayIntersectionResults_t * pResults
Definition openvr_mingw.h:3084
EVROverlayError(__stdcall *MoveGamepadFocusToNeighbor)(EOverlayDirection eDirection
EVROverlayError(__stdcall *SetOverlayTextureBounds)(VROverlayHandle_t ulOverlayHandle
float float float * pfBlue
Definition openvr_mingw.h:3049
float fTexelAspect
Definition openvr_mingw.h:3052
float fAlpha
Definition openvr_mingw.h:3050
VROverlayFlags eOverlayFlag
Definition openvr_mingw.h:3046
void void uint32_t uint32_t uint32_t ETextureType EColorSpace VRTextureBounds_t * pTextureBounds
Definition openvr_mingw.h:3096
const char VROverlayHandle_t VROverlayHandle_t * pThumbnailHandle
Definition openvr_mingw.h:3099
bool(__stdcall *ComputeOverlayIntersection)(VROverlayHandle_t ulOverlayHandle
float * pfMinDistanceInMeters
Definition openvr_mingw.h:3059
VROverlayHandle_t HmdMatrix34_t * pmatParentOverlayToOverlayTransform
Definition openvr_mingw.h:3073
const char * pchCaption
Definition openvr_mingw.h:3114
float * pfAlpha
Definition openvr_mingw.h:3051
EVROverlayError(__stdcall *SetOverlayMouseScale)(VROverlayHandle_t ulOverlayHandle
EVROverlayError(__stdcall *SetOverlayTransformTrackedDeviceComponent)(VROverlayHandle_t ulOverlayHandle
Definition openvr_mingw.h:3562
const char *__stdcall * GetRenderModelErrorNameFromEnum(vr::EVRRenderModelError error)
uint32_t char uint32_t unComponentNameLen
Definition openvr_mingw.h:3573
uint32_t unComponentIndex
Definition openvr_mingw.h:3573
void(__stdcall *FreeRenderModel)(RenderModel_t *pRenderModel)
bool(__stdcall *GetComponentState)(const char *pchRenderModelName
const char const vr::VRControllerState_t const RenderModel_ControllerMode_State_t * pState
Definition openvr_mingw.h:3576
bool(__stdcall *RenderModelHasComponent)(const char *pchRenderModelName
EVRRenderModelError(__stdcall *LoadTextureD3D11_Async)(TextureID_t textureId
void * pD3D11Device
Definition openvr_mingw.h:3567
char uint32_t unOriginalPathLen
Definition openvr_mingw.h:3579
void * pDstTexture
Definition openvr_mingw.h:3568
EVRRenderModelError(__stdcall *LoadRenderModel_Async)(const char *pchRenderModelName
const char char * pchComponentRenderModelName
Definition openvr_mingw.h:3575
EVRRenderModelError(__stdcall *LoadTexture_Async)(TextureID_t textureId
char uint32_t unThumbnailURLLen
Definition openvr_mingw.h:3578
char * pchThumbnailURL
Definition openvr_mingw.h:3578
void(__stdcall *FreeTexture)(RenderModel_TextureMap_t *pTexture)
uint32_t(__stdcall *GetRenderModelName)(uint32_t unRenderModelIndex
const char char uint32_t unComponentRenderModelNameLen
Definition openvr_mingw.h:3575
uint32_t char * pchComponentName
Definition openvr_mingw.h:3573
char uint32_t vr::EVRRenderModelError * peError
Definition openvr_mingw.h:3578
uint32_t(__stdcall *GetComponentCount)(const char *pchRenderModelName)
char uint32_t unRenderModelNameLen
Definition openvr_mingw.h:3570
uint32_t(__stdcall *GetRenderModelCount)()
void(__stdcall *FreeTextureD3D11)(void *pD3D11Texture2D)
uint64_t(__stdcall *GetComponentButtonMask)(const char *pchRenderModelName
RenderModel_t ** ppRenderModel
Definition openvr_mingw.h:3563
RenderModel_TextureMap_t ** ppTexture
Definition openvr_mingw.h:3565
char * pchRenderModelName
Definition openvr_mingw.h:3570
char * pchOriginalPath
Definition openvr_mingw.h:3579
void void ** ppD3D11Texture2D
Definition openvr_mingw.h:3567
const char const vr::VRControllerState_t const RenderModel_ControllerMode_State_t RenderModel_ComponentState_t * pComponentState
Definition openvr_mingw.h:3576
const char const vr::VRControllerState_t * pControllerState
Definition openvr_mingw.h:3576
EVRRenderModelError(__stdcall *LoadIntoTextureD3D11_Async)(TextureID_t textureId
Definition openvr_mingw.h:3916
char uint32_t unBufferLen
Definition openvr_mingw.h:3917
char * pchBuffer
Definition openvr_mingw.h:3917
uint32_t(__stdcall *LoadSharedResource)(const char *pchResourceName
const char char * pchPathBuffer
Definition openvr_mingw.h:3918
const char * pchResourceTypeDirectory
Definition openvr_mingw.h:3918
Definition openvr_mingw.h:3809
Definition openvr_mingw.h:1996
void(__stdcall *RemoveSection)(const char *pchSection
const char * pchSettingsKey
Definition openvr_mingw.h:1999
EVRSettingsError * peError
Definition openvr_mingw.h:1998
const char bool bValue
Definition openvr_mingw.h:1999
const char int32_t nValue
Definition openvr_mingw.h:2000
bool(__stdcall *GetBool)(const char *pchSection
const char *__stdcall * GetSettingsErrorNameFromEnum(EVRSettingsError eError)
bool(__stdcall *Sync)(bool bForce
const char const char * pchValue
Definition openvr_mingw.h:2002
void(__stdcall *RemoveKeyInSection)(const char *pchSection
const char char uint32_t unValueLen
Definition openvr_mingw.h:2006
int32_t(__stdcall *GetInt32)(const char *pchSection
void(__stdcall *SetBool)(const char *pchSection
float(__stdcall *GetFloat)(const char *pchSection
const char float flValue
Definition openvr_mingw.h:2001
Definition openvr_mingw.h:1375
EDeviceActivityLevel(__stdcall *GetTrackedDeviceActivityLevel)(vr void(__stdcall *ApplyTransform)(TrackedDevicePose_t *pOutputPose
Definition openvr_mingw.h:1393
vr::TrackedDeviceIndex_t(__stdcall *GetTrackedDeviceIndexForControllerRole)(vr vr::ETrackedControllerRole(__stdcall *GetControllerRoleForTrackedDeviceIndex)(vr ETrackedDeviceClass(__stdcall *GetTrackedDeviceClass)(vr bool(__stdcall *IsTrackedDeviceConnected)(vr bool(__stdcall *GetBoolTrackedDeviceProperty)(vr float(__stdcall *GetFloatTrackedDeviceProperty)(vr int32_t(__stdcall *GetInt32TrackedDeviceProperty)(vr uint64_t(__stdcall *GetUint64TrackedDeviceProperty)(vr HmdMatrix34_t(__stdcall *GetMatrix34TrackedDeviceProperty)(vr uint32_t(__stdcall *GetArrayTrackedDeviceProperty)(vr uint32_t(__stdcall *GetStringTrackedDeviceProperty)(vr const char *__stdcall * GetPropErrorNameFromEnum(ETrackedPropertyError error)
Definition openvr_mingw.h:1405
bool(__stdcall *ShouldApplicationPause)()
uint32_t(__stdcall *DriverDebugRequest)(vr vr::EVRFirmwareError(__stdcall *PerformFirmwareUpdate)(vr void(__stdcall *AcknowledgeQuit_Exiting)()
Definition openvr_mingw.h:1421
uint32_t(__stdcall *GetSortedTrackedDeviceIndicesOfClass)(ETrackedDeviceClass eTrackedDeviceClass
HmdMatrix34_t(__stdcall *GetSeatedZeroPoseToStandingAbsoluteTrackingPose)()
bool(__stdcall *GetTimeSinceLastVsync)(float *pfSecondsSinceLastVsync
float fU
Definition openvr_mingw.h:1379
bool(__stdcall *IsSteamVRDrawingControllers)()
vr::TrackedDeviceIndex_t * punTrackedDeviceIndexArray
Definition openvr_mingw.h:1391
bool(__stdcall *ComputeDistortion)(EVREye eEye
bool(__stdcall *GetControllerState)(vr vr::TrackedDeviceIndex_t vr::VRControllerState_t uint32_t unControllerStateSize
Definition openvr_mingw.h:1411
HiddenAreaMesh_t(__stdcall *GetHiddenAreaMesh)(EVREye eEye
int32_t(__stdcall *GetD3D9AdapterIndex)()
uint32_t * pnHeight
Definition openvr_mingw.h:1376
ETextureType textureType
Definition openvr_mingw.h:1384
ETextureType VkInstance_T * pInstance
Definition openvr_mingw.h:1384
HmdMatrix34_t(__stdcall *GetEyeToHeadTransform)(EVREye eEye)
HmdMatrix44_t(__stdcall *GetProjectionMatrix)(EVREye eEye
float float float float * pfBottom
Definition openvr_mingw.h:1378
float TrackedDevicePose_t * pTrackedDevicePoseArray
Definition openvr_mingw.h:1387
HmdMatrix34_t(__stdcall *GetRawZeroPoseToStandingAbsoluteTrackingPose)()
bool(__stdcall *ShouldApplicationReduceRenderingWork)()
uint32_t uncbVREvent
Definition openvr_mingw.h:1406
float float fV
Definition openvr_mingw.h:1379
EDeviceActivityLevel(__stdcall *GetTrackedDeviceActivityLevel)(vr const TrackedDevicePose_t const HmdMatrix34_t * pTransform
Definition openvr_mingw.h:1393
float fNearZ
Definition openvr_mingw.h:1377
bool(__stdcall *GetControllerState)(vr vr::TrackedDeviceIndex_t unControllerDeviceIndex
Definition openvr_mingw.h:1411
float float * pfRight
Definition openvr_mingw.h:1378
bool(__stdcall *GetControllerState)(vr bool(__stdcall *GetControllerStateWithPose)(ETrackingUniverseOrigin eOrigin
Definition openvr_mingw.h:1411
bool(__stdcall *SetDisplayVisibility)(bool bIsVisibleOnDesktop)
float float fFarZ
Definition openvr_mingw.h:1377
vr::TrackedDeviceIndex_t uint32_t unTrackedDeviceIndexArrayCount
Definition openvr_mingw.h:1391
const char *__stdcall * GetControllerAxisTypeNameFromEnum(EVRControllerAxisType eAxisType)
const char *__stdcall * GetEventTypeNameFromEnum(EVREventType eType)
uint64_t * pulFrameCounter
Definition openvr_mingw.h:1381
EHiddenAreaMeshType type
Definition openvr_mingw.h:1409
EDeviceActivityLevel(__stdcall *GetTrackedDeviceActivityLevel)(vr const TrackedDevicePose_t * pTrackedDevicePose
Definition openvr_mingw.h:1393
float TrackedDevicePose_t uint32_t unTrackedDevicePoseArrayCount
Definition openvr_mingw.h:1387
bool(__stdcall *PollNextEvent)(VREvent_t *pEvent
void(__stdcall *GetDXGIOutputInfo)(int32_t *pnAdapterIndex)
bool(__stdcall *GetControllerState)(vr vr::TrackedDeviceIndex_t vr::VRControllerState_t * pControllerState
Definition openvr_mingw.h:1411
float fPredictedSecondsToPhotonsFromNow
Definition openvr_mingw.h:1387
void(__stdcall *TriggerHapticPulse)(vr const char *__stdcall * GetButtonIdNameFromEnum(EVRButtonId eButtonId)
Definition openvr_mingw.h:1413
float float DistortionCoordinates_t * pDistortionCoordinates
Definition openvr_mingw.h:1379
bool(__stdcall *IsDisplayOnDesktop)()
void(__stdcall *ResetSeatedZeroPose)()
bool(__stdcall *PollNextEventWithPose)(ETrackingUniverseOrigin eOrigin
VREvent_t * pEvent
Definition openvr_mingw.h:1407
vr::TrackedDeviceIndex_t uint32_t vr::TrackedDeviceIndex_t unRelativeToTrackedDeviceIndex
Definition openvr_mingw.h:1391
float float float * pfTop
Definition openvr_mingw.h:1378
void(__stdcall *AcknowledgeQuit_UserPrompt)()
bool(__stdcall *IsInputAvailable)()
float * pfLeft
Definition openvr_mingw.h:1378
Definition openvr_mingw.h:3725
const char *__stdcall * GetCameraErrorNameFromEnum(vr::EVRTrackedCameraError eCameraError)
Definition openvr_mingw.h:897
VREvent_Process_t process
Definition openvr_mingw.h:902
VREvent_Reserved_t reserved
Definition openvr_mingw.h:898
VREvent_Keyboard_t keyboard
Definition openvr_mingw.h:906
VREvent_TouchPadMove_t touchPadMove
Definition openvr_mingw.h:910
VREvent_Chaperone_t chaperone
Definition openvr_mingw.h:908
VREvent_PerformanceTest_t performanceTest
Definition openvr_mingw.h:909
VREvent_Screenshot_t screenshot
Definition openvr_mingw.h:912
VREvent_Mouse_t mouse
Definition openvr_mingw.h:900
VREvent_Status_t status
Definition openvr_mingw.h:905
VREvent_HapticVibration_t hapticVibration
Definition openvr_mingw.h:919
VREvent_Ipd_t ipd
Definition openvr_mingw.h:907
VREvent_Controller_t controller
Definition openvr_mingw.h:899
VREvent_Overlay_t overlay
Definition openvr_mingw.h:904
VREvent_ApplicationLaunch_t applicationLaunch
Definition openvr_mingw.h:914
VREvent_SeatedZeroPoseReset_t seatedZeroPoseReset
Definition openvr_mingw.h:911
VREvent_EditingCameraSurface_t cameraSurface
Definition openvr_mingw.h:915
VREvent_ScreenshotProgress_t screenshotProgress
Definition openvr_mingw.h:913
VREvent_Property_t property
Definition openvr_mingw.h:917
VREvent_Notification_t notification
Definition openvr_mingw.h:903
VREvent_MessageOverlay_t messageOverlay
Definition openvr_mingw.h:916
VREvent_Scroll_t scroll
Definition openvr_mingw.h:901
VREvent_DualAnalog_t dualAnalog
Definition openvr_mingw.h:918
Definition openvr_mingw.h:3021
IntersectionMaskCircle_t m_Circle
Definition openvr_mingw.h:3023
IntersectionMaskRectangle_t m_Rectangle
Definition openvr_mingw.h:3022