2021-12-11 02:10:09 -05:00
|
|
|
#include "../engine/engine.h"
|
2021-12-11 03:11:40 -05:00
|
|
|
#include "imgui.h"
|
|
|
|
#include "imgui_impl_sdl.h"
|
|
|
|
#include "imgui_impl_sdlrenderer.h"
|
|
|
|
#include <SDL.h>
|
2021-12-11 02:10:09 -05:00
|
|
|
|
|
|
|
class FurnaceGUI {
|
|
|
|
DivEngine* e;
|
|
|
|
|
2021-12-11 03:11:40 -05:00
|
|
|
SDL_Window* sdlWin;
|
|
|
|
SDL_Renderer* sdlRend;
|
|
|
|
|
|
|
|
bool quit;
|
|
|
|
|
|
|
|
int scrW, scrH;
|
|
|
|
|
|
|
|
double dpiScale;
|
|
|
|
|
|
|
|
ImFont* mainFont;
|
|
|
|
ImFont* patFont;
|
|
|
|
|
2021-12-11 16:44:02 -05:00
|
|
|
int curIns, curOctave;
|
|
|
|
|
2021-12-11 02:10:09 -05:00
|
|
|
public:
|
|
|
|
void bindEngine(DivEngine* eng);
|
2021-12-11 03:11:40 -05:00
|
|
|
bool loop();
|
|
|
|
bool init();
|
2021-12-11 02:10:09 -05:00
|
|
|
FurnaceGUI();
|
2021-12-11 16:44:02 -05:00
|
|
|
};
|