move utils to include. utils implimentations should be headers

This commit is contained in:
2025-03-26 13:07:18 -05:00
parent 12c82a8327
commit fd6a774c73
15 changed files with 110 additions and 131 deletions

View File

@@ -0,0 +1,28 @@
#ifndef GUIMODULE_H
#define GUIMODULE_H
#include "Module.h"
#include "Window/Window.h"
namespace Archimedes {
class GuiModule : public Module {
public:
typedef GuiModule* create_t(void*, App&);
GuiModule(void* h, App& a) : Module(h, a) {}
virtual ~GuiModule() { if(window) delete window; }
virtual void onLoad() = 0;
virtual void run() = 0;
Window* getWindow() { return window; }
void createWindow() { window = new Window(); }
protected:
Window* window;
};
}
#endif