work on layers
This commit is contained in:
@@ -19,9 +19,29 @@ class ImguiModule : public Archimedes::GuiModule {
|
||||
|
||||
|
||||
private:
|
||||
std::list<Archimedes::Renderer::renderCmd*>::iterator rcmd;
|
||||
|
||||
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