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

Function ResetCtxForNextPlot

src/external/imgui/implot.cpp:495–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493}
494
495void ResetCtxForNextPlot(ImPlotContext* ctx) {
496 // reset the next plot/item data
497 ctx->NextPlotData.Reset();
498 ctx->NextItemData.Reset();
499 // reset labels
500 ctx->Annotations.Reset();
501 ctx->Tags.Reset();
502 // reset extents/fit
503 ctx->OpenContextThisFrame = false;
504 // reset digital plot items count
505 ctx->DigitalPlotItemCnt = 0;
506 ctx->DigitalPlotOffset = 0;
507 // nullify plot
508 ctx->CurrentPlot = nullptr;
509 ctx->CurrentItem = nullptr;
510 ctx->PreviousItem = nullptr;
511}
512
513void ResetCtxForNextAlignedPlots(ImPlotContext* ctx) {
514 ctx->CurrentAlignmentH = nullptr;

Callers 3

InitializeFunction · 0.85
BeginPlotFunction · 0.85
EndPlotFunction · 0.85

Calls 1

ResetMethod · 0.45

Tested by

no test coverage detected