Skip to content

Commit

Permalink
ImGuiUtils::Plot: added the Reset function
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Jun 27, 2023
1 parent 9771185 commit 7e35479
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Imgui/interface/ImGuiUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ class Plot
++m_FrameNum;
}

void Reset()
{
for (auto& Val : m_Values)
Val = 0;
m_FrameNum = 0;
}

void Render();

private:
Expand Down

0 comments on commit 7e35479

Please sign in to comment.