![](https://csdnimg.cn/release/download_crawler_static/9756288/bg5.jpg)
Functionality 0.2 SDK APIs 0.3 SDK C APIs
Initialization OVR::System::Init,
DeviceManager, HMDDevice,
HMDInfo.
ovr_Initialize,
ovrHmd_Create, ovrHmd handle
and ovrHmdDesc.
Sensor Interaction OVR::SensorFusion class, with
GetOrientation
returning
Quatf
.
Prediction amounts are specified
manually relative to the current time.
ovrHmd_StartSensor,
ovrHmd_GetSensorState
returning ovrSensorState.
ovrHmd_BeginEyeRender and
ovrHmd_GetEyePose also return
eye pose based on correct timing.
Rendering Setup Util::Render::StereoConfig
helper class creating
StereoEyeParams, or manual
setup based on members of HMDInfo.
ovrHmd_ConfigureRendering
populates ovrEyeRenderDesc
based on
ovrEyeDesc
. Alternatively,
ovrHmd_GetRenderDesc
supports
rendering setup for client distortion
rendering.
Distortion Rendering App-provided pixel shader based on
distortion coefficients.
Client rendered: based on the distortion
mesh returned by
ovrHmd_CreateDistortionMesh
.
(or) SDK rendered: done automatically
in ovrHmd_EndFrame.
Frame Timing Manual timing with current-time
relative prediction.
Frame timing is tied to vsync with
absolute values reported by
ovrHmd_BeginFrame or
ovr_BeginFrameTiming.
4