| 747 | } |
| 748 | |
| 749 | static void PaintPSImageWithBoundingBoxes(PaintSession& session, PaintStruct* ps, ImageId imageId, int32_t x, int32_t y) |
| 750 | { |
| 751 | auto& rt = session.rt; |
| 752 | |
| 753 | const PaletteIndex colour = kBoundBoxDebugColours[EnumValue(ps->InteractionItem)]; |
| 754 | const uint8_t rotation = session.CurrentRotation; |
| 755 | |
| 756 | const CoordsXYZ frontTop = { |
| 757 | ps->Bounds.x_end, |
| 758 | ps->Bounds.y_end, |
| 759 | ps->Bounds.z_end, |
| 760 | }; |
| 761 | const auto screenCoordFrontTop = Translate3DTo2DWithZ(rotation, frontTop); |
| 762 | |
| 763 | const CoordsXYZ frontBottom = { |
| 764 | ps->Bounds.x_end, |
| 765 | ps->Bounds.y_end, |
| 766 | ps->Bounds.z, |
| 767 | }; |
| 768 | const auto screenCoordFrontBottom = Translate3DTo2DWithZ(rotation, frontBottom); |
| 769 | |
| 770 | const CoordsXYZ leftTop = { |
| 771 | ps->Bounds.x, |
| 772 | ps->Bounds.y_end, |
| 773 | ps->Bounds.z_end, |
| 774 | }; |
| 775 | const auto screenCoordLeftTop = Translate3DTo2DWithZ(rotation, leftTop); |
| 776 | |
| 777 | const CoordsXYZ leftBottom = { |
| 778 | ps->Bounds.x, |
| 779 | ps->Bounds.y_end, |
| 780 | ps->Bounds.z, |
| 781 | }; |
| 782 | const auto screenCoordLeftBottom = Translate3DTo2DWithZ(rotation, leftBottom); |
| 783 | |
| 784 | const CoordsXYZ rightTop = { |
| 785 | ps->Bounds.x_end, |
| 786 | ps->Bounds.y, |
| 787 | ps->Bounds.z_end, |
| 788 | }; |
| 789 | const auto screenCoordRightTop = Translate3DTo2DWithZ(rotation, rightTop); |
| 790 | |
| 791 | const CoordsXYZ rightBottom = { |
| 792 | ps->Bounds.x_end, |
| 793 | ps->Bounds.y, |
| 794 | ps->Bounds.z, |
| 795 | }; |
| 796 | const auto screenCoordRightBottom = Translate3DTo2DWithZ(rotation, rightBottom); |
| 797 | |
| 798 | const CoordsXYZ backTop = { |
| 799 | ps->Bounds.x, |
| 800 | ps->Bounds.y, |
| 801 | ps->Bounds.z_end, |
| 802 | }; |
| 803 | const auto screenCoordBackTop = Translate3DTo2DWithZ(rotation, backTop); |
| 804 | |
| 805 | const CoordsXYZ backBottom = { |
| 806 | ps->Bounds.x, |
no test coverage detected