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

Function cullPaintStructImage

src/OpenLoco/src/Paint/Paint.cpp:950–961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

948 }
949
950 static bool cullPaintStructImage(const ImageId& imageId, const Ui::ViewportFlags viewFlags)
951 {
952 if ((viewFlags & Ui::ViewportFlags::underground_view) != Ui::ViewportFlags::none)
953 {
954 return true;
955 }
956 if (imageId.isBlended())
957 {
958 return true;
959 }
960 return false;
961 }
962
963 static void drawStruct(const Gfx::RenderTarget& rt, Gfx::DrawingContext& drawingCtx, const PaintStruct& ps, const bool shouldCull)
964 {

Callers 2

drawAllAttachedStructsFunction · 0.85
drawStructsMethod · 0.85

Calls 1

isBlendedMethod · 0.80

Tested by

no test coverage detected