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

Function paintTrackAdditionPPMergeable

src/OpenLoco/src/Paint/PaintTrack.cpp:27–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 namespace Style0
26 {
27 static void paintTrackAdditionPPMergeable(PaintSession& session, const World::TrackElement& elTrack, const uint8_t rotation, const ImageId baseImageId, const TrackPaintAdditionPiece& tppa)
28 {
29 const auto height = elTrack.baseHeight();
30 const auto heightOffset = World::Pos3{ 0,
31 0,
32 height };
33
34 session.addToPlotListTrackRoad(
35 baseImageId.withIndexOffset(tppa.imageIds[rotation]),
36 4,
37 heightOffset,
38 tppa.boundingBoxOffsets[rotation] + heightOffset,
39 tppa.boundingBoxSizes[rotation]);
40 }
41
42 static void paintTrackAdditionPPStandard(PaintSession& session, const World::TrackElement& elTrack, const uint8_t rotation, const ImageId baseImageId, const TrackPaintAdditionPiece& tppa)
43 {

Callers 1

paintTrackAdditionPPFunction · 0.85

Calls 6

baseHeightMethod · 0.80
withIndexOffsetMethod · 0.80
valueMethod · 0.80
paintSupportFunction · 0.70

Tested by

no test coverage detected