forked from LibreVR/Revive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
REV_CAPI_Util.cpp
31 lines (22 loc) · 1.63 KB
/
REV_CAPI_Util.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "Extras/OVR_CAPI_Util.h"
#include "openvr.h"
#include "REV_Assert.h"
OVR_PUBLIC_FUNCTION(ovrDetectResult) ovr_Detect(int timeoutMilliseconds)
{
ovrDetectResult result;
result.IsOculusHMDConnected = vr::VR_IsHmdPresent();
result.IsOculusServiceRunning = vr::VR_IsRuntimeInstalled();
return result;
}
OVR_PUBLIC_FUNCTION(ovrMatrix4f) ovrMatrix4f_Projection(ovrFovPort fov, float znear, float zfar, unsigned int projectionModFlags) { REV_UNIMPLEMENTED_STRUCT(ovrMatrix4f); }
OVR_PUBLIC_FUNCTION(ovrTimewarpProjectionDesc) ovrTimewarpProjectionDesc_FromProjection(ovrMatrix4f projection, unsigned int projectionModFlags) { REV_UNIMPLEMENTED_STRUCT(ovrTimewarpProjectionDesc); }
OVR_PUBLIC_FUNCTION(ovrMatrix4f) ovrMatrix4f_OrthoSubProjection(ovrMatrix4f projection, ovrVector2f orthoScale,
float orthoDistance, float HmdToEyeOffsetX) { REV_UNIMPLEMENTED_STRUCT(ovrMatrix4f); }
OVR_PUBLIC_FUNCTION(void) ovr_CalcEyePoses(ovrPosef headPose,
const ovrVector3f HmdToEyeOffset[2],
ovrPosef outEyePoses[2]) { REV_UNIMPLEMENTED; }
OVR_PUBLIC_FUNCTION(void) ovr_GetEyePoses(ovrSession session, long long frameIndex, ovrBool latencyMarker,
const ovrVector3f HmdToEyeOffset[2],
ovrPosef outEyePoses[2],
double* outSensorSampleTime) { REV_UNIMPLEMENTED; }
OVR_PUBLIC_FUNCTION(void) ovrPosef_FlipHandedness(const ovrPosef* inPose, ovrPosef* outPose) { REV_UNIMPLEMENTED; }