149 lines
5.7 KiB
C++
149 lines
5.7 KiB
C++
#include "vrclient_private.h"
|
|
#include "vrclient_defs.h"
|
|
#include "openvr_v0.9.19/openvr.h"
|
|
using namespace vr;
|
|
extern "C" {
|
|
#include "struct_converters.h"
|
|
}
|
|
#include "cppIVRCompositor_IVRCompositor_013.h"
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
void cppIVRCompositor_IVRCompositor_013_SetTrackingSpace(void *linux_side, ETrackingUniverseOrigin eOrigin)
|
|
{
|
|
((IVRCompositor*)linux_side)->SetTrackingSpace((vr::ETrackingUniverseOrigin)eOrigin);
|
|
}
|
|
|
|
vr::ETrackingUniverseOrigin cppIVRCompositor_IVRCompositor_013_GetTrackingSpace(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->GetTrackingSpace();
|
|
}
|
|
|
|
vr::EVRCompositorError cppIVRCompositor_IVRCompositor_013_WaitGetPoses(void *linux_side, TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->WaitGetPoses((vr::TrackedDevicePose_t *)pRenderPoseArray, (uint32_t)unRenderPoseArrayCount, (vr::TrackedDevicePose_t *)pGamePoseArray, (uint32_t)unGamePoseArrayCount);
|
|
}
|
|
|
|
vr::EVRCompositorError cppIVRCompositor_IVRCompositor_013_GetLastPoses(void *linux_side, TrackedDevicePose_t * pRenderPoseArray, uint32_t unRenderPoseArrayCount, TrackedDevicePose_t * pGamePoseArray, uint32_t unGamePoseArrayCount)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->GetLastPoses((vr::TrackedDevicePose_t *)pRenderPoseArray, (uint32_t)unRenderPoseArrayCount, (vr::TrackedDevicePose_t *)pGamePoseArray, (uint32_t)unGamePoseArrayCount);
|
|
}
|
|
|
|
vr::EVRCompositorError cppIVRCompositor_IVRCompositor_013_GetLastPoseForTrackedDeviceIndex(void *linux_side, TrackedDeviceIndex_t unDeviceIndex, TrackedDevicePose_t * pOutputPose, TrackedDevicePose_t * pOutputGamePose)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->GetLastPoseForTrackedDeviceIndex((vr::TrackedDeviceIndex_t)unDeviceIndex, (vr::TrackedDevicePose_t *)pOutputPose, (vr::TrackedDevicePose_t *)pOutputGamePose);
|
|
}
|
|
|
|
vr::EVRCompositorError cppIVRCompositor_IVRCompositor_013_Submit(void *linux_side, EVREye eEye, Texture_t * pTexture, VRTextureBounds_t * pBounds, EVRSubmitFlags nSubmitFlags)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->Submit((vr::EVREye)eEye, (const vr::Texture_t *)pTexture, (const vr::VRTextureBounds_t *)pBounds, (vr::EVRSubmitFlags)nSubmitFlags);
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_ClearLastSubmittedFrame(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->ClearLastSubmittedFrame();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_PostPresentHandoff(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->PostPresentHandoff();
|
|
}
|
|
|
|
bool cppIVRCompositor_IVRCompositor_013_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo);
|
|
}
|
|
|
|
float cppIVRCompositor_IVRCompositor_013_GetFrameTimeRemaining(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->GetFrameTimeRemaining();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_FadeToColor(void *linux_side, float fSeconds, float fRed, float fGreen, float fBlue, float fAlpha, bool bBackground)
|
|
{
|
|
((IVRCompositor*)linux_side)->FadeToColor((float)fSeconds, (float)fRed, (float)fGreen, (float)fBlue, (float)fAlpha, (bool)bBackground);
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_FadeGrid(void *linux_side, float fSeconds, bool bFadeIn)
|
|
{
|
|
((IVRCompositor*)linux_side)->FadeGrid((float)fSeconds, (bool)bFadeIn);
|
|
}
|
|
|
|
vr::EVRCompositorError cppIVRCompositor_IVRCompositor_013_SetSkyboxOverride(void *linux_side, Texture_t * pTextures, uint32_t unTextureCount)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->SetSkyboxOverride((const vr::Texture_t *)pTextures, (uint32_t)unTextureCount);
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_ClearSkyboxOverride(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->ClearSkyboxOverride();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_CompositorBringToFront(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->CompositorBringToFront();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_CompositorGoToBack(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->CompositorGoToBack();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_CompositorQuit(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->CompositorQuit();
|
|
}
|
|
|
|
bool cppIVRCompositor_IVRCompositor_013_IsFullscreen(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->IsFullscreen();
|
|
}
|
|
|
|
uint32_t cppIVRCompositor_IVRCompositor_013_GetCurrentSceneFocusProcess(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->GetCurrentSceneFocusProcess();
|
|
}
|
|
|
|
uint32_t cppIVRCompositor_IVRCompositor_013_GetLastFrameRenderer(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->GetLastFrameRenderer();
|
|
}
|
|
|
|
bool cppIVRCompositor_IVRCompositor_013_CanRenderScene(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->CanRenderScene();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_ShowMirrorWindow(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->ShowMirrorWindow();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_HideMirrorWindow(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->HideMirrorWindow();
|
|
}
|
|
|
|
bool cppIVRCompositor_IVRCompositor_013_IsMirrorWindowVisible(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->IsMirrorWindowVisible();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_CompositorDumpImages(void *linux_side)
|
|
{
|
|
((IVRCompositor*)linux_side)->CompositorDumpImages();
|
|
}
|
|
|
|
bool cppIVRCompositor_IVRCompositor_013_ShouldAppRenderWithLowResources(void *linux_side)
|
|
{
|
|
return ((IVRCompositor*)linux_side)->ShouldAppRenderWithLowResources();
|
|
}
|
|
|
|
void cppIVRCompositor_IVRCompositor_013_ForceInterleavedReprojectionOn(void *linux_side, bool bOverride)
|
|
{
|
|
((IVRCompositor*)linux_side)->ForceInterleavedReprojectionOn((bool)bOverride);
|
|
}
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|