2018-01-31 19:31:32 +03:00
|
|
|
#include "vrclient_private.h"
|
|
|
|
#include "vrclient_defs.h"
|
2018-10-23 20:30:09 +03:00
|
|
|
#include "openvr_v1.0.17/ivrclientcore.h"
|
2018-01-31 19:31:32 +03:00
|
|
|
using namespace vr;
|
|
|
|
extern "C" {
|
|
|
|
#include "struct_converters.h"
|
|
|
|
}
|
|
|
|
#include "cppIVROverlay_IVROverlay_018.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_FindOverlay(void *linux_side, const char *pchOverlayKey, VROverlayHandle_t *pOverlayHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->FindOverlay((const char *)pchOverlayKey, (vr::VROverlayHandle_t *)pOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_CreateOverlay(void *linux_side, const char *pchOverlayKey, const char *pchOverlayName, VROverlayHandle_t *pOverlayHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->CreateOverlay((const char *)pchOverlayKey, (const char *)pchOverlayName, (vr::VROverlayHandle_t *)pOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_DestroyOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->DestroyOverlay((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetHighQualityOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetHighQualityOverlay((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
VROverlayHandle_t cppIVROverlay_IVROverlay_018_GetHighQualityOverlay(void *linux_side)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
VROverlayHandle_t _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetHighQualityOverlay();
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
uint32_t cppIVROverlay_IVROverlay_018_GetOverlayKey(void *linux_side, VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, EVROverlayError *pError)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
uint32_t _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayKey((vr::VROverlayHandle_t)ulOverlayHandle, (char *)pchValue, (uint32_t)unBufferSize, (vr::EVROverlayError *)pError);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
uint32_t cppIVROverlay_IVROverlay_018_GetOverlayName(void *linux_side, VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, EVROverlayError *pError)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
uint32_t _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayName((vr::VROverlayHandle_t)ulOverlayHandle, (char *)pchValue, (uint32_t)unBufferSize, (vr::EVROverlayError *)pError);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayName(void *linux_side, VROverlayHandle_t ulOverlayHandle, const char *pchName)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayName((vr::VROverlayHandle_t)ulOverlayHandle, (const char *)pchName);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayImageData(void *linux_side, VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unBufferSize, uint32_t *punWidth, uint32_t *punHeight)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayImageData((vr::VROverlayHandle_t)ulOverlayHandle, (void *)pvBuffer, (uint32_t)unBufferSize, (uint32_t *)punWidth, (uint32_t *)punHeight);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
const char * cppIVROverlay_IVROverlay_018_GetOverlayErrorNameFromEnum(void *linux_side, EVROverlayError error)
|
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
const char *_ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayErrorNameFromEnum((vr::EVROverlayError)error);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayRenderingPid(void *linux_side, VROverlayHandle_t ulOverlayHandle, uint32_t unPID)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayRenderingPid((vr::VROverlayHandle_t)ulOverlayHandle, (uint32_t)unPID);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
uint32_t cppIVROverlay_IVROverlay_018_GetOverlayRenderingPid(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
uint32_t _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayRenderingPid((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayFlag(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool bEnabled)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayFlag((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayFlags)eOverlayFlag, (bool)bEnabled);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayFlag(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayFlags eOverlayFlag, bool *pbEnabled)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayFlag((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayFlags)eOverlayFlag, (bool *)pbEnabled);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayColor(void *linux_side, VROverlayHandle_t ulOverlayHandle, float fRed, float fGreen, float fBlue)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayColor((vr::VROverlayHandle_t)ulOverlayHandle, (float)fRed, (float)fGreen, (float)fBlue);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayColor(void *linux_side, VROverlayHandle_t ulOverlayHandle, float *pfRed, float *pfGreen, float *pfBlue)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayColor((vr::VROverlayHandle_t)ulOverlayHandle, (float *)pfRed, (float *)pfGreen, (float *)pfBlue);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayAlpha(void *linux_side, VROverlayHandle_t ulOverlayHandle, float fAlpha)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayAlpha((vr::VROverlayHandle_t)ulOverlayHandle, (float)fAlpha);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayAlpha(void *linux_side, VROverlayHandle_t ulOverlayHandle, float *pfAlpha)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayAlpha((vr::VROverlayHandle_t)ulOverlayHandle, (float *)pfAlpha);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTexelAspect(void *linux_side, VROverlayHandle_t ulOverlayHandle, float fTexelAspect)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTexelAspect((vr::VROverlayHandle_t)ulOverlayHandle, (float)fTexelAspect);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTexelAspect(void *linux_side, VROverlayHandle_t ulOverlayHandle, float *pfTexelAspect)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTexelAspect((vr::VROverlayHandle_t)ulOverlayHandle, (float *)pfTexelAspect);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlaySortOrder(void *linux_side, VROverlayHandle_t ulOverlayHandle, uint32_t unSortOrder)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlaySortOrder((vr::VROverlayHandle_t)ulOverlayHandle, (uint32_t)unSortOrder);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlaySortOrder(void *linux_side, VROverlayHandle_t ulOverlayHandle, uint32_t *punSortOrder)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlaySortOrder((vr::VROverlayHandle_t)ulOverlayHandle, (uint32_t *)punSortOrder);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayWidthInMeters(void *linux_side, VROverlayHandle_t ulOverlayHandle, float fWidthInMeters)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayWidthInMeters((vr::VROverlayHandle_t)ulOverlayHandle, (float)fWidthInMeters);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayWidthInMeters(void *linux_side, VROverlayHandle_t ulOverlayHandle, float *pfWidthInMeters)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayWidthInMeters((vr::VROverlayHandle_t)ulOverlayHandle, (float *)pfWidthInMeters);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayAutoCurveDistanceRangeInMeters(void *linux_side, VROverlayHandle_t ulOverlayHandle, float fMinDistanceInMeters, float fMaxDistanceInMeters)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayAutoCurveDistanceRangeInMeters((vr::VROverlayHandle_t)ulOverlayHandle, (float)fMinDistanceInMeters, (float)fMaxDistanceInMeters);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayAutoCurveDistanceRangeInMeters(void *linux_side, VROverlayHandle_t ulOverlayHandle, float *pfMinDistanceInMeters, float *pfMaxDistanceInMeters)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayAutoCurveDistanceRangeInMeters((vr::VROverlayHandle_t)ulOverlayHandle, (float *)pfMinDistanceInMeters, (float *)pfMaxDistanceInMeters);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTextureColorSpace(void *linux_side, VROverlayHandle_t ulOverlayHandle, EColorSpace eTextureColorSpace)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTextureColorSpace((vr::VROverlayHandle_t)ulOverlayHandle, (vr::EColorSpace)eTextureColorSpace);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTextureColorSpace(void *linux_side, VROverlayHandle_t ulOverlayHandle, EColorSpace *peTextureColorSpace)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTextureColorSpace((vr::VROverlayHandle_t)ulOverlayHandle, (vr::EColorSpace *)peTextureColorSpace);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTextureBounds(void *linux_side, VROverlayHandle_t ulOverlayHandle, const VRTextureBounds_t *pOverlayTextureBounds)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTextureBounds((vr::VROverlayHandle_t)ulOverlayHandle, (const vr::VRTextureBounds_t *)pOverlayTextureBounds);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTextureBounds(void *linux_side, VROverlayHandle_t ulOverlayHandle, VRTextureBounds_t *pOverlayTextureBounds)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTextureBounds((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VRTextureBounds_t *)pOverlayTextureBounds);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
uint32_t cppIVROverlay_IVROverlay_018_GetOverlayRenderModel(void *linux_side, VROverlayHandle_t ulOverlayHandle, char *pchValue, uint32_t unBufferSize, HmdColor_t *pColor, EVROverlayError *pError)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
uint32_t _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayRenderModel((vr::VROverlayHandle_t)ulOverlayHandle, (char *)pchValue, (uint32_t)unBufferSize, (vr::HmdColor_t *)pColor, (vr::EVROverlayError *)pError);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayRenderModel(void *linux_side, VROverlayHandle_t ulOverlayHandle, const char *pchRenderModel, const HmdColor_t *pColor)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayRenderModel((vr::VROverlayHandle_t)ulOverlayHandle, (const char *)pchRenderModel, (const vr::HmdColor_t *)pColor);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTransformType(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayTransformType *peTransformType)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTransformType((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayTransformType *)peTransformType);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTransformAbsolute(void *linux_side, VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToOverlayTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTransformAbsolute((vr::VROverlayHandle_t)ulOverlayHandle, (vr::ETrackingUniverseOrigin)eTrackingOrigin, (const vr::HmdMatrix34_t *)pmatTrackingOriginToOverlayTransform);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTransformAbsolute(void *linux_side, VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin *peTrackingOrigin, HmdMatrix34_t *pmatTrackingOriginToOverlayTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTransformAbsolute((vr::VROverlayHandle_t)ulOverlayHandle, (vr::ETrackingUniverseOrigin *)peTrackingOrigin, (vr::HmdMatrix34_t *)pmatTrackingOriginToOverlayTransform);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTransformTrackedDeviceRelative(void *linux_side, VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unTrackedDevice, const HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTransformTrackedDeviceRelative((vr::VROverlayHandle_t)ulOverlayHandle, (vr::TrackedDeviceIndex_t)unTrackedDevice, (const vr::HmdMatrix34_t *)pmatTrackedDeviceToOverlayTransform);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTransformTrackedDeviceRelative(void *linux_side, VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punTrackedDevice, HmdMatrix34_t *pmatTrackedDeviceToOverlayTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTransformTrackedDeviceRelative((vr::VROverlayHandle_t)ulOverlayHandle, (vr::TrackedDeviceIndex_t *)punTrackedDevice, (vr::HmdMatrix34_t *)pmatTrackedDeviceToOverlayTransform);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTransformTrackedDeviceComponent(void *linux_side, VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t unDeviceIndex, const char *pchComponentName)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTransformTrackedDeviceComponent((vr::VROverlayHandle_t)ulOverlayHandle, (vr::TrackedDeviceIndex_t)unDeviceIndex, (const char *)pchComponentName);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTransformTrackedDeviceComponent(void *linux_side, VROverlayHandle_t ulOverlayHandle, TrackedDeviceIndex_t *punDeviceIndex, char *pchComponentName, uint32_t unComponentNameSize)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTransformTrackedDeviceComponent((vr::VROverlayHandle_t)ulOverlayHandle, (vr::TrackedDeviceIndex_t *)punDeviceIndex, (char *)pchComponentName, (uint32_t)unComponentNameSize);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTransformOverlayRelative(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t *ulOverlayHandleParent, HmdMatrix34_t *pmatParentOverlayToOverlayTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTransformOverlayRelative((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayHandle_t *)ulOverlayHandleParent, (vr::HmdMatrix34_t *)pmatParentOverlayToOverlayTransform);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTransformOverlayRelative(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayHandle_t ulOverlayHandleParent, const HmdMatrix34_t *pmatParentOverlayToOverlayTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTransformOverlayRelative((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayHandle_t)ulOverlayHandleParent, (const vr::HmdMatrix34_t *)pmatParentOverlayToOverlayTransform);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_ShowOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->ShowOverlay((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_HideOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->HideOverlay((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppIVROverlay_IVROverlay_018_IsOverlayVisible(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->IsOverlayVisible((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetTransformForOverlayCoordinates(void *linux_side, VROverlayHandle_t ulOverlayHandle, ETrackingUniverseOrigin eTrackingOrigin, HmdVector2_t coordinatesInOverlay, HmdMatrix34_t *pmatTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetTransformForOverlayCoordinates((vr::VROverlayHandle_t)ulOverlayHandle, (vr::ETrackingUniverseOrigin)eTrackingOrigin, (vr::HmdVector2_t)coordinatesInOverlay, (vr::HmdMatrix34_t *)pmatTransform);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
bool cppIVROverlay_IVROverlay_018_PollNextOverlayEvent(void *linux_side, VROverlayHandle_t ulOverlayHandle, winVREvent_t_1017 *pEvent, uint32_t uncbVREvent)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
|
|
|
bool _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
VREvent_t lin;
|
2023-09-27 16:18:31 +03:00
|
|
|
if (pEvent)
|
2019-09-18 18:26:40 +03:00
|
|
|
struct_VREvent_t_1017_win_to_lin(pEvent, &lin);
|
2023-09-27 16:08:47 +03:00
|
|
|
uint32_t lin_uncbVREvent = uncbVREvent ? sizeof(lin) : 0;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->PollNextOverlayEvent((vr::VROverlayHandle_t)ulOverlayHandle, pEvent ? &lin : nullptr, lin_uncbVREvent);
|
2023-09-27 16:18:31 +03:00
|
|
|
if (pEvent)
|
2019-10-08 23:04:48 +03:00
|
|
|
struct_VREvent_t_1017_lin_to_win(&lin, pEvent, uncbVREvent);
|
2018-01-31 19:31:32 +03:00
|
|
|
return _ret;
|
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayInputMethod(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod *peInputMethod)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayInputMethod((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayInputMethod *)peInputMethod);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayInputMethod(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayInputMethod eInputMethod)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayInputMethod((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayInputMethod)eInputMethod);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayMouseScale(void *linux_side, VROverlayHandle_t ulOverlayHandle, HmdVector2_t *pvecMouseScale)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayMouseScale((vr::VROverlayHandle_t)ulOverlayHandle, (vr::HmdVector2_t *)pvecMouseScale);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayMouseScale(void *linux_side, VROverlayHandle_t ulOverlayHandle, const HmdVector2_t *pvecMouseScale)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayMouseScale((vr::VROverlayHandle_t)ulOverlayHandle, (const vr::HmdVector2_t *)pvecMouseScale);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:19:05 +03:00
|
|
|
bool cppIVROverlay_IVROverlay_018_ComputeOverlayIntersection(void *linux_side, VROverlayHandle_t ulOverlayHandle, const VROverlayIntersectionParams_t *pParams, VROverlayIntersectionResults_t *pResults)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->ComputeOverlayIntersection((vr::VROverlayHandle_t)ulOverlayHandle, (const vr::VROverlayIntersectionParams_t *)pParams, (vr::VROverlayIntersectionResults_t *)pResults);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppIVROverlay_IVROverlay_018_IsHoverTargetOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->IsHoverTargetOverlay((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
VROverlayHandle_t cppIVROverlay_IVROverlay_018_GetGamepadFocusOverlay(void *linux_side)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
VROverlayHandle_t _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetGamepadFocusOverlay();
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetGamepadFocusOverlay(void *linux_side, VROverlayHandle_t ulNewFocusOverlay)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetGamepadFocusOverlay((vr::VROverlayHandle_t)ulNewFocusOverlay);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayNeighbor(void *linux_side, EOverlayDirection eDirection, VROverlayHandle_t ulFrom, VROverlayHandle_t ulTo)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayNeighbor((vr::EOverlayDirection)eDirection, (vr::VROverlayHandle_t)ulFrom, (vr::VROverlayHandle_t)ulTo);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_MoveGamepadFocusToNeighbor(void *linux_side, EOverlayDirection eDirection, VROverlayHandle_t ulFrom)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->MoveGamepadFocusToNeighbor((vr::EOverlayDirection)eDirection, (vr::VROverlayHandle_t)ulFrom);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayDualAnalogTransform(void *linux_side, VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, const HmdVector2_t *vCenter, float fRadius)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayDualAnalogTransform((vr::VROverlayHandle_t)ulOverlay, (vr::EDualAnalogWhich)eWhich, *vCenter, (float)fRadius);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayDualAnalogTransform(void *linux_side, VROverlayHandle_t ulOverlay, EDualAnalogWhich eWhich, HmdVector2_t *pvCenter, float *pfRadius)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayDualAnalogTransform((vr::VROverlayHandle_t)ulOverlay, (vr::EDualAnalogWhich)eWhich, (vr::HmdVector2_t *)pvCenter, (float *)pfRadius);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayTexture(void *linux_side, VROverlayHandle_t ulOverlayHandle, const Texture_t *pTexture)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayTexture((vr::VROverlayHandle_t)ulOverlayHandle, (const vr::Texture_t *)pTexture);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_ClearOverlayTexture(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->ClearOverlayTexture((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayRaw(void *linux_side, VROverlayHandle_t ulOverlayHandle, void *pvBuffer, uint32_t unWidth, uint32_t unHeight, uint32_t unDepth)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayRaw((vr::VROverlayHandle_t)ulOverlayHandle, (void *)pvBuffer, (uint32_t)unWidth, (uint32_t)unHeight, (uint32_t)unDepth);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayFromFile(void *linux_side, VROverlayHandle_t ulOverlayHandle, const char *pchFilePath)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayFromFile((vr::VROverlayHandle_t)ulOverlayHandle, (const char *)pchFilePath);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTexture(void *linux_side, VROverlayHandle_t ulOverlayHandle, void **pNativeTextureHandle, void *pNativeTextureRef, uint32_t *pWidth, uint32_t *pHeight, uint32_t *pNativeFormat, ETextureType *pAPIType, EColorSpace *pColorSpace, VRTextureBounds_t *pTextureBounds)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTexture((vr::VROverlayHandle_t)ulOverlayHandle, (void **)pNativeTextureHandle, (void *)pNativeTextureRef, (uint32_t *)pWidth, (uint32_t *)pHeight, (uint32_t *)pNativeFormat, (vr::ETextureType *)pAPIType, (vr::EColorSpace *)pColorSpace, (vr::VRTextureBounds_t *)pTextureBounds);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_ReleaseNativeOverlayHandle(void *linux_side, VROverlayHandle_t ulOverlayHandle, void *pNativeTextureHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->ReleaseNativeOverlayHandle((vr::VROverlayHandle_t)ulOverlayHandle, (void *)pNativeTextureHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayTextureSize(void *linux_side, VROverlayHandle_t ulOverlayHandle, uint32_t *pWidth, uint32_t *pHeight)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayTextureSize((vr::VROverlayHandle_t)ulOverlayHandle, (uint32_t *)pWidth, (uint32_t *)pHeight);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_CreateDashboardOverlay(void *linux_side, const char *pchOverlayKey, const char *pchOverlayFriendlyName, VROverlayHandle_t *pMainHandle, VROverlayHandle_t *pThumbnailHandle)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->CreateDashboardOverlay((const char *)pchOverlayKey, (const char *)pchOverlayFriendlyName, (vr::VROverlayHandle_t *)pMainHandle, (vr::VROverlayHandle_t *)pThumbnailHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppIVROverlay_IVROverlay_018_IsDashboardVisible(void *linux_side)
|
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->IsDashboardVisible();
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
bool cppIVROverlay_IVROverlay_018_IsActiveDashboardOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle)
|
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
bool _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->IsActiveDashboardOverlay((vr::VROverlayHandle_t)ulOverlayHandle);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetDashboardOverlaySceneProcess(void *linux_side, VROverlayHandle_t ulOverlayHandle, uint32_t unProcessId)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetDashboardOverlaySceneProcess((vr::VROverlayHandle_t)ulOverlayHandle, (uint32_t)unProcessId);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetDashboardOverlaySceneProcess(void *linux_side, VROverlayHandle_t ulOverlayHandle, uint32_t *punProcessId)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetDashboardOverlaySceneProcess((vr::VROverlayHandle_t)ulOverlayHandle, (uint32_t *)punProcessId);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
void cppIVROverlay_IVROverlay_018_ShowDashboard(void *linux_side, const char *pchOverlayToShow)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
|
|
|
((IVROverlay*)linux_side)->ShowDashboard((const char *)pchOverlayToShow);
|
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
TrackedDeviceIndex_t cppIVROverlay_IVROverlay_018_GetPrimaryDashboardDevice(void *linux_side)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
TrackedDeviceIndex_t _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetPrimaryDashboardDevice();
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_ShowKeyboard(void *linux_side, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->ShowKeyboard((vr::EGamepadTextInputMode)eInputMode, (vr::EGamepadTextInputLineMode)eLineInputMode, (const char *)pchDescription, (uint32_t)unCharMax, (const char *)pchExistingText, (bool)bUseMinimalMode, (uint64_t)uUserValue);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_ShowKeyboardForOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle, EGamepadTextInputMode eInputMode, EGamepadTextInputLineMode eLineInputMode, const char *pchDescription, uint32_t unCharMax, const char *pchExistingText, bool bUseMinimalMode, uint64_t uUserValue)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->ShowKeyboardForOverlay((vr::VROverlayHandle_t)ulOverlayHandle, (vr::EGamepadTextInputMode)eInputMode, (vr::EGamepadTextInputLineMode)eLineInputMode, (const char *)pchDescription, (uint32_t)unCharMax, (const char *)pchExistingText, (bool)bUseMinimalMode, (uint64_t)uUserValue);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 17:11:42 +03:00
|
|
|
uint32_t cppIVROverlay_IVROverlay_018_GetKeyboardText(void *linux_side, char *pchText, uint32_t cchText)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 22:44:20 +03:00
|
|
|
uint32_t _ret;
|
|
|
|
_ret = ((IVROverlay*)linux_side)->GetKeyboardText((char *)pchText, (uint32_t)cchText);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void cppIVROverlay_IVROverlay_018_HideKeyboard(void *linux_side)
|
|
|
|
{
|
|
|
|
((IVROverlay*)linux_side)->HideKeyboard();
|
|
|
|
}
|
|
|
|
|
2023-09-23 23:19:05 +03:00
|
|
|
void cppIVROverlay_IVROverlay_018_SetKeyboardTransformAbsolute(void *linux_side, ETrackingUniverseOrigin eTrackingOrigin, const HmdMatrix34_t *pmatTrackingOriginToKeyboardTransform)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
|
|
|
((IVROverlay*)linux_side)->SetKeyboardTransformAbsolute((vr::ETrackingUniverseOrigin)eTrackingOrigin, (const vr::HmdMatrix34_t *)pmatTrackingOriginToKeyboardTransform);
|
|
|
|
}
|
|
|
|
|
|
|
|
void cppIVROverlay_IVROverlay_018_SetKeyboardPositionForOverlay(void *linux_side, VROverlayHandle_t ulOverlayHandle, HmdRect2_t avoidRect)
|
|
|
|
{
|
|
|
|
((IVROverlay*)linux_side)->SetKeyboardPositionForOverlay((vr::VROverlayHandle_t)ulOverlayHandle, (vr::HmdRect2_t)avoidRect);
|
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_SetOverlayIntersectionMask(void *linux_side, VROverlayHandle_t ulOverlayHandle, VROverlayIntersectionMaskPrimitive_t *pMaskPrimitives, uint32_t unNumMaskPrimitives, uint32_t unPrimitiveSize)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->SetOverlayIntersectionMask((vr::VROverlayHandle_t)ulOverlayHandle, (vr::VROverlayIntersectionMaskPrimitive_t *)pMaskPrimitives, (uint32_t)unNumMaskPrimitives, (uint32_t)unPrimitiveSize);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError cppIVROverlay_IVROverlay_018_GetOverlayFlags(void *linux_side, VROverlayHandle_t ulOverlayHandle, uint32_t *pFlags)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
EVROverlayError _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->GetOverlayFlags((vr::VROverlayHandle_t)ulOverlayHandle, (uint32_t *)pFlags);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
2023-09-23 23:07:08 +03:00
|
|
|
VRMessageOverlayResponse cppIVROverlay_IVROverlay_018_ShowMessageOverlay(void *linux_side, const char *pchText, const char *pchCaption, const char *pchButton0Text, const char *pchButton1Text, const char *pchButton2Text, const char *pchButton3Text)
|
2018-01-31 19:31:32 +03:00
|
|
|
{
|
2023-09-23 23:07:08 +03:00
|
|
|
VRMessageOverlayResponse _ret;
|
2023-09-23 22:44:20 +03:00
|
|
|
_ret = ((IVROverlay*)linux_side)->ShowMessageOverlay((const char *)pchText, (const char *)pchCaption, (const char *)pchButton0Text, (const char *)pchButton1Text, (const char *)pchButton2Text, (const char *)pchButton3Text);
|
|
|
|
return _ret;
|
2018-01-31 19:31:32 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
void cppIVROverlay_IVROverlay_018_CloseMessageOverlay(void *linux_side)
|
|
|
|
{
|
|
|
|
((IVROverlay*)linux_side)->CloseMessageOverlay();
|
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|