33 lines
553 B
C++
33 lines
553 B
C++
#ifndef GUIMODULE
|
|
#define GUIMODULE
|
|
#endif
|
|
|
|
#include "Archimedes.h"
|
|
|
|
#include "utils/Window/Window.h"
|
|
|
|
#include "imgui.h"
|
|
|
|
class ImguiModule : public Archimedes::GuiModule {
|
|
|
|
public:
|
|
ImguiModule(Archimedes::App*, void*);
|
|
|
|
~ImguiModule();
|
|
|
|
void onLoad();
|
|
|
|
bool onEvent(const Archimedes::Event& e) { return false; }
|
|
|
|
ImGuiContext* getContext() { return context; }
|
|
|
|
private:
|
|
|
|
ImGuiContext* context;
|
|
};
|
|
|
|
#ifdef IMGUIMODULE_DYNAMIC
|
|
#define MODULE_TYPE ImguiModule
|
|
#include "endModule.h"
|
|
#endif
|