MCPcopy Create free account
hub / github.com/LibreVR/Revive / BeginSession

Method BeginSession

ReviveXR/Session.cpp:194–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194ovrResult 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
208ovrResult ovrHmdStruct::EndSession()
209{

Callers 1

ovr_GetSessionStatusFunction · 0.80

Calls 2

ovr_WaitToBeginFrameFunction · 0.70
ovr_BeginFrameFunction · 0.70

Tested by

no test coverage detected