| 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 | { |
no test coverage detected