MCPcopy Create free account
hub / github.com/baldurk/renderdoc / Update

Method Update

util/test/demos/apple/apple_window.cpp:180–194  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178extern "C" void *const NSDefaultRunLoopMode;
179
180bool AppleWindow::Update()
181{
182 NS::AutoreleasePool *pAutoreleasePool = NS::AutoreleasePool::alloc()->init();
183 while(true)
184 {
185 NS::Event *event = pSharedApplication->nextEventMatchingMask(
186 (int)NS::EventMaskAny, NS::Date::distantPast(), (NS::String *)NSDefaultRunLoopMode, true);
187 if(event == NULL)
188 break;
189 pSharedApplication->sendEvent(event);
190 }
191 pAutoreleasePool->release();
192
193 return pAppDelegate->GetWindow()->visible();
194}

Callers 6

mainFunction · 0.45
RunningMethod · 0.45
RunningMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
RunningMethod · 0.45

Calls 7

allocFunction · 0.85
GetWindowMethod · 0.80
initMethod · 0.45
nextEventMatchingMaskMethod · 0.45
sendEventMethod · 0.45
releaseMethod · 0.45
visibleMethod · 0.45

Tested by

no test coverage detected