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

Function BustColorCache

Source/3rdParty/implot/implot_items.cpp:382–398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

380}
381
382void BustColorCache(const char* plot_title_id) {
383 ImPlotContext& gp = *GImPlot;
384 if (plot_title_id == nullptr) {
385 BustItemCache();
386 }
387 else {
388 ImGuiID id = ImGui::GetCurrentWindow()->GetID(plot_title_id);
389 ImPlotPlot* plot = gp.Plots.GetByKey(id);
390 if (plot != nullptr)
391 plot->Items.Reset();
392 else {
393 ImPlotSubplot* subplot = gp.Subplots.GetByKey(id);
394 if (subplot != nullptr)
395 subplot->Items.Reset();
396 }
397 }
398}
399
400//-----------------------------------------------------------------------------
401// [SECTION] BeginItem / EndItem

Callers 1

Demo_HeatmapsFunction · 0.85

Calls 5

BustItemCacheFunction · 0.85
GetCurrentWindowFunction · 0.85
GetByKeyMethod · 0.80
GetIDMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected