| 2603 | //----------------------------------------------------------------------------- |
| 2604 | |
| 2605 | void Demo_CustomRendering() { |
| 2606 | IMGUI_DEMO_MARKER("Custom/Custom Rendering"); |
| 2607 | if (ImPlot::BeginPlot("##CustomRend")) { |
| 2608 | ImVec2 cntr = ImPlot::PlotToPixels(ImPlotPoint(0.5f, 0.5f)); |
| 2609 | ImVec2 rmin = ImPlot::PlotToPixels(ImPlotPoint(0.25f, 0.75f)); |
| 2610 | ImVec2 rmax = ImPlot::PlotToPixels(ImPlotPoint(0.75f, 0.25f)); |
| 2611 | ImPlot::PushPlotClipRect(); |
| 2612 | ImPlot::GetPlotDrawList()->AddCircleFilled(cntr,20,IM_COL32(255,255,0,255),20); |
| 2613 | ImPlot::GetPlotDrawList()->AddRect(rmin, rmax, IM_COL32(128,0,255,255)); |
| 2614 | ImPlot::PopPlotClipRect(); |
| 2615 | ImPlot::EndPlot(); |
| 2616 | } |
| 2617 | } |
| 2618 | |
| 2619 | //----------------------------------------------------------------------------- |
| 2620 |
nothing calls this directly
no test coverage detected