2020-09-01 14:02:37 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vector>
|
|
|
|
|
2020-09-01 18:00:34 +02:00
|
|
|
#include <thread>
|
|
|
|
#include <future>
|
|
|
|
|
2020-09-04 20:29:55 +02:00
|
|
|
#include <imgui/imstb_truetype.h>
|
|
|
|
|
2020-09-01 14:02:37 +02:00
|
|
|
#include "PlotWindow.hpp"
|
2020-09-04 20:29:55 +02:00
|
|
|
#include "objects/Shader.hpp"
|
2020-09-01 14:02:37 +02:00
|
|
|
|
|
|
|
typedef std::vector<PlotWindow> WList;
|
|
|
|
|
|
|
|
class PlotManager
|
|
|
|
{
|
2020-09-01 18:00:34 +02:00
|
|
|
public:
|
|
|
|
static void NewPlot(std::string title);
|
2020-09-01 14:02:37 +02:00
|
|
|
static void Loop();
|
|
|
|
|
2020-09-01 18:00:34 +02:00
|
|
|
static void Close();
|
|
|
|
|
2020-09-01 14:02:37 +02:00
|
|
|
public:
|
|
|
|
inline static bool isOpen = true;
|
|
|
|
inline static int currentID = 0;
|
2020-09-01 18:00:34 +02:00
|
|
|
|
|
|
|
private:
|
2020-09-04 20:29:55 +02:00
|
|
|
inline static PlotWindow* OpenWindow = nullptr;
|
2020-09-01 14:02:37 +02:00
|
|
|
};
|