MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/PhysX / mainContinue

Function mainContinue

physx/samples/samplebase/SampleMain.cpp:82–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82bool mainContinue()
83{
84 if (gApp->isOpen() && !gApp->isCloseRequested())
85 {
86 if(gApp->getInputMutex().trylock())
87 {
88 gApp->handleMouseVisualization();
89 gApp->doInput();
90 gApp->update();
91#if !SEPARATE_EVENT_LOOP
92 gApp->updateEngine();
93#endif
94 gApp->getInputMutex().unlock();
95 }
96 Ps::Thread::yield();
97 return true;
98 }
99
100#if SEPARATE_EVENT_LOOP
101 gApp->signalQuit();
102 gApp->waitForQuit();
103#else
104 if (gApp->isOpen() || gApp->isCloseRequested())
105 gApp->close();
106#endif
107
108 return false;
109}
110
111void mainLoop()
112{

Callers 1

mainLoopFunction · 0.85

Calls 11

isCloseRequestedMethod · 0.80
updateEngineMethod · 0.80
isOpenMethod · 0.45
trylockMethod · 0.45
doInputMethod · 0.45
updateMethod · 0.45
unlockMethod · 0.45
signalQuitMethod · 0.45
waitForQuitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected