| 1326 | } |
| 1327 | |
| 1328 | void RenderPlotBox(ImDrawList* draw_list, const ImPlot3DPlot& plot) { |
| 1329 | bool active_faces[3]; |
| 1330 | ImVec2 corners_pix[8]; |
| 1331 | ImPlot3DPoint corners[8]; |
| 1332 | int plane_2d; |
| 1333 | int axis_corners[3][2]; |
| 1334 | |
| 1335 | GetAxesParameters(plot, active_faces, corners_pix, corners, plane_2d, axis_corners); |
| 1336 | |
| 1337 | // Render components |
| 1338 | RenderPlotBackground(draw_list, plot, corners_pix, active_faces, plane_2d, axis_corners); |
| 1339 | RenderAxisRects(draw_list, plot, corners_pix, active_faces, plane_2d, axis_corners); |
| 1340 | RenderPlotBorder(draw_list, plot, corners_pix, active_faces, plane_2d); |
| 1341 | RenderGrid(draw_list, plot, corners, active_faces, plane_2d); |
| 1342 | RenderTickMarks(draw_list, plot, corners, corners_pix, axis_corners, plane_2d); |
| 1343 | RenderTickLabels(draw_list, plot, corners, corners_pix, axis_corners); |
| 1344 | RenderAxisLabels(draw_list, plot, corners, corners_pix, axis_corners); |
| 1345 | } |
| 1346 | |
| 1347 | //----------------------------------------------------------------------------- |
| 1348 | // [SECTION] Formatter |
no test coverage detected