2021-12-11 07:10:09 +00:00
|
|
|
#include "../engine/engine.h"
|
2021-12-11 08:11:40 +00:00
|
|
|
#include "imgui.h"
|
|
|
|
#include "imgui_impl_sdl.h"
|
|
|
|
#include "imgui_impl_sdlrenderer.h"
|
|
|
|
#include <SDL.h>
|
2021-12-11 07:10:09 +00:00
|
|
|
|
|
|
|
class FurnaceGUI {
|
|
|
|
DivEngine* e;
|
|
|
|
|
2021-12-11 08:11:40 +00:00
|
|
|
SDL_Window* sdlWin;
|
|
|
|
SDL_Renderer* sdlRend;
|
|
|
|
|
|
|
|
bool quit;
|
|
|
|
|
|
|
|
int scrW, scrH;
|
|
|
|
|
|
|
|
double dpiScale;
|
|
|
|
|
|
|
|
ImFont* mainFont;
|
|
|
|
ImFont* patFont;
|
|
|
|
|
2021-12-11 21:44:02 +00:00
|
|
|
int curIns, curOctave;
|
|
|
|
|
2021-12-12 09:21:09 +00:00
|
|
|
ImVec2 macroDragStart;
|
|
|
|
ImVec2 macroDragAreaSize;
|
|
|
|
int* macroDragTarget;
|
|
|
|
int macroDragLen;
|
|
|
|
int macroDragMin, macroDragMax;
|
|
|
|
bool macroDragActive;
|
|
|
|
|
|
|
|
ImVec2 macroLoopDragStart;
|
|
|
|
ImVec2 macroLoopDragAreaSize;
|
|
|
|
signed char* macroLoopDragTarget;
|
|
|
|
int macroLoopDragLen;
|
|
|
|
bool macroLoopDragActive;
|
|
|
|
|
2021-12-11 07:10:09 +00:00
|
|
|
public:
|
|
|
|
void bindEngine(DivEngine* eng);
|
2021-12-11 08:11:40 +00:00
|
|
|
bool loop();
|
|
|
|
bool init();
|
2021-12-11 07:10:09 +00:00
|
|
|
FurnaceGUI();
|
2021-12-11 21:44:02 +00:00
|
|
|
};
|