work on layers
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
#include "WindowModule.h"
|
||||
|
||||
WindowModule::~WindowModule() {
|
||||
if(layers)
|
||||
if(layers) {
|
||||
delete layers;
|
||||
if(renderer)
|
||||
}
|
||||
if(renderer) {
|
||||
renderer->getCmdList().clear();
|
||||
delete renderer;
|
||||
if(window)
|
||||
}
|
||||
if(window) {
|
||||
delete window;
|
||||
}
|
||||
}
|
||||
|
||||
void WindowModule::onLoad() {
|
||||
@@ -27,9 +31,6 @@ void WindowModule::onLoad() {
|
||||
}
|
||||
|
||||
renderer->getCmdList().push_back([this](){ layers->renderAll(); });
|
||||
|
||||
data["window"] = window->getWindowImpl().getWindow();
|
||||
data["renderCmdList"] = &renderer->getCmdList();
|
||||
}
|
||||
|
||||
void WindowModule::run() {
|
||||
|
||||
Reference in New Issue
Block a user