mirror of
https://github.com/MadeOfJelly/MushMachine.git
synced 2025-06-19 19:26:36 +02:00
initial import, >900commits predate this
This commit is contained in:
19
external/imgui/imgui_plot_var.hpp
vendored
Normal file
19
external/imgui/imgui_plot_var.hpp
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "imgui/imgui.h"
|
||||
|
||||
// USAGE
|
||||
// Call once a frame with current value
|
||||
// ImGui::PlotVar("Speed", current_speed);
|
||||
|
||||
namespace ImGui {
|
||||
|
||||
// Plot value over time
|
||||
// Pass FLT_MAX value to draw without adding a new value
|
||||
void PlotVar(const char* label, float value, float scale_min = FLT_MAX, float scale_max = FLT_MAX, int buffer_size = 120);
|
||||
|
||||
// Call this periodically to discard old/unused data
|
||||
void PlotVarFlushOldEntries();
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user