MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / Demo_CustomRendering

Function Demo_CustomRendering

Source/3rdParty/implot/implot_demo.cpp:2605–2617  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2603//-----------------------------------------------------------------------------
2604
2605void 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

Callers

nothing calls this directly

Calls 8

BeginPlotFunction · 0.85
PlotToPixelsFunction · 0.85
PushPlotClipRectFunction · 0.85
GetPlotDrawListFunction · 0.85
PopPlotClipRectFunction · 0.85
EndPlotFunction · 0.85
AddCircleFilledMethod · 0.80
AddRectMethod · 0.80

Tested by

no test coverage detected