Proton/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_026.cpp

270 lines
14 KiB
C++
Raw Normal View History

2020-03-18 21:50:21 +03:00
#include "vrclient_private.h"
#include "vrclient_defs.h"
2020-10-13 17:09:11 +03:00
#include "openvr_v1.14.15/ivrclientcore.h"
2020-03-18 21:50:21 +03:00
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRCompositor_IVRCompositor_026.h"
#ifdef __cplusplus
extern "C" {
#endif
void cppIVRCompositor_IVRCompositor_026_SetTrackingSpace( struct cppIVRCompositor_IVRCompositor_026_SetTrackingSpace_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->SetTrackingSpace((vr::ETrackingUniverseOrigin)params->eOrigin);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetTrackingSpace( struct cppIVRCompositor_IVRCompositor_026_GetTrackingSpace_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetTrackingSpace();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_WaitGetPoses( struct cppIVRCompositor_IVRCompositor_026_WaitGetPoses_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->WaitGetPoses((vr::TrackedDevicePose_t *)params->pRenderPoseArray, (uint32_t)params->unRenderPoseArrayCount, (vr::TrackedDevicePose_t *)params->pGamePoseArray, (uint32_t)params->unGamePoseArrayCount);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetLastPoses( struct cppIVRCompositor_IVRCompositor_026_GetLastPoses_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetLastPoses((vr::TrackedDevicePose_t *)params->pRenderPoseArray, (uint32_t)params->unRenderPoseArrayCount, (vr::TrackedDevicePose_t *)params->pGamePoseArray, (uint32_t)params->unGamePoseArrayCount);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetLastPoseForTrackedDeviceIndex( struct cppIVRCompositor_IVRCompositor_026_GetLastPoseForTrackedDeviceIndex_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetLastPoseForTrackedDeviceIndex((vr::TrackedDeviceIndex_t)params->unDeviceIndex, (vr::TrackedDevicePose_t *)params->pOutputPose, (vr::TrackedDevicePose_t *)params->pOutputGamePose);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_Submit( struct cppIVRCompositor_IVRCompositor_026_Submit_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->Submit((vr::EVREye)params->eEye, (const vr::Texture_t *)params->pTexture, (const vr::VRTextureBounds_t *)params->pBounds, (vr::EVRSubmitFlags)params->nSubmitFlags);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ClearLastSubmittedFrame( struct cppIVRCompositor_IVRCompositor_026_ClearLastSubmittedFrame_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->ClearLastSubmittedFrame();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_PostPresentHandoff( struct cppIVRCompositor_IVRCompositor_026_PostPresentHandoff_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->PostPresentHandoff();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetFrameTiming( struct cppIVRCompositor_IVRCompositor_026_GetFrameTiming_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)params->pTiming, (uint32_t)params->unFramesAgo);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetFrameTimings( struct cppIVRCompositor_IVRCompositor_026_GetFrameTimings_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetFrameTimings((vr::Compositor_FrameTiming *)params->pTiming, (uint32_t)params->nFrames);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetFrameTimeRemaining( struct cppIVRCompositor_IVRCompositor_026_GetFrameTimeRemaining_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetFrameTimeRemaining();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetCumulativeStats( struct cppIVRCompositor_IVRCompositor_026_GetCumulativeStats_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->GetCumulativeStats((vr::Compositor_CumulativeStats *)params->pStats, (uint32_t)params->nStatsSizeInBytes);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_FadeToColor( struct cppIVRCompositor_IVRCompositor_026_FadeToColor_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->FadeToColor((float)params->fSeconds, (float)params->fRed, (float)params->fGreen, (float)params->fBlue, (float)params->fAlpha, (bool)params->bBackground);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetCurrentFadeColor( struct cppIVRCompositor_IVRCompositor_026_GetCurrentFadeColor_params *params )
2020-03-18 21:50:21 +03:00
{
*params->_ret = ((IVRCompositor*)params->linux_side)->GetCurrentFadeColor((bool)params->bBackground);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_FadeGrid( struct cppIVRCompositor_IVRCompositor_026_FadeGrid_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->FadeGrid((float)params->fSeconds, (bool)params->bFadeIn);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetCurrentGridAlpha( struct cppIVRCompositor_IVRCompositor_026_GetCurrentGridAlpha_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetCurrentGridAlpha();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_SetSkyboxOverride( struct cppIVRCompositor_IVRCompositor_026_SetSkyboxOverride_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->SetSkyboxOverride((const vr::Texture_t *)params->pTextures, (uint32_t)params->unTextureCount);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ClearSkyboxOverride( struct cppIVRCompositor_IVRCompositor_026_ClearSkyboxOverride_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->ClearSkyboxOverride();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_CompositorBringToFront( struct cppIVRCompositor_IVRCompositor_026_CompositorBringToFront_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorBringToFront();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_CompositorGoToBack( struct cppIVRCompositor_IVRCompositor_026_CompositorGoToBack_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorGoToBack();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_CompositorQuit( struct cppIVRCompositor_IVRCompositor_026_CompositorQuit_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorQuit();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_IsFullscreen( struct cppIVRCompositor_IVRCompositor_026_IsFullscreen_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsFullscreen();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetCurrentSceneFocusProcess( struct cppIVRCompositor_IVRCompositor_026_GetCurrentSceneFocusProcess_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetCurrentSceneFocusProcess();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetLastFrameRenderer( struct cppIVRCompositor_IVRCompositor_026_GetLastFrameRenderer_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetLastFrameRenderer();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_CanRenderScene( struct cppIVRCompositor_IVRCompositor_026_CanRenderScene_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->CanRenderScene();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ShowMirrorWindow( struct cppIVRCompositor_IVRCompositor_026_ShowMirrorWindow_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->ShowMirrorWindow();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_HideMirrorWindow( struct cppIVRCompositor_IVRCompositor_026_HideMirrorWindow_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->HideMirrorWindow();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_IsMirrorWindowVisible( struct cppIVRCompositor_IVRCompositor_026_IsMirrorWindowVisible_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsMirrorWindowVisible();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_CompositorDumpImages( struct cppIVRCompositor_IVRCompositor_026_CompositorDumpImages_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorDumpImages();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ShouldAppRenderWithLowResources( struct cppIVRCompositor_IVRCompositor_026_ShouldAppRenderWithLowResources_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->ShouldAppRenderWithLowResources();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ForceInterleavedReprojectionOn( struct cppIVRCompositor_IVRCompositor_026_ForceInterleavedReprojectionOn_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->ForceInterleavedReprojectionOn((bool)params->bOverride);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ForceReconnectProcess( struct cppIVRCompositor_IVRCompositor_026_ForceReconnectProcess_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->ForceReconnectProcess();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_SuspendRendering( struct cppIVRCompositor_IVRCompositor_026_SuspendRendering_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->SuspendRendering((bool)params->bSuspend);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetMirrorTextureD3D11( struct cppIVRCompositor_IVRCompositor_026_GetMirrorTextureD3D11_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetMirrorTextureD3D11((vr::EVREye)params->eEye, (void *)params->pD3D11DeviceOrResource, (void **)params->ppD3D11ShaderResourceView);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ReleaseMirrorTextureD3D11( struct cppIVRCompositor_IVRCompositor_026_ReleaseMirrorTextureD3D11_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->ReleaseMirrorTextureD3D11((void *)params->pD3D11ShaderResourceView);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetMirrorTextureGL( struct cppIVRCompositor_IVRCompositor_026_GetMirrorTextureGL_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetMirrorTextureGL((vr::EVREye)params->eEye, (vr::glUInt_t *)params->pglTextureId, (vr::glSharedTextureHandle_t *)params->pglSharedTextureHandle);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ReleaseSharedGLTexture( struct cppIVRCompositor_IVRCompositor_026_ReleaseSharedGLTexture_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->ReleaseSharedGLTexture((vr::glUInt_t)params->glTextureId, (vr::glSharedTextureHandle_t)params->glSharedTextureHandle);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_LockGLSharedTextureForAccess( struct cppIVRCompositor_IVRCompositor_026_LockGLSharedTextureForAccess_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->LockGLSharedTextureForAccess((vr::glSharedTextureHandle_t)params->glSharedTextureHandle);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_UnlockGLSharedTextureForAccess( struct cppIVRCompositor_IVRCompositor_026_UnlockGLSharedTextureForAccess_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->UnlockGLSharedTextureForAccess((vr::glSharedTextureHandle_t)params->glSharedTextureHandle);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetVulkanInstanceExtensionsRequired( struct cppIVRCompositor_IVRCompositor_026_GetVulkanInstanceExtensionsRequired_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetVulkanInstanceExtensionsRequired((char *)params->pchValue, (uint32_t)params->unBufferSize);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetVulkanDeviceExtensionsRequired( struct cppIVRCompositor_IVRCompositor_026_GetVulkanDeviceExtensionsRequired_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetVulkanDeviceExtensionsRequired((VkPhysicalDevice_T *)params->pPhysicalDevice, (char *)params->pchValue, (uint32_t)params->unBufferSize);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_SetExplicitTimingMode( struct cppIVRCompositor_IVRCompositor_026_SetExplicitTimingMode_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->SetExplicitTimingMode((vr::EVRCompositorTimingMode)params->eTimingMode);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_SubmitExplicitTimingData( struct cppIVRCompositor_IVRCompositor_026_SubmitExplicitTimingData_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->SubmitExplicitTimingData();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_IsMotionSmoothingEnabled( struct cppIVRCompositor_IVRCompositor_026_IsMotionSmoothingEnabled_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsMotionSmoothingEnabled();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_IsMotionSmoothingSupported( struct cppIVRCompositor_IVRCompositor_026_IsMotionSmoothingSupported_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsMotionSmoothingSupported();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_IsCurrentSceneFocusAppLoading( struct cppIVRCompositor_IVRCompositor_026_IsCurrentSceneFocusAppLoading_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsCurrentSceneFocusAppLoading();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_SetStageOverride_Async( struct cppIVRCompositor_IVRCompositor_026_SetStageOverride_Async_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->SetStageOverride_Async((const char *)params->pchRenderModelPath, (const vr::HmdMatrix34_t *)params->pTransform, (const vr::Compositor_StageRenderSettings *)params->pRenderSettings, (uint32_t)params->nSizeOfRenderSettings);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_ClearStageOverride( struct cppIVRCompositor_IVRCompositor_026_ClearStageOverride_params *params )
2020-03-18 21:50:21 +03:00
{
((IVRCompositor*)params->linux_side)->ClearStageOverride();
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetCompositorBenchmarkResults( struct cppIVRCompositor_IVRCompositor_026_GetCompositorBenchmarkResults_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetCompositorBenchmarkResults((vr::Compositor_BenchmarkResults *)params->pBenchmarkResults, (uint32_t)params->nSizeOfBenchmarkResults);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetLastPosePredictionIDs( struct cppIVRCompositor_IVRCompositor_026_GetLastPosePredictionIDs_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetLastPosePredictionIDs((uint32_t *)params->pRenderPosePredictionID, (uint32_t *)params->pGamePosePredictionID);
2020-03-18 21:50:21 +03:00
}
void cppIVRCompositor_IVRCompositor_026_GetPosesForFrame( struct cppIVRCompositor_IVRCompositor_026_GetPosesForFrame_params *params )
2020-03-18 21:50:21 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetPosesForFrame((uint32_t)params->unPosePredictionID, (vr::TrackedDevicePose_t *)params->pPoseArray, (uint32_t)params->unPoseArrayCount);
2020-03-18 21:50:21 +03:00
}
#ifdef __cplusplus
}
#endif