MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / destroy

Function destroy

src/OpenLoco/src/ViewportManager.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void destroy(Viewport* vp)
53 {
54 assert(vp->isValid());
55
56 vp->width = 0;
57 while (!_viewports.empty() && _viewports.back().width == 0)
58 {
59 _viewports.pop_back();
60 }
61 }
62
63 static Viewport* initViewport(Ui::Point origin, Ui::Size size, ZoomLevel zoom)
64 {

Callers 6

viewportRemoveMethod · 0.50
playMusicFunction · 0.50
stopMusicFunction · 0.50
updateAmbientNoiseFunction · 0.50
stopAmbientNoiseFunction · 0.50
stopVehicleSoundFunction · 0.50

Calls 2

isValidMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected