MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / WindowDrawAll

Function WindowDrawAll

src/openrct2/interface/Window.cpp:863–875  ·  view source on GitHub ↗

* * rct2: 0x006E7499 * left (ax) * top (bx) * right (dx) * bottom (bp) */

Source from the content-addressed store, hash-verified

861 * bottom (bp)
862 */
863 void WindowDrawAll(Drawing::RenderTarget& rt, int32_t left, int32_t top, int32_t right, int32_t bottom)
864 {
865 auto windowRT = rt.Crop({ left, top }, { right - left, bottom - top });
866 WindowVisitEach([&windowRT, left, top, right, bottom](WindowBase* w) {
867 if (w->flags.has(WindowFlag::transparent))
868 return;
869 if (right <= w->windowPos.x || bottom <= w->windowPos.y)
870 return;
871 if (left >= w->windowPos.x + w->width || top >= w->windowPos.y + w->height)
872 return;
873 WindowDraw(windowRT, *w, left, top, right, bottom);
874 });
875 }
876
877 void WindowInitAll()
878 {

Callers 6

ViewportRedrawAfterShiftFunction · 0.85
ViewportShiftPixelsFunction · 0.85
PaintWindowsMethod · 0.85
DrawDirtyBlocksMethod · 0.85
PaintWindowsMethod · 0.85
DrawDirtyBlocksMethod · 0.85

Calls 4

WindowVisitEachFunction · 0.85
WindowDrawFunction · 0.85
CropMethod · 0.80
hasMethod · 0.65

Tested by

no test coverage detected