MCPcopy Create free account
hub / github.com/axmolengine/axmol / updateDirtyFlagForSceneGraph

Method updateDirtyFlagForSceneGraph

core/base/EventDispatcher.cpp:1406–1424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1404}
1405
1406void EventDispatcher::updateDirtyFlagForSceneGraph()
1407{
1408 if (!_dirtyNodes.empty())
1409 {
1410 for (auto&& node : _dirtyNodes)
1411 {
1412 auto iter = _nodeListenersMap.find(node);
1413 if (iter != _nodeListenersMap.end())
1414 {
1415 for (auto&& l : *iter->second)
1416 {
1417 setDirty(l->getListenerID(), DirtyFlag::SCENE_GRAPH_PRIORITY);
1418 }
1419 }
1420 }
1421
1422 _dirtyNodes.clear();
1423 }
1424}
1425
1426void EventDispatcher::sortEventListeners(std::string_view listenerID)
1427{

Callers

nothing calls this directly

Calls 5

setDirtyFunction · 0.50
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected