Scene change support
This commit is contained in:
1 parent
282d999603
commit
29048234a7
32 files changed
+236
-135
No files matched your search
@@ -33,6 +33,13 @@ int32_t DawnGame::update(float_t delta) {
|
||||
|
||||
this->renderManager.update();
|
||||
|
||||
if(this->sceneToCutTo != nullptr) {
|
||||
delete this->scene;
|
||||
this->scene = nullptr;
|
||||
this->scene = this->sceneToCutTo;
|
||||
this->sceneToCutTo = nullptr;
|
||||
}
|
||||
|
||||
return DAWN_GAME_UPDATE_RESULT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user