25 lines
384 B
C++
25 lines
384 B
C++
#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();
|
|
}
|