18 lines
686 B
C++
18 lines
686 B
C++
/*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <imgui.h>
|
|
|
|
namespace ImGui
|
|
{
|
|
void PlotTwoLines(const char* label,
|
|
float (*getter1)(void* data, int idx), void* data1, const char *tooltipPrefix1,
|
|
float (*getter2)(void* data, int idx), void* data2, const char *tooltipPrefix2,
|
|
int values_count, float scale_min = FLT_MAX, float scale_max = FLT_MAX,
|
|
ImVec2 graph_size = ImVec2(0, 0), ImColor color1 = ImColor(255, 100, 100), ImColor color2 = ImColor(100, 255, 100));
|
|
} |