MCPcopy Create free account
hub / github.com/Wemino/EchoPatch / Plot_ArrayGetter

Function Plot_ArrayGetter

include/imgui/imgui_widgets.cpp:8898–8903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8896};
8897
8898static float Plot_ArrayGetter(void* data, int idx)
8899{
8900 ImGuiPlotArrayGetterData* plot_data = (ImGuiPlotArrayGetterData*)data;
8901 const float v = *(const float*)(const void*)((const unsigned char*)plot_data->Values + (size_t)idx * plot_data->Stride);
8902 return v;
8903}
8904
8905void ImGui::PlotLines(const char* label, const float* values, int values_count, int values_offset, const char* overlay_text, float scale_min, float scale_max, ImVec2 graph_size, int stride)
8906{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected