refactoring

This commit is contained in:
2025-03-21 16:43:52 -05:00
parent f693f85fd0
commit ce79d8d4ff
2 changed files with 10 additions and 4 deletions

View File

@@ -1,12 +1,18 @@
#include "WindowModule.h"
WindowModule::WindowModule(void* h, App& a) : Module(h, a) {
WindowModule::WindowModule(void* h, Archimedes::App& a) : Module(h, a) {
name = "Window";
}
WindowModule::~WindowModule() {}
WindowModule::~WindowModule() {
if(window)
delete window;
}
void WindowModule::onLoad() {}
void WindowModule::onLoad() {
window = new Archimedes::Window();
}
void WindowModule::run() {

View File

@@ -15,7 +15,7 @@ class WindowModule : public Archimedes::Module {
private:
Archimedes::Window window;
Archimedes::Window* window;
};