36 #if !defined(OVR_EXPORT)
38 #define OVR_EXPORT __declspec(dllexport)
469 unsigned int requiredSensorCaps);
499 float pixelsPerDisplayPixel);
542 unsigned int distortionCaps,
640 unsigned int distortionCaps,
693 float znear,
float zfar,
ovrBool rightHanded );
699 float orthoDistance,
float eyeViewAdjustX);
737 #if !defined(OVR_KEY_USER)
739 #define OVR_KEY_USER "User"
740 #define OVR_KEY_NAME "Name"
741 #define OVR_KEY_GENDER "Gender"
742 #define OVR_KEY_PLAYER_HEIGHT "PlayerHeight"
743 #define OVR_KEY_EYE_HEIGHT "EyeHeight"
744 #define OVR_KEY_IPD "IPD"
745 #define OVR_KEY_NECK_TO_EYE_HORIZONTAL "NeckEyeHori"
746 #define OVR_KEY_NECK_TO_EYE_VERTICAL "NeckEyeVert"
748 #define OVR_DEFAULT_GENDER "Male"
749 #define OVR_DEFAULT_PLAYER_HEIGHT 1.778f
750 #define OVR_DEFAULT_EYE_HEIGHT 1.675f
751 #define OVR_DEFAULT_IPD 0.064f
752 #define OVR_DEFAULT_NECK_TO_EYE_HORIZONTAL 0.12f
753 #define OVR_DEFAULT_NECK_TO_EYE_VERTICAL 0.12f
768 float values[],
unsigned int arraySize);
772 float values[],
unsigned int arraySize);
778 const char* defaultVal);
struct ovrPosef_ ovrPosef
ovrRecti DistortedViewport
OVR_EXPORT void ovrHmd_ResetFrameTiming(ovrHmd hmd, unsigned int frameIndex)
OVR_EXPORT ovrPosef ovrHmd_BeginEyeRender(ovrHmd hmd, ovrEyeType eye)
OVR_EXPORT ovrFrameTiming ovrHmd_GetFrameTiming(ovrHmd hmd, unsigned int frameIndex)
OVR_EXPORT int ovrHmd_Detect()
struct ovrSensorState_ ovrSensorState
OVR_EXPORT ovrEyeRenderDesc ovrHmd_GetRenderDesc(ovrHmd hmd, ovrEyeType eyeType, ovrFovPort fov)
ovrEyeType EyeRenderOrder[ovrEye_Count]
OVR_EXPORT ovrBool ovrHmd_ConfigureRendering(ovrHmd hmd, const ovrRenderAPIConfig *apiConfig, unsigned int distortionCaps, const ovrFovPort eyeFovIn[2], ovrEyeRenderDesc eyeRenderDescOut[2])
OVR_EXPORT unsigned int ovrHmd_GetEnabledCaps(ovrHmd hmd)
OVR_EXPORT ovrBool ovrHmd_StartSensor(ovrHmd hmd, unsigned int supportedSensorCaps, unsigned int requiredSensorCaps)
ovrVector3f AngularAcceleration
struct ovrVector3f_ ovrVector3f
struct ovrTexture_ ovrTexture
OVR_EXPORT void ovr_Shutdown()
struct ovrVector2f_ ovrVector2f
OVR_EXPORT ovrMatrix4f ovrMatrix4f_Projection(ovrFovPort fov, float znear, float zfar, ovrBool rightHanded)
struct ovrSensorDesc_ ovrSensorDesc
OVR_EXPORT ovrPosef ovrHmd_GetEyePose(ovrHmd hmd, ovrEyeType eye)
OVR_EXPORT void ovrHmd_GetEyeTimewarpMatrices(ovrHmd hmd, ovrEyeType eye, ovrPosef renderPose, ovrMatrix4f twmOut[2])
OVR_EXPORT double ovr_WaitTillTime(double absTime)
ovrDistortionVertex * pVertexData
struct ovrSizei_ ovrSizei
OVR_EXPORT void ovrHmd_EndFrame(ovrHmd hmd)
OVR_EXPORT void ovrHmd_SetEnabledCaps(ovrHmd hmd, unsigned int hmdCaps)
OVR_EXPORT void ovrHmd_StopSensor(ovrHmd hmd)
struct ovrPoseStatef_ ovrPoseStatef
struct ovrVector2i_ ovrVector2i
OVR_EXPORT void ovrHmd_EndFrameTiming(ovrHmd hmd)
OVR_EXPORT ovrBool ovrHmd_CreateDistortionMesh(ovrHmd hmd, ovrEyeType eyeType, ovrFovPort fov, unsigned int distortionCaps, ovrDistortionMesh *meshData)
struct ovrRecti_ ovrRecti
OVR_EXPORT ovrBool ovr_Initialize()
struct ovrTextureHeader_ ovrTextureHeader
struct ovrHmdStruct * ovrHmd
OVR_EXPORT double ovrHmd_GetMeasuredLatencyTest2(ovrHmd hmd)
double TimewarpPointSeconds
OVR_EXPORT void ovrHmd_GetDesc(ovrHmd hmd, ovrHmdDesc *desc)
double ScanoutMidpointSeconds
ovrFovPort MaxEyeFov[ovrEye_Count]
struct ovrEyeRenderDesc_ ovrEyeRenderDesc
ovrFovPort DefaultEyeFov[ovrEye_Count]
struct ovrRenderAPIConfig_ ovrRenderAPIConfig
uintptr_t PlatformData[8]
struct ovrFovPort_ ovrFovPort
OVR_EXPORT const char * ovrHmd_GetLastError(ovrHmd hmd)
OVR_EXPORT void ovrHmd_ResetSensor(ovrHmd hmd)
ovrVector3f LinearVelocity
OVR_EXPORT void ovrHmd_DestroyDistortionMesh(ovrDistortionMesh *meshData)
const char * Manufacturer
OVR_EXPORT ovrBool ovrHmd_GetSensorDesc(ovrHmd hmd, ovrSensorDesc *descOut)
ovrVector2f PixelsPerTanAngleAtCenter
OVR_EXPORT ovrSizei ovrHmd_GetFovTextureSize(ovrHmd hmd, ovrEyeType eye, ovrFovPort fov, float pixelsPerDisplayPixel)
ovrRenderAPIConfigHeader Header
OVR_EXPORT ovrBool ovrHmd_SetFloatArray(ovrHmd hmd, const char *propertyName, float values[], unsigned int arraySize)
OVR_EXPORT ovrFrameTiming ovrHmd_BeginFrameTiming(ovrHmd hmd, unsigned int frameIndex)
unsigned int DistortionCaps
uintptr_t PlatformData[8]
OVR_EXPORT ovrFrameTiming ovrHmd_BeginFrame(ovrHmd hmd, unsigned int frameIndex)
struct ovrQuatf_ ovrQuatf
struct ovrMatrix4f_ ovrMatrix4f
struct ovrFrameTiming_ ovrFrameTiming
double EyeScanoutSeconds[2]
ovrVector3f AngularVelocity
OVR_EXPORT void ovrHmd_EndEyeRender(ovrHmd hmd, ovrEyeType eye, ovrPosef renderPose, ovrTexture *eyeTexture)
OVR_EXPORT ovrHmd ovrHmd_CreateDebug(ovrHmdType type)
OVR_EXPORT double ovr_GetTimeInSeconds()
struct ovrDistortionVertex_ ovrDistortionVertex
OVR_EXPORT void ovrHmd_Destroy(ovrHmd hmd)
OVR_EXPORT ovrSensorState ovrHmd_GetSensorState(ovrHmd hmd, double absTime)
OVR_EXPORT ovrMatrix4f ovrMatrix4f_OrthoSubProjection(ovrMatrix4f projection, ovrVector2f orthoScale, float orthoDistance, float eyeViewAdjustX)
OVR_EXPORT unsigned int ovrHmd_GetArraySize(ovrHmd hmd, const char *propertyName)
ovrVector3f LinearAcceleration
OVR_EXPORT void ovrHmd_GetRenderScaleAndOffset(ovrFovPort fov, ovrSizei textureSize, ovrRecti renderViewport, ovrVector2f uvScaleOffsetOut[2])
unsigned short * pIndexData
OVR_EXPORT const char * ovrHmd_GetString(ovrHmd hmd, const char *propertyName, const char *defaultVal)
int char * index(const char *__s, int __c) __THROW __attribute_pure__ __nonnull((1))
OVR_EXPORT float ovrHmd_GetFloat(ovrHmd hmd, const char *propertyName, float defaultVal)
struct ovrDistortionMesh_ ovrDistortionMesh
struct ovrHmdDesc_ ovrHmdDesc
const char * DisplayDeviceName
OVR_EXPORT ovrBool ovrHmd_ProcessLatencyTest(ovrHmd hmd, unsigned char rgbColorOut[3])
OVR_EXPORT const char * ovrHmd_GetLatencyTestResult(ovrHmd hmd)
struct ovrRenderAPIConfigHeader_ ovrRenderAPIConfigHeader
OVR_EXPORT ovrHmd ovrHmd_Create(int index)
OVR_EXPORT ovrBool ovrHmd_SetFloat(ovrHmd hmd, const char *propertyName, float value)
OVR_EXPORT unsigned int ovrHmd_GetFloatArray(ovrHmd hmd, const char *propertyName, float values[], unsigned int arraySize)