Proton/vrclient_x64/cppIVRCompositor_IVRCompositor_007.cpp
2018-01-18 13:29:49 -06:00

110 lines
3.8 KiB
C++

#include "vrclient_private.h"
#include "vrclient_defs.h"
#include "openvr_v0.9.8/openvr.h"
using namespace vr;
extern "C" {
#include "struct_converters.h"
}
#include "cppIVRCompositor_IVRCompositor_007.h"
#ifdef __cplusplus
extern "C" {
#endif
uint32_t cppIVRCompositor_IVRCompositor_007_GetLastError(void *linux_side, char * pchBuffer, uint32_t unBufferSize)
{
return ((IVRCompositor*)linux_side)->GetLastError((char *)pchBuffer, (uint32_t)unBufferSize);
}
void cppIVRCompositor_IVRCompositor_007_SetVSync(void *linux_side, bool bVSync)
{
((IVRCompositor*)linux_side)->SetVSync((bool)bVSync);
}
bool cppIVRCompositor_IVRCompositor_007_GetVSync(void *linux_side)
{
return ((IVRCompositor*)linux_side)->GetVSync();
}
void cppIVRCompositor_IVRCompositor_007_SetGamma(void *linux_side, float fGamma)
{
((IVRCompositor*)linux_side)->SetGamma((float)fGamma);
}
float cppIVRCompositor_IVRCompositor_007_GetGamma(void *linux_side)
{
return ((IVRCompositor*)linux_side)->GetGamma();
}
vr::VRCompositorError cppIVRCompositor_IVRCompositor_007_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::VRCompositorError cppIVRCompositor_IVRCompositor_007_Submit(void *linux_side, Hmd_Eye eEye, GraphicsAPIConvention eTextureType, void * pTexture, VRTextureBounds_t * pBounds)
{
return ((IVRCompositor*)linux_side)->Submit((vr::Hmd_Eye)eEye, (vr::GraphicsAPIConvention)eTextureType, (void *)pTexture, (const vr::VRTextureBounds_t *)pBounds);
}
void cppIVRCompositor_IVRCompositor_007_ClearLastSubmittedFrame(void *linux_side)
{
((IVRCompositor*)linux_side)->ClearLastSubmittedFrame();
}
bool cppIVRCompositor_IVRCompositor_007_GetFrameTiming(void *linux_side, Compositor_FrameTiming * pTiming, uint32_t unFramesAgo)
{
return ((IVRCompositor*)linux_side)->GetFrameTiming((vr::Compositor_FrameTiming *)pTiming, (uint32_t)unFramesAgo);
}
void cppIVRCompositor_IVRCompositor_007_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_007_FadeGrid(void *linux_side, float fSeconds, bool bFadeIn)
{
((IVRCompositor*)linux_side)->FadeGrid((float)fSeconds, (bool)bFadeIn);
}
void cppIVRCompositor_IVRCompositor_007_CompositorBringToFront(void *linux_side)
{
((IVRCompositor*)linux_side)->CompositorBringToFront();
}
void cppIVRCompositor_IVRCompositor_007_CompositorGoToBack(void *linux_side)
{
((IVRCompositor*)linux_side)->CompositorGoToBack();
}
void cppIVRCompositor_IVRCompositor_007_CompositorQuit(void *linux_side)
{
((IVRCompositor*)linux_side)->CompositorQuit();
}
bool cppIVRCompositor_IVRCompositor_007_IsFullscreen(void *linux_side)
{
return ((IVRCompositor*)linux_side)->IsFullscreen();
}
void cppIVRCompositor_IVRCompositor_007_SetTrackingSpace(void *linux_side, TrackingUniverseOrigin eOrigin)
{
((IVRCompositor*)linux_side)->SetTrackingSpace((vr::TrackingUniverseOrigin)eOrigin);
}
vr::TrackingUniverseOrigin cppIVRCompositor_IVRCompositor_007_GetTrackingSpace(void *linux_side)
{
return ((IVRCompositor*)linux_side)->GetTrackingSpace();
}
uint32_t cppIVRCompositor_IVRCompositor_007_GetCurrentSceneFocusProcess(void *linux_side)
{
return ((IVRCompositor*)linux_side)->GetCurrentSceneFocusProcess();
}
bool cppIVRCompositor_IVRCompositor_007_CanRenderScene(void *linux_side)
{
return ((IVRCompositor*)linux_side)->CanRenderScene();
}
#ifdef __cplusplus
}
#endif