make include headers only

This commit is contained in:
2025-03-31 13:49:00 -05:00
parent 22350ed54d
commit 121fba5930
11 changed files with 167 additions and 215 deletions

View File

@@ -12,19 +12,17 @@ namespace Archimedes {
typedef GuiModule* create_t(void*, App*);
GuiModule(void* h, App* a) : Module(h, a) {
window = new WindowModule(nullptr, a);
deps["WindowModule"] = window;
windowModule = new WindowModule(nullptr, a);
deps["WindowModule"] = windowModule;
}
virtual ~GuiModule() { if(window) delete window; }
virtual ~GuiModule() {}
virtual void onLoad() = 0;
virtual void run() = 0;
Window* getWindow() { return window; }
void createWindow() { window = new Window(); }
Window* getWindow() { return windowModule; }
protected:
WindowModule* window;
//Renderer* renderer;
WindowModule* windowModule;
};
}