Proton/vrclient_x64/vrclient_x64/cppIVRCompositor_IVRCompositor_024.cpp

255 lines
13 KiB
C++
Raw Normal View History

2020-03-18 21:50:17 +03:00
#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v1.9.16/ivrclientcore.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRCompositor_IVRCompositor_024.h"
#ifdef __cplusplus
extern "C" {
#endif
void cppIVRCompositor_IVRCompositor_024_SetTrackingSpace( struct cppIVRCompositor_IVRCompositor_024_SetTrackingSpace_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->SetTrackingSpace((vr::ETrackingUniverseOrigin)params->eOrigin);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetTrackingSpace( struct cppIVRCompositor_IVRCompositor_024_GetTrackingSpace_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetTrackingSpace();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_WaitGetPoses( struct cppIVRCompositor_IVRCompositor_024_WaitGetPoses_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetLastPoses( struct cppIVRCompositor_IVRCompositor_024_GetLastPoses_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetLastPoseForTrackedDeviceIndex( struct cppIVRCompositor_IVRCompositor_024_GetLastPoseForTrackedDeviceIndex_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_Submit( struct cppIVRCompositor_IVRCompositor_024_Submit_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ClearLastSubmittedFrame( struct cppIVRCompositor_IVRCompositor_024_ClearLastSubmittedFrame_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->ClearLastSubmittedFrame();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_PostPresentHandoff( struct cppIVRCompositor_IVRCompositor_024_PostPresentHandoff_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->PostPresentHandoff();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetFrameTiming( struct cppIVRCompositor_IVRCompositor_024_GetFrameTiming_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)params->pTiming, (uint32_t)params->unFramesAgo);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetFrameTimings( struct cppIVRCompositor_IVRCompositor_024_GetFrameTimings_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetFrameTimings((vr::Compositor_FrameTiming *)params->pTiming, (uint32_t)params->nFrames);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetFrameTimeRemaining( struct cppIVRCompositor_IVRCompositor_024_GetFrameTimeRemaining_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetFrameTimeRemaining();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetCumulativeStats( struct cppIVRCompositor_IVRCompositor_024_GetCumulativeStats_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->GetCumulativeStats((vr::Compositor_CumulativeStats *)params->pStats, (uint32_t)params->nStatsSizeInBytes);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_FadeToColor( struct cppIVRCompositor_IVRCompositor_024_FadeToColor_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetCurrentFadeColor( struct cppIVRCompositor_IVRCompositor_024_GetCurrentFadeColor_params *params )
2020-03-18 21:50:17 +03:00
{
*params->_ret = ((IVRCompositor*)params->linux_side)->GetCurrentFadeColor((bool)params->bBackground);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_FadeGrid( struct cppIVRCompositor_IVRCompositor_024_FadeGrid_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->FadeGrid((float)params->fSeconds, (bool)params->bFadeIn);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetCurrentGridAlpha( struct cppIVRCompositor_IVRCompositor_024_GetCurrentGridAlpha_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetCurrentGridAlpha();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_SetSkyboxOverride( struct cppIVRCompositor_IVRCompositor_024_SetSkyboxOverride_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->SetSkyboxOverride((const vr::Texture_t *)params->pTextures, (uint32_t)params->unTextureCount);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ClearSkyboxOverride( struct cppIVRCompositor_IVRCompositor_024_ClearSkyboxOverride_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->ClearSkyboxOverride();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_CompositorBringToFront( struct cppIVRCompositor_IVRCompositor_024_CompositorBringToFront_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorBringToFront();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_CompositorGoToBack( struct cppIVRCompositor_IVRCompositor_024_CompositorGoToBack_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorGoToBack();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_CompositorQuit( struct cppIVRCompositor_IVRCompositor_024_CompositorQuit_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorQuit();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_IsFullscreen( struct cppIVRCompositor_IVRCompositor_024_IsFullscreen_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsFullscreen();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetCurrentSceneFocusProcess( struct cppIVRCompositor_IVRCompositor_024_GetCurrentSceneFocusProcess_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetCurrentSceneFocusProcess();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetLastFrameRenderer( struct cppIVRCompositor_IVRCompositor_024_GetLastFrameRenderer_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetLastFrameRenderer();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_CanRenderScene( struct cppIVRCompositor_IVRCompositor_024_CanRenderScene_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->CanRenderScene();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ShowMirrorWindow( struct cppIVRCompositor_IVRCompositor_024_ShowMirrorWindow_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->ShowMirrorWindow();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_HideMirrorWindow( struct cppIVRCompositor_IVRCompositor_024_HideMirrorWindow_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->HideMirrorWindow();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_IsMirrorWindowVisible( struct cppIVRCompositor_IVRCompositor_024_IsMirrorWindowVisible_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsMirrorWindowVisible();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_CompositorDumpImages( struct cppIVRCompositor_IVRCompositor_024_CompositorDumpImages_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->CompositorDumpImages();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ShouldAppRenderWithLowResources( struct cppIVRCompositor_IVRCompositor_024_ShouldAppRenderWithLowResources_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->ShouldAppRenderWithLowResources();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ForceInterleavedReprojectionOn( struct cppIVRCompositor_IVRCompositor_024_ForceInterleavedReprojectionOn_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->ForceInterleavedReprojectionOn((bool)params->bOverride);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ForceReconnectProcess( struct cppIVRCompositor_IVRCompositor_024_ForceReconnectProcess_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->ForceReconnectProcess();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_SuspendRendering( struct cppIVRCompositor_IVRCompositor_024_SuspendRendering_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->SuspendRendering((bool)params->bSuspend);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetMirrorTextureD3D11( struct cppIVRCompositor_IVRCompositor_024_GetMirrorTextureD3D11_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetMirrorTextureD3D11((vr::EVREye)params->eEye, (void *)params->pD3D11DeviceOrResource, (void **)params->ppD3D11ShaderResourceView);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ReleaseMirrorTextureD3D11( struct cppIVRCompositor_IVRCompositor_024_ReleaseMirrorTextureD3D11_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->ReleaseMirrorTextureD3D11((void *)params->pD3D11ShaderResourceView);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetMirrorTextureGL( struct cppIVRCompositor_IVRCompositor_024_GetMirrorTextureGL_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ReleaseSharedGLTexture( struct cppIVRCompositor_IVRCompositor_024_ReleaseSharedGLTexture_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->ReleaseSharedGLTexture((vr::glUInt_t)params->glTextureId, (vr::glSharedTextureHandle_t)params->glSharedTextureHandle);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_LockGLSharedTextureForAccess( struct cppIVRCompositor_IVRCompositor_024_LockGLSharedTextureForAccess_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->LockGLSharedTextureForAccess((vr::glSharedTextureHandle_t)params->glSharedTextureHandle);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_UnlockGLSharedTextureForAccess( struct cppIVRCompositor_IVRCompositor_024_UnlockGLSharedTextureForAccess_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->UnlockGLSharedTextureForAccess((vr::glSharedTextureHandle_t)params->glSharedTextureHandle);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetVulkanInstanceExtensionsRequired( struct cppIVRCompositor_IVRCompositor_024_GetVulkanInstanceExtensionsRequired_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->GetVulkanInstanceExtensionsRequired((char *)params->pchValue, (uint32_t)params->unBufferSize);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_GetVulkanDeviceExtensionsRequired( struct cppIVRCompositor_IVRCompositor_024_GetVulkanDeviceExtensionsRequired_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_SetExplicitTimingMode( struct cppIVRCompositor_IVRCompositor_024_SetExplicitTimingMode_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->SetExplicitTimingMode((vr::EVRCompositorTimingMode)params->eTimingMode);
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_SubmitExplicitTimingData( struct cppIVRCompositor_IVRCompositor_024_SubmitExplicitTimingData_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->SubmitExplicitTimingData();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_IsMotionSmoothingEnabled( struct cppIVRCompositor_IVRCompositor_024_IsMotionSmoothingEnabled_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsMotionSmoothingEnabled();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_IsMotionSmoothingSupported( struct cppIVRCompositor_IVRCompositor_024_IsMotionSmoothingSupported_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsMotionSmoothingSupported();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_IsCurrentSceneFocusAppLoading( struct cppIVRCompositor_IVRCompositor_024_IsCurrentSceneFocusAppLoading_params *params )
2020-03-18 21:50:17 +03:00
{
params->_ret = ((IVRCompositor*)params->linux_side)->IsCurrentSceneFocusAppLoading();
2020-03-18 21:50:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_SetStageOverride_Async( struct cppIVRCompositor_IVRCompositor_024_SetStageOverride_Async_params *params )
2020-03-18 21:50:17 +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:17 +03:00
}
void cppIVRCompositor_IVRCompositor_024_ClearStageOverride( struct cppIVRCompositor_IVRCompositor_024_ClearStageOverride_params *params )
2020-03-18 21:50:17 +03:00
{
((IVRCompositor*)params->linux_side)->ClearStageOverride();
2020-03-18 21:50:17 +03:00
}
#ifdef __cplusplus
}
#endif