MCPcopy Create free account
hub / github.com/clementgallet/libTAS / BustColorCache

Function BustColorCache

src/external/imgui/implot_items.cpp:369–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void BustColorCache(const char* plot_title_id) {
370 ImPlotContext& gp = *GImPlot;
371 if (plot_title_id == nullptr) {
372 BustItemCache();
373 }
374 else {
375 ImGuiID id = ImGui::GetCurrentWindow()->GetID(plot_title_id);
376 ImPlotPlot* plot = gp.Plots.GetByKey(id);
377 if (plot != nullptr)
378 plot->Items.Reset();
379 else {
380 ImPlotSubplot* subplot = gp.Subplots.GetByKey(id);
381 if (subplot != nullptr)
382 subplot->Items.Reset();
383 }
384 }
385}
386
387//-----------------------------------------------------------------------------
388// [SECTION] BeginItem / EndItem

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected