Function ovr_sys::ovr_CalcEyePoses
source · pub unsafe extern "C" fn ovr_CalcEyePoses(
headPose: ovrPosef,
hmdToEyeOffset: *const [ovrVector3f; 2],
outEyePoses: *const [ovrPosef; 2]
)
Expand description
Computes offset eye poses based on headPose returned by ovrTrackingState
.
in headPose
Indicates the HMD position and orientation to use for the calculation.
in hmdToEyeOffset
Can be ovrEyeRenderDesc.HmdToEyeOffset
returned from
ovr_GetRenderDesc
. For monoscopic rendering, use a vector that is the average
of the two vectors for both eyes.
out outEyePoses
If outEyePoses
are used for rendering, they should be passed to
ovr_SubmitFrame
in ovrLayerEyeFov::RenderPose
or ovrLayerEyeFovDepth::RenderPose
.