MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / invalidateClosedWindows

Method invalidateClosedWindows

source/MRViewer/MRUIRectAllocator.cpp:262–276  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void WindowRectAllocator::invalidateClosedWindows()
263{
264 for ( auto it = windows_.begin(); it != windows_.end(); )
265 {
266 if ( it->second.state_ == AllocationState::None )
267 {
268 it = windows_.erase( it );
269 continue;
270 }
271 else if ( it->second.state_ == AllocationState::Set )
272 it->second.state_ = AllocationState::None; // we will validate that this window is still present when window Begin function will be called
273
274 ++it;
275 }
276}
277
278WindowRectAllocator& getDefaultWindowRectAllocator()
279{

Callers 1

startFrameMethod · 0.80

Calls 3

eraseMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected