layers are redundant

This commit is contained in:
2025-04-09 14:16:38 -05:00
parent 42b5a53b89
commit 908b00db62
11 changed files with 68 additions and 191 deletions

View File

@@ -9,39 +9,20 @@
class ImguiModule : public Archimedes::GuiModule {
public:
ImguiModule(void*, Archimedes::App*);
ImguiModule(Archimedes::App*, void*);
~ImguiModule();
void onLoad();
bool onEvent(const Archimedes::Event& e) { return false; }
void run();
private:
Archimedes::Window* window;
class IGLayer : public Archimedes::Layer {
public:
IGLayer(ImguiModule* _imgui) : imgui(_imgui) {}
~IGLayer();
void onRender();
void onAttach();
void onDetach();
bool onEvent(const Archimedes::Event&);
private:
ImguiModule* imgui;
} layer = IGLayer(this);
};
#ifdef TESTIMGUI_DYNAMIC