| 1560 | //----------------------------------------------------------------------------- |
| 1561 | |
| 1562 | IMPLOT3D_API void PlotImage(const char* label_id, ImTextureRef tex_ref, const ImPlot3DPoint& center, const ImPlot3DPoint& axis_u, |
| 1563 | const ImPlot3DPoint& axis_v, const ImVec2& uv0, const ImVec2& uv1, const ImVec4& tint_col, const ImPlot3DSpec& spec) { |
| 1564 | // Compute corners from center and axes |
| 1565 | ImPlot3DPoint p0 = center - axis_u - axis_v; // Bottom-left |
| 1566 | ImPlot3DPoint p1 = center + axis_u - axis_v; // Bottom-right |
| 1567 | ImPlot3DPoint p2 = center + axis_u + axis_v; // Top-right |
| 1568 | ImPlot3DPoint p3 = center - axis_u + axis_v; // Top-left |
| 1569 | |
| 1570 | // Map ImPlot-style 2-point UVs into full 4-corner UVs |
| 1571 | ImVec2 uv_0 = uv0; |
| 1572 | ImVec2 uv_1 = ImVec2(uv1.x, uv0.y); |
| 1573 | ImVec2 uv_2 = uv1; |
| 1574 | ImVec2 uv_3 = ImVec2(uv0.x, uv1.y); |
| 1575 | |
| 1576 | // Delegate to full quad version |
| 1577 | PlotImage(label_id, tex_ref, p0, p1, p2, p3, uv_0, uv_1, uv_2, uv_3, tint_col, spec); |
| 1578 | } |
| 1579 | |
| 1580 | IMPLOT3D_API void PlotImage(const char* label_id, ImTextureRef tex_ref, const ImPlot3DPoint& p0, const ImPlot3DPoint& p1, const ImPlot3DPoint& p2, |
| 1581 | const ImPlot3DPoint& p3, const ImVec2& uv0, const ImVec2& uv1, const ImVec2& uv2, const ImVec2& uv3, |
no test coverage detected