restructure modules. make GuiModules depend on WindowModule

This commit is contained in:
2025-03-31 10:30:55 -05:00
parent d6f769d2dd
commit 22350ed54d
15 changed files with 13 additions and 11 deletions

View File

@@ -0,0 +1,24 @@
#include "WindowModule.h"
WindowModule::WindowModule(void* h, Archimedes::App* a) : Module(h, a) {
name = "Window";
}
WindowModule::~WindowModule() {
if(window)
delete window;
}
void WindowModule::onLoad() {
window = new Archimedes::Window();
}
void WindowModule::run() {
if(window->shouldClose()) {
app->end();
}
window->doFrame();
}