| 192 | } |
| 193 | |
| 194 | ovrResult ovrHmdStruct::BeginSession() |
| 195 | { |
| 196 | XrSessionBeginInfo beginInfo = XR_TYPE(SESSION_BEGIN_INFO); |
| 197 | beginInfo.primaryViewConfigurationType = XR_VIEW_CONFIGURATION_TYPE_PRIMARY_STEREO; |
| 198 | CHK_XR(xrBeginSession(Session, &beginInfo)); |
| 199 | |
| 200 | // Start the first frame immediately in case the app uses SubmitFrame(). |
| 201 | long long currentIndex = (*CurrentFrame).frameIndex; |
| 202 | CHK_OVR(ovr_WaitToBeginFrame(this, currentIndex)); |
| 203 | RecenterSpace(ovrTrackingOrigin_EyeLevel, ViewSpace); |
| 204 | CHK_OVR(ovr_BeginFrame(this, currentIndex)); |
| 205 | return ovrSuccess; |
| 206 | } |
| 207 | |
| 208 | ovrResult ovrHmdStruct::EndSession() |
| 209 | { |
no test coverage detected