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

Function paintTrackAdditionPPStandard

src/OpenLoco/src/Paint/PaintTrack.cpp:42–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40 }
41
42 static void paintTrackAdditionPPStandard(PaintSession& session, const World::TrackElement& elTrack, const uint8_t rotation, const ImageId baseImageId, const TrackPaintAdditionPiece& tppa)
43 {
44 const auto height = elTrack.baseHeight();
45 const auto heightOffset = World::Pos3{ 0,
46 0,
47 height };
48
49 session.addToPlotListAsChild(
50 baseImageId.withIndexOffset(tppa.imageIds[rotation]),
51 heightOffset,
52 tppa.boundingBoxOffsets[rotation] + heightOffset,
53 tppa.boundingBoxSizes[rotation]);
54 }
55
56 static void paintTrackAdditionPP(PaintSession& session, const World::TrackElement& elTrack, const uint8_t rotation, const ImageId baseImageId, const TrackPaintAdditionPiece& tppa)
57 {

Callers 1

paintTrackAdditionPPFunction · 0.85

Calls 6

baseHeightMethod · 0.80
addToPlotListAsChildMethod · 0.80
withIndexOffsetMethod · 0.80
addToPlotList4FD150Method · 0.80
valueMethod · 0.80
paintSupportFunction · 0.70

Tested by

no test coverage detected