refactoring
This commit is contained in:
@@ -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() {
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ class WindowModule : public Archimedes::Module {
|
||||
|
||||
private:
|
||||
|
||||
Archimedes::Window window;
|
||||
Archimedes::Window* window;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user