Skip to content

Commit

Permalink
OpenVR SDK 0.9.17:
Browse files Browse the repository at this point in the history
General:
* Added events for application to temporarily hide and re-show render models (VREvent_HideRenderModels, VREvent_ShowRenderModels).
* Added VREvent_KeyboardDone  which is sent when DONE button clicked on keyboard.
* There is a change to how the openvr.h manages talking to the openvr_api.dll. We now have inline functions that acquire the interface pointers so when you build you will get the correct interface pointer even if the underlying openvr_api.dll is newer than the one you built against. This will enable environments where multiple codebases need to coexist in the same process such as some game engines.

IVRApplications:


Compositor:
* Added new error code for detecting non-D3D11 class hardware (VRInitError_Compositor_D3D11HardwareRequired).
* New interface for individually getting last tracked device poses returned by WaitGetPoses (GetLastPoseForTrackedDeviceIndex).
* New API used to determine if the current app should render using lower resources (ShouldAppRenderWithLowResources). Typically this will return true when the dashboard is showing but other scenarios could result in this behavior also.

Settings:
* New speaker related settings (usingSpeakers, speakersForwardYawOffsetDegrees).

[git-p4: depot-paths = "//vr/steamvr/sdk_release/": change = 3321024]
  • Loading branch information
Alex Hopmann committed Feb 27, 2016
1 parent c174baf commit 6f671fc
Show file tree
Hide file tree
Showing 19 changed files with 788 additions and 84 deletions.
Binary file modified bin/linux64/libopenvr_api.so
Binary file not shown.
Binary file modified bin/linux64/libopenvr_api.so.dbg
Binary file not shown.
Binary file modified bin/osx32/libopenvr_api.dylib
Binary file not shown.
Binary file not shown.
Binary file modified bin/win32/openvr_api.dll
Binary file not shown.
Binary file modified bin/win32/openvr_api.pdb
Binary file not shown.
Binary file modified bin/win64/openvr_api.dll
Binary file not shown.
Binary file modified bin/win64/openvr_api.pdb
Binary file not shown.
283 changes: 243 additions & 40 deletions headers/openvr.h

Large diffs are not rendered by default.

407 changes: 372 additions & 35 deletions headers/openvr_api.cs

Large diffs are not rendered by default.

129 changes: 127 additions & 2 deletions headers/openvr_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@
,{"name": "VREvent_SceneFocusGained","value": "403"}
,{"name": "VREvent_SceneApplicationChanged","value": "404"}
,{"name": "VREvent_SceneFocusChanged","value": "405"}
,{"name": "VREvent_HideRenderModels","value": "410"}
,{"name": "VREvent_ShowRenderModels","value": "411"}
,{"name": "VREvent_OverlayShown","value": "500"}
,{"name": "VREvent_OverlayHidden","value": "501"}
,{"name": "VREvent_DashboardActivated","value": "502"}
Expand Down Expand Up @@ -231,6 +233,7 @@
,{"name": "VREvent_FirmwareUpdateFinished","value": "1101"}
,{"name": "VREvent_KeyboardClosed","value": "1200"}
,{"name": "VREvent_KeyboardCharInput","value": "1201"}
,{"name": "VREvent_KeyboardDone","value": "1202"}
,{"name": "VREvent_ApplicationTransitionStarted","value": "1300"}
,{"name": "VREvent_ApplicationTransitionAborted","value": "1301"}
,{"name": "VREvent_ApplicationTransitionNewAppStarted","value": "1302"}
Expand Down Expand Up @@ -376,6 +379,8 @@
,{"name": "VRInitError_IPC_CompositorInitFailed","value": "303"}
,{"name": "VRInitError_IPC_MutexInitFailed","value": "304"}
,{"name": "VRInitError_IPC_Failed","value": "305"}
,{"name": "VRInitError_Compositor_Failed","value": "400"}
,{"name": "VRInitError_Compositor_D3D11HardwareRequired","value": "401"}
,{"name": "VRInitError_VendorSpecific_UnableToConnectToOculusRuntime","value": "1000"}
,{"name": "VRInitError_VendorSpecific_HmdFound_CantOpenDevice","value": "1101"}
,{"name": "VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart","value": "1102"}
Expand Down Expand Up @@ -457,6 +462,7 @@
,{"name": "VRCompositorError_TextureIsOnWrongDevice","value": "104"}
,{"name": "VRCompositorError_TextureUsesUnsupportedFormat","value": "105"}
,{"name": "VRCompositorError_SharedTexturesNotSupported","value": "106"}
,{"name": "VRCompositorError_IndexOutOfRange","value": "107"}
]}
, {"enumname": "vr::VROverlayInputMethod","values": [
{"name": "VROverlayInputMethod_None","value": "0"}
Expand Down Expand Up @@ -561,13 +567,13 @@
,{
"constname": "k_unMaxApplicationKeyLength","consttype": "const uint32_t", "constval": "128"}
,{
"constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_003"}
"constname": "IVRApplications_Version","consttype": "const char *const", "constval": "IVRApplications_004"}
,{
"constname": "IVRChaperone_Version","consttype": "const char *const", "constval": "IVRChaperone_003"}
,{
"constname": "IVRChaperoneSetup_Version","consttype": "const char *const", "constval": "IVRChaperoneSetup_005"}
,{
"constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_011"}
"constname": "IVRCompositor_Version","consttype": "const char *const", "constval": "IVRCompositor_012"}
,{
"constname": "k_unVROverlayMaxKeyLength","consttype": "const uint32_t", "constval": "128"}
,{
Expand Down Expand Up @@ -636,6 +642,14 @@
"constname": "k_pch_SteamVR_RequestDirectModeEnabled_Bool","consttype": "const char *const", "constval": "requestDirectModeEnabled"}
,{
"constname": "k_pch_SteamVR_RequestDirectModeDisabled_Bool","consttype": "const char *const", "constval": "requestDirectModeDisabled"}
,{
"constname": "k_pch_SteamVR_RequestDirectModeEdidVid_Int32","consttype": "const char *const", "constval": "requestDirectModeEdidVid"}
,{
"constname": "k_pch_SteamVR_RequestDirectModeEdidPid_Int32","consttype": "const char *const", "constval": "requestDirectModeEdidPid"}
,{
"constname": "k_pch_SteamVR_UsingSpeakers_Bool","consttype": "const char *const", "constval": "usingSpeakers"}
,{
"constname": "k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float","consttype": "const char *const", "constval": "speakersForwardYawOffsetDegrees"}
,{
"constname": "k_pch_Lighthouse_Section","consttype": "const char *const", "constval": "driver_lighthouse"}
,{
Expand Down Expand Up @@ -710,6 +724,8 @@
"constname": "k_pch_Perf_AllowTimingStore_Bool","consttype": "const char *const", "constval": "allowTimingStore"}
,{
"constname": "k_pch_Perf_SaveTimingsOnExit_Bool","consttype": "const char *const", "constval": "saveTimingsOnExit"}
,{
"constname": "k_pch_Perf_TestData_Float","consttype": "const char *const", "constval": "perfTestData"}
,{
"constname": "k_pch_Camera_Section","consttype": "const char *const", "constval": "camera"}
,{
Expand Down Expand Up @@ -926,6 +942,16 @@
{ "fieldname": "m_matDeviceToAbsoluteTracking", "fieldtype": "vr::HmdMatrix34_t"},
{ "fieldname": "m_Pad", "fieldtype": "float [4]"},
{ "fieldname": "m_pImageData", "fieldtype": "void *"}]}
,{"struct": "vr::COpenVRContext","fields": [
{ "fieldname": "m_pVRSystem", "fieldtype": "class vr::IVRSystem *"},
{ "fieldname": "m_pVRChaperone", "fieldtype": "class vr::IVRChaperone *"},
{ "fieldname": "m_pVRChaperoneSetup", "fieldtype": "class vr::IVRChaperoneSetup *"},
{ "fieldname": "m_pVRCompositor", "fieldtype": "class vr::IVRCompositor *"},
{ "fieldname": "m_pVROverlay", "fieldtype": "class vr::IVROverlay *"},
{ "fieldname": "m_pVRRenderModels", "fieldtype": "class vr::IVRRenderModels *"},
{ "fieldname": "m_pVRExtendedDisplay", "fieldtype": "class vr::IVRExtendedDisplay *"},
{ "fieldname": "m_pVRSettings", "fieldtype": "class vr::IVRSettings *"},
{ "fieldname": "m_pVRApplications", "fieldtype": "class vr::IVRApplications *"}]}
],
"methods":[{
"classname": "vr::IVRSystem",
Expand Down Expand Up @@ -1409,6 +1435,14 @@
{ "paramname": "pchAppKey" ,"paramtype": "const char *"}
]
}
,{
"classname": "vr::IVRApplications",
"methodname": "CancelApplicationLaunch",
"returntype": "bool",
"params": [
{ "paramname": "pchAppKey" ,"paramtype": "const char *"}
]
}
,{
"classname": "vr::IVRApplications",
"methodname": "IdentifyApplication",
Expand Down Expand Up @@ -1762,6 +1796,16 @@
{ "paramname": "unGamePoseArrayCount" ,"paramtype": "uint32_t"}
]
}
,{
"classname": "vr::IVRCompositor",
"methodname": "GetLastPoseForTrackedDeviceIndex",
"returntype": "vr::EVRCompositorError",
"params": [
{ "paramname": "unDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"},
{ "paramname": "pOutputPose" ,"paramtype": "struct vr::TrackedDevicePose_t *"},
{ "paramname": "pOutputGamePose" ,"paramtype": "struct vr::TrackedDevicePose_t *"}
]
}
,{
"classname": "vr::IVRCompositor",
"methodname": "Submit",
Expand Down Expand Up @@ -1888,6 +1932,11 @@
"methodname": "CompositorDumpImages",
"returntype": "void"
}
,{
"classname": "vr::IVRCompositor",
"methodname": "ShouldAppRenderWithLowResources",
"returntype": "bool"
}
,{
"classname": "vr::IVROverlay",
"methodname": "FindOverlay",
Expand Down Expand Up @@ -2733,6 +2782,16 @@
{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"}
]
}
,{
"classname": "vr::IVRSettings",
"methodname": "RemoveKeyInSection",
"returntype": "void",
"params": [
{ "paramname": "pchSection" ,"paramtype": "const char *"},
{ "paramname": "pchSettingsKey" ,"paramtype": "const char *"},
{ "paramname": "peError" ,"paramtype": "vr::EVRSettingsError *"}
]
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "HasCamera",
Expand Down Expand Up @@ -2881,5 +2940,71 @@
{ "paramname": "pProjection" ,"paramtype": "vr::HmdMatrix44_t *"}
]
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "GetRecommendedCameraUndistortion",
"returntype": "bool",
"params": [
{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"},
{ "paramname": "pUndistortionWidthPixels" ,"paramtype": "uint32_t *"},
{ "paramname": "pUndistortionHeightPixels" ,"paramtype": "uint32_t *"}
]
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "SetCameraUndistortion",
"returntype": "bool",
"params": [
{ "paramname": "nDeviceIndex" ,"paramtype": "vr::TrackedDeviceIndex_t"},
{ "paramname": "nUndistortionWidthPixels" ,"paramtype": "uint32_t"},
{ "paramname": "nUndistortionHeightPixels" ,"paramtype": "uint32_t"}
]
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "RequestVideoServicesForTool",
"returntype": "void"
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "ReleaseVideoServicesForTool",
"returntype": "void"
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "GetVideoStreamFrameSharedTextureGL",
"returntype": "bool",
"params": [
{ "paramname": "bUndistorted" ,"paramtype": "bool"},
{ "paramname": "pglTextureId" ,"paramtype": "vr::glUInt_t *"},
{ "paramname": "pglSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t *"}
]
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "ReleaseVideoStreamFrameSharedTextureGL",
"returntype": "bool",
"params": [
{ "paramname": "glTextureId" ,"paramtype": "vr::glUInt_t"},
{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"}
]
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "LockSharedTextureGL",
"returntype": "void",
"params": [
{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"},
{ "paramname": "pFrameImage" ,"paramtype": "vr::CameraVideoStreamFrame_t *"}
]
}
,{
"classname": "vr::IVRTrackedCamera",
"methodname": "UnlockSharedTextureGL",
"returntype": "void",
"params": [
{ "paramname": "glSharedTextureHandle" ,"paramtype": "vr::glSharedTextureHandle_t"}
]
}
]
}
34 changes: 31 additions & 3 deletions headers/openvr_capi.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@ unsigned long k_ulOverlayHandleInvalid = 0;
char * IVRSystem_Version = "IVRSystem_011";
char * IVRExtendedDisplay_Version = "IVRExtendedDisplay_001";
unsigned int k_unMaxApplicationKeyLength = 128;
char * IVRApplications_Version = "IVRApplications_003";
char * IVRApplications_Version = "IVRApplications_004";
char * IVRChaperone_Version = "IVRChaperone_003";
char * IVRChaperoneSetup_Version = "IVRChaperoneSetup_005";
char * IVRCompositor_Version = "IVRCompositor_011";
char * IVRCompositor_Version = "IVRCompositor_012";
unsigned int k_unVROverlayMaxKeyLength = 128;
unsigned int k_unVROverlayMaxNameLength = 128;
unsigned int k_unMaxOverlayCount = 32;
Expand Down Expand Up @@ -150,6 +150,10 @@ char * k_pch_SteamVR_StandbyNoAppTimeout_Float = "standbyNoAppTimeout";
char * k_pch_SteamVR_AutomaticDirectModeEnabled_Bool = "automaticDirectModeEnabled";
char * k_pch_SteamVR_RequestDirectModeEnabled_Bool = "requestDirectModeEnabled";
char * k_pch_SteamVR_RequestDirectModeDisabled_Bool = "requestDirectModeDisabled";
char * k_pch_SteamVR_RequestDirectModeEdidVid_Int32 = "requestDirectModeEdidVid";
char * k_pch_SteamVR_RequestDirectModeEdidPid_Int32 = "requestDirectModeEdidPid";
char * k_pch_SteamVR_UsingSpeakers_Bool = "usingSpeakers";
char * k_pch_SteamVR_SpeakersForwardYawOffsetDegrees_Float = "speakersForwardYawOffsetDegrees";
char * k_pch_Lighthouse_Section = "driver_lighthouse";
char * k_pch_Lighthouse_DisableIMU_Bool = "disableimu";
char * k_pch_Lighthouse_UseDisambiguation_String = "usedisambiguation";
Expand Down Expand Up @@ -187,6 +191,7 @@ char * k_pch_Perf_NotifyInHMD_Bool = "warnInHMD";
char * k_pch_Perf_NotifyOnlyOnce_Bool = "warnOnlyOnce";
char * k_pch_Perf_AllowTimingStore_Bool = "allowTimingStore";
char * k_pch_Perf_SaveTimingsOnExit_Bool = "saveTimingsOnExit";
char * k_pch_Perf_TestData_Float = "perfTestData";
char * k_pch_Camera_Section = "camera";
char * IVRSettings_Version = "IVRSettings_001";
char * IVRTrackedCamera_Version = "IVRTrackedCamera_001";
Expand Down Expand Up @@ -390,6 +395,8 @@ typedef enum EVREventType
EVREventType_VREvent_SceneFocusGained = 403,
EVREventType_VREvent_SceneApplicationChanged = 404,
EVREventType_VREvent_SceneFocusChanged = 405,
EVREventType_VREvent_HideRenderModels = 410,
EVREventType_VREvent_ShowRenderModels = 411,
EVREventType_VREvent_OverlayShown = 500,
EVREventType_VREvent_OverlayHidden = 501,
EVREventType_VREvent_DashboardActivated = 502,
Expand Down Expand Up @@ -423,6 +430,7 @@ typedef enum EVREventType
EVREventType_VREvent_FirmwareUpdateFinished = 1101,
EVREventType_VREvent_KeyboardClosed = 1200,
EVREventType_VREvent_KeyboardCharInput = 1201,
EVREventType_VREvent_KeyboardDone = 1202,
EVREventType_VREvent_ApplicationTransitionStarted = 1300,
EVREventType_VREvent_ApplicationTransitionAborted = 1301,
EVREventType_VREvent_ApplicationTransitionNewAppStarted = 1302,
Expand Down Expand Up @@ -590,6 +598,8 @@ typedef enum EVRInitError
EVRInitError_VRInitError_IPC_CompositorInitFailed = 303,
EVRInitError_VRInitError_IPC_MutexInitFailed = 304,
EVRInitError_VRInitError_IPC_Failed = 305,
EVRInitError_VRInitError_Compositor_Failed = 400,
EVRInitError_VRInitError_Compositor_D3D11HardwareRequired = 401,
EVRInitError_VRInitError_VendorSpecific_UnableToConnectToOculusRuntime = 1000,
EVRInitError_VRInitError_VendorSpecific_HmdFound_CantOpenDevice = 1101,
EVRInitError_VRInitError_VendorSpecific_HmdFound_UnableToRequestConfigStart = 1102,
Expand Down Expand Up @@ -683,6 +693,7 @@ typedef enum EVRCompositorError
EVRCompositorError_VRCompositorError_TextureIsOnWrongDevice = 104,
EVRCompositorError_VRCompositorError_TextureUsesUnsupportedFormat = 105,
EVRCompositorError_VRCompositorError_SharedTexturesNotSupported = 106,
EVRCompositorError_VRCompositorError_IndexOutOfRange = 107,
} EVRCompositorError;

typedef enum VROverlayInputMethod
Expand Down Expand Up @@ -1022,6 +1033,19 @@ typedef struct CameraVideoStreamFrame_t
void * m_pImageData; // void *
} CameraVideoStreamFrame_t;

typedef struct COpenVRContext
{
class IVRSystem * m_pVRSystem; // class vr::IVRSystem *
class IVRChaperone * m_pVRChaperone; // class vr::IVRChaperone *
class IVRChaperoneSetup * m_pVRChaperoneSetup; // class vr::IVRChaperoneSetup *
class IVRCompositor * m_pVRCompositor; // class vr::IVRCompositor *
class IVROverlay * m_pVROverlay; // class vr::IVROverlay *
class IVRRenderModels * m_pVRRenderModels; // class vr::IVRRenderModels *
class IVRExtendedDisplay * m_pVRExtendedDisplay; // class vr::IVRExtendedDisplay *
class IVRSettings * m_pVRSettings; // class vr::IVRSettings *
class IVRApplications * m_pVRApplications; // class vr::IVRApplications *
} COpenVRContext;




Expand Down Expand Up @@ -1082,6 +1106,7 @@ S_API EVRApplicationError VR_IVRApplications_GetApplicationKeyByIndex(intptr_t i
S_API EVRApplicationError VR_IVRApplications_GetApplicationKeyByProcessId(intptr_t instancePtr, uint32_t unProcessId, char * pchAppKeyBuffer, uint32_t unAppKeyBufferLen);
S_API EVRApplicationError VR_IVRApplications_LaunchApplication(intptr_t instancePtr, const char * pchAppKey);
S_API EVRApplicationError VR_IVRApplications_LaunchDashboardOverlay(intptr_t instancePtr, const char * pchAppKey);
S_API bool VR_IVRApplications_CancelApplicationLaunch(intptr_t instancePtr, const char * pchAppKey);
S_API EVRApplicationError VR_IVRApplications_IdentifyApplication(intptr_t instancePtr, uint32_t unProcessId, const char * pchAppKey);
S_API uint32_t VR_IVRApplications_GetApplicationProcessId(intptr_t instancePtr, const char * pchAppKey);
S_API char * VR_IVRApplications_GetApplicationsErrorNameFromEnum(intptr_t instancePtr, EVRApplicationError error);
Expand Down Expand Up @@ -1125,6 +1150,7 @@ S_API void VR_IVRCompositor_SetTrackingSpace(intptr_t instancePtr, ETrackingUniv
S_API ETrackingUniverseOrigin VR_IVRCompositor_GetTrackingSpace(intptr_t instancePtr);
S_API EVRCompositorError VR_IVRCompositor_WaitGetPoses(intptr_t instancePtr, struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount);
S_API EVRCompositorError VR_IVRCompositor_GetLastPoses(intptr_t instancePtr, struct TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, struct TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount);
S_API EVRCompositorError VR_IVRCompositor_GetLastPoseForTrackedDeviceIndex(intptr_t instancePtr, TrackedDeviceIndex_t unDeviceIndex, struct TrackedDevicePose_t * pOutputPose, struct TrackedDevicePose_t * pOutputGamePose);
S_API EVRCompositorError VR_IVRCompositor_Submit(intptr_t instancePtr, EVREye eEye, const struct Texture_t * pTexture, const struct VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags);
S_API void VR_IVRCompositor_ClearLastSubmittedFrame(intptr_t instancePtr);
S_API void VR_IVRCompositor_PostPresentHandoff(intptr_t instancePtr);
Expand All @@ -1145,6 +1171,7 @@ S_API void VR_IVRCompositor_ShowMirrorWindow(intptr_t instancePtr);
S_API void VR_IVRCompositor_HideMirrorWindow(intptr_t instancePtr);
S_API bool VR_IVRCompositor_IsMirrorWindowVisible(intptr_t instancePtr);
S_API void VR_IVRCompositor_CompositorDumpImages(intptr_t instancePtr);
S_API bool VR_IVRCompositor_ShouldAppRenderWithLowResources(intptr_t instancePtr);
S_API EVROverlayError VR_IVROverlay_FindOverlay(intptr_t instancePtr, const char * pchOverlayKey, VROverlayHandle_t * pOverlayHandle);
S_API EVROverlayError VR_IVROverlay_CreateOverlay(intptr_t instancePtr, const char * pchOverlayKey, const char * pchOverlayFriendlyName, VROverlayHandle_t * pOverlayHandle);
S_API EVROverlayError VR_IVROverlay_DestroyOverlay(intptr_t instancePtr, VROverlayHandle_t ulOverlayHandle);
Expand Down Expand Up @@ -1235,6 +1262,7 @@ S_API void VR_IVRSettings_SetFloat(intptr_t instancePtr, const char * pchSection
S_API void VR_IVRSettings_GetString(intptr_t instancePtr, const char * pchSection, const char * pchSettingsKey, char * pchValue, uint32_t unValueLen, const char * pchDefaultValue, EVRSettingsError * peError);
S_API void VR_IVRSettings_SetString(intptr_t instancePtr, const char * pchSection, const char * pchSettingsKey, const char * pchValue, EVRSettingsError * peError);
S_API void VR_IVRSettings_RemoveSection(intptr_t instancePtr, const char * pchSection, EVRSettingsError * peError);
S_API void VR_IVRSettings_RemoveKeyInSection(intptr_t instancePtr, const char * pchSection, const char * pchSettingsKey, EVRSettingsError * peError);
S_API bool VR_IVRTrackedCamera_HasCamera(intptr_t instancePtr, TrackedDeviceIndex_t nDeviceIndex);
S_API bool VR_IVRTrackedCamera_GetCameraFirmwareDescription(intptr_t instancePtr, TrackedDeviceIndex_t nDeviceIndex, char * pBuffer, uint32_t nBufferLen);
S_API bool VR_IVRTrackedCamera_GetCameraFrameDimensions(intptr_t instancePtr, TrackedDeviceIndex_t nDeviceIndex, ECameraVideoStreamFormat nVideoStreamFormat, uint32_t * pWidth, uint32_t * pHeight);
Expand All @@ -1257,7 +1285,7 @@ S_API void VR_IVRTrackedCamera_RequestVideoServicesForTool(intptr_t instancePtr)
S_API void VR_IVRTrackedCamera_ReleaseVideoServicesForTool(intptr_t instancePtr);
S_API bool VR_IVRTrackedCamera_GetVideoStreamFrameSharedTextureGL(intptr_t instancePtr, bool bUndistorted, glUInt_t * pglTextureId, glSharedTextureHandle_t * pglSharedTextureHandle);
S_API bool VR_IVRTrackedCamera_ReleaseVideoStreamFrameSharedTextureGL(intptr_t instancePtr, glUInt_t glTextureId, glSharedTextureHandle_t glSharedTextureHandle);
S_API void VR_IVRTrackedCamera_LockSharedTextureGL(intptr_t instancePtr, glSharedTextureHandle_t glSharedTextureHandle);
S_API void VR_IVRTrackedCamera_LockSharedTextureGL(intptr_t instancePtr, glSharedTextureHandle_t glSharedTextureHandle, CameraVideoStreamFrame_t * pFrameImage);
S_API void VR_IVRTrackedCamera_UnlockSharedTextureGL(intptr_t instancePtr, glSharedTextureHandle_t glSharedTextureHandle);

// Global entry points
Expand Down

0 comments on commit 6f671fc

Please sign in to comment.