2018-12-10 20:31:46 +03:00
|
|
|
#include "vrclient_private.h"
|
|
|
|
#include "vrclient_defs.h"
|
|
|
|
#include "openvr_v1.0.3a/ivrclientcore.h"
|
|
|
|
using namespace vr;
|
|
|
|
extern "C" {
|
|
|
|
#include "struct_converters.h"
|
|
|
|
}
|
|
|
|
#include "cppIVRCompositor_IVRCompositor_017.h"
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2023-09-28 11:22:41 +03:00
|
|
|
|
|
|
|
struct cppIVRCompositor_IVRCompositor_017
|
|
|
|
{
|
|
|
|
#ifdef __cplusplus
|
|
|
|
virtual void SetTrackingSpace( uint32_t ) = 0;
|
|
|
|
virtual uint32_t GetTrackingSpace( ) = 0;
|
|
|
|
virtual uint32_t WaitGetPoses( TrackedDevicePose_t *, uint32_t, TrackedDevicePose_t *, uint32_t ) = 0;
|
|
|
|
virtual uint32_t GetLastPoses( TrackedDevicePose_t *, uint32_t, TrackedDevicePose_t *, uint32_t ) = 0;
|
|
|
|
virtual uint32_t GetLastPoseForTrackedDeviceIndex( uint32_t, TrackedDevicePose_t *, TrackedDevicePose_t * ) = 0;
|
|
|
|
virtual uint32_t Submit( uint32_t, const Texture_t *, const VRTextureBounds_t *, uint32_t ) = 0;
|
|
|
|
virtual void ClearLastSubmittedFrame( ) = 0;
|
|
|
|
virtual void PostPresentHandoff( ) = 0;
|
|
|
|
virtual bool GetFrameTiming( Compositor_FrameTiming *, uint32_t ) = 0;
|
|
|
|
virtual uint32_t GetFrameTimings( Compositor_FrameTiming *, uint32_t ) = 0;
|
|
|
|
virtual float GetFrameTimeRemaining( ) = 0;
|
|
|
|
virtual void GetCumulativeStats( Compositor_CumulativeStats *, uint32_t ) = 0;
|
|
|
|
virtual void FadeToColor( float, float, float, float, float, bool ) = 0;
|
|
|
|
virtual void FadeGrid( float, bool ) = 0;
|
|
|
|
virtual uint32_t SetSkyboxOverride( const Texture_t *, uint32_t ) = 0;
|
|
|
|
virtual void ClearSkyboxOverride( ) = 0;
|
|
|
|
virtual void CompositorBringToFront( ) = 0;
|
|
|
|
virtual void CompositorGoToBack( ) = 0;
|
|
|
|
virtual void CompositorQuit( ) = 0;
|
|
|
|
virtual bool IsFullscreen( ) = 0;
|
|
|
|
virtual uint32_t GetCurrentSceneFocusProcess( ) = 0;
|
|
|
|
virtual uint32_t GetLastFrameRenderer( ) = 0;
|
|
|
|
virtual bool CanRenderScene( ) = 0;
|
|
|
|
virtual void ShowMirrorWindow( ) = 0;
|
|
|
|
virtual void HideMirrorWindow( ) = 0;
|
|
|
|
virtual bool IsMirrorWindowVisible( ) = 0;
|
|
|
|
virtual void CompositorDumpImages( ) = 0;
|
|
|
|
virtual bool ShouldAppRenderWithLowResources( ) = 0;
|
|
|
|
virtual void ForceInterleavedReprojectionOn( bool ) = 0;
|
|
|
|
virtual void ForceReconnectProcess( ) = 0;
|
|
|
|
virtual void SuspendRendering( bool ) = 0;
|
|
|
|
virtual uint32_t GetMirrorTextureD3D11( uint32_t, void *, void ** ) = 0;
|
|
|
|
virtual uint32_t GetMirrorTextureGL( uint32_t, uint32_t *, void ** ) = 0;
|
|
|
|
virtual bool ReleaseSharedGLTexture( uint32_t, void * ) = 0;
|
|
|
|
virtual void LockGLSharedTextureForAccess( void * ) = 0;
|
|
|
|
virtual void UnlockGLSharedTextureForAccess( void * ) = 0;
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
};
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_SetTrackingSpace( struct cppIVRCompositor_IVRCompositor_017_SetTrackingSpace_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->SetTrackingSpace( params->eOrigin );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetTrackingSpace( struct cppIVRCompositor_IVRCompositor_017_GetTrackingSpace_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetTrackingSpace( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_WaitGetPoses( struct cppIVRCompositor_IVRCompositor_017_WaitGetPoses_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->WaitGetPoses( params->pRenderPoseArray, params->unRenderPoseArrayCount, params->pGamePoseArray, params->unGamePoseArrayCount );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetLastPoses( struct cppIVRCompositor_IVRCompositor_017_GetLastPoses_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetLastPoses( params->pRenderPoseArray, params->unRenderPoseArrayCount, params->pGamePoseArray, params->unGamePoseArrayCount );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetLastPoseForTrackedDeviceIndex( struct cppIVRCompositor_IVRCompositor_017_GetLastPoseForTrackedDeviceIndex_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetLastPoseForTrackedDeviceIndex( params->unDeviceIndex, params->pOutputPose, params->pOutputGamePose );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_Submit( struct cppIVRCompositor_IVRCompositor_017_Submit_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->Submit( params->eEye, params->pTexture, params->pBounds, params->nSubmitFlags );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_ClearLastSubmittedFrame( struct cppIVRCompositor_IVRCompositor_017_ClearLastSubmittedFrame_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->ClearLastSubmittedFrame( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_PostPresentHandoff( struct cppIVRCompositor_IVRCompositor_017_PostPresentHandoff_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->PostPresentHandoff( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetFrameTiming( struct cppIVRCompositor_IVRCompositor_017_GetFrameTiming_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFrameTiming( params->pTiming, params->unFramesAgo );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetFrameTimings( struct cppIVRCompositor_IVRCompositor_017_GetFrameTimings_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFrameTimings( params->pTiming, params->nFrames );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetFrameTimeRemaining( struct cppIVRCompositor_IVRCompositor_017_GetFrameTimeRemaining_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetFrameTimeRemaining( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetCumulativeStats( struct cppIVRCompositor_IVRCompositor_017_GetCumulativeStats_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->GetCumulativeStats( params->pStats, params->nStatsSizeInBytes );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_FadeToColor( struct cppIVRCompositor_IVRCompositor_017_FadeToColor_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->FadeToColor( params->fSeconds, params->fRed, params->fGreen, params->fBlue, params->fAlpha, params->bBackground );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_FadeGrid( struct cppIVRCompositor_IVRCompositor_017_FadeGrid_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->FadeGrid( params->fSeconds, params->bFadeIn );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_SetSkyboxOverride( struct cppIVRCompositor_IVRCompositor_017_SetSkyboxOverride_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->SetSkyboxOverride( params->pTextures, params->unTextureCount );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_ClearSkyboxOverride( struct cppIVRCompositor_IVRCompositor_017_ClearSkyboxOverride_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->ClearSkyboxOverride( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_CompositorBringToFront( struct cppIVRCompositor_IVRCompositor_017_CompositorBringToFront_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->CompositorBringToFront( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_CompositorGoToBack( struct cppIVRCompositor_IVRCompositor_017_CompositorGoToBack_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->CompositorGoToBack( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_CompositorQuit( struct cppIVRCompositor_IVRCompositor_017_CompositorQuit_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->CompositorQuit( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_IsFullscreen( struct cppIVRCompositor_IVRCompositor_017_IsFullscreen_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->IsFullscreen( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetCurrentSceneFocusProcess( struct cppIVRCompositor_IVRCompositor_017_GetCurrentSceneFocusProcess_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetCurrentSceneFocusProcess( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetLastFrameRenderer( struct cppIVRCompositor_IVRCompositor_017_GetLastFrameRenderer_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetLastFrameRenderer( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_CanRenderScene( struct cppIVRCompositor_IVRCompositor_017_CanRenderScene_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->CanRenderScene( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_ShowMirrorWindow( struct cppIVRCompositor_IVRCompositor_017_ShowMirrorWindow_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->ShowMirrorWindow( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_HideMirrorWindow( struct cppIVRCompositor_IVRCompositor_017_HideMirrorWindow_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->HideMirrorWindow( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_IsMirrorWindowVisible( struct cppIVRCompositor_IVRCompositor_017_IsMirrorWindowVisible_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->IsMirrorWindowVisible( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_CompositorDumpImages( struct cppIVRCompositor_IVRCompositor_017_CompositorDumpImages_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->CompositorDumpImages( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_ShouldAppRenderWithLowResources( struct cppIVRCompositor_IVRCompositor_017_ShouldAppRenderWithLowResources_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->ShouldAppRenderWithLowResources( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_ForceInterleavedReprojectionOn( struct cppIVRCompositor_IVRCompositor_017_ForceInterleavedReprojectionOn_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->ForceInterleavedReprojectionOn( params->bOverride );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_ForceReconnectProcess( struct cppIVRCompositor_IVRCompositor_017_ForceReconnectProcess_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->ForceReconnectProcess( );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_SuspendRendering( struct cppIVRCompositor_IVRCompositor_017_SuspendRendering_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->SuspendRendering( params->bSuspend );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetMirrorTextureD3D11( struct cppIVRCompositor_IVRCompositor_017_GetMirrorTextureD3D11_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetMirrorTextureD3D11( params->eEye, params->pD3D11DeviceOrResource, params->ppD3D11ShaderResourceView );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_GetMirrorTextureGL( struct cppIVRCompositor_IVRCompositor_017_GetMirrorTextureGL_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->GetMirrorTextureGL( params->eEye, params->pglTextureId, params->pglSharedTextureHandle );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_ReleaseSharedGLTexture( struct cppIVRCompositor_IVRCompositor_017_ReleaseSharedGLTexture_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
params->_ret = iface->ReleaseSharedGLTexture( params->glTextureId, params->glSharedTextureHandle );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_LockGLSharedTextureForAccess( struct cppIVRCompositor_IVRCompositor_017_LockGLSharedTextureForAccess_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->LockGLSharedTextureForAccess( params->glSharedTextureHandle );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
2023-09-27 12:05:52 +03:00
|
|
|
void cppIVRCompositor_IVRCompositor_017_UnlockGLSharedTextureForAccess( struct cppIVRCompositor_IVRCompositor_017_UnlockGLSharedTextureForAccess_params *params )
|
2018-12-10 20:31:46 +03:00
|
|
|
{
|
2023-09-28 11:22:41 +03:00
|
|
|
struct cppIVRCompositor_IVRCompositor_017 *iface = (struct cppIVRCompositor_IVRCompositor_017 *)params->linux_side;
|
|
|
|
iface->UnlockGLSharedTextureForAccess( params->glSharedTextureHandle );
|
2018-12-10 20:31:46 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|