layers are redundant
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user