MCPcopy Create free account
hub / github.com/cocos/cocos-engine / platformLoopStart

Method platformLoopStart

native/cocos/platform/java/modules/XRInterface.cpp:812–827  ·  view source on GitHub ↗

stereo render loop

Source from the content-addressed store, hash-verified

810
811// stereo render loop
812bool XRInterface::platformLoopStart() {
813#if CC_USE_XR
814 // CC_LOG_INFO("[XR] platformLoopStart");
815 if (!_isXrEntryInstanceValid) {
816 return false;
817 }
818 #if CC_USE_XR_REMOTE_PREVIEW
819 if (_xrRemotePreviewManager && !_xrRemotePreviewManager->isStarted()) {
820 _xrRemotePreviewManager->start();
821 }
822 #endif
823 return xr::XrEntry::getInstance()->platformLoopStart();
824#else
825 return false;
826#endif
827}
828
829bool XRInterface::beginRenderFrame() {
830#if CC_USE_XR

Callers 1

loopMethod · 0.80

Calls 2

isStartedMethod · 0.80
startMethod · 0.65

Tested by

no test coverage detected