36 lines
661 B
C++
36 lines
661 B
C++
#ifndef GUIMODULE
|
|
#define GUIMODULE
|
|
#endif
|
|
|
|
#include "Archimedes.h"
|
|
|
|
#include "imgui.h"
|
|
#include "misc/cpp/imgui_stdlib.h"
|
|
|
|
class ImguiModule : public Archimedes::Module {
|
|
|
|
public:
|
|
ImguiModule(Archimedes::App*, void*);
|
|
|
|
ImguiModule() { name = "ImguiModule"; }
|
|
|
|
~ImguiModule();
|
|
|
|
void onLoad();
|
|
|
|
bool onEvent(const Archimedes::Event& e) { return false; }
|
|
|
|
ImGuiContext* getContext() { return context; }
|
|
|
|
private:
|
|
|
|
ImGuiContext* context;
|
|
|
|
std::list<std::function<void()>>::iterator rcmd_it;
|
|
};
|
|
|
|
#ifdef IMGUIMODULE_DYNAMIC
|
|
#define MODULE_TYPE ImguiModule
|
|
#include "endModule.h"
|
|
#endif
|