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

Function drawAllAttachedStructs

src/OpenLoco/src/Paint/Paint.cpp:1015–1029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1013 }
1014
1015 static void drawAllAttachedStructs(const Gfx::RenderTarget& rt, Gfx::DrawingContext& drawingCtx, const PaintStruct& ps, const Ui::ViewportFlags viewFlags)
1016 {
1017 for (const auto* attachPs = ps.attachedPS; attachPs != nullptr; attachPs = attachPs->next)
1018 {
1019 const bool shouldCullAttach = shouldTryCullPaintStruct(ps, viewFlags);
1020 if (shouldCullAttach)
1021 {
1022 if (cullPaintStructImage(attachPs->imageId, viewFlags))
1023 {
1024 continue;
1025 }
1026 }
1027 drawAttachStruct(rt, drawingCtx, ps, *attachPs, shouldCullAttach);
1028 }
1029 }
1030
1031 // 0x0045EA23
1032 void PaintSession::drawStructs(Gfx::DrawingContext& drawingCtx)

Callers 1

drawStructsMethod · 0.85

Calls 3

shouldTryCullPaintStructFunction · 0.85
cullPaintStructImageFunction · 0.85
drawAttachStructFunction · 0.85

Tested by

no test coverage detected