More standard pointers.

This commit is contained in:
2023-11-12 19:52:41 -06:00
parent aa7ea94669
commit 3836d68033
17 changed files with 48 additions and 62 deletions

View File

@ -18,9 +18,7 @@ DawnGame::DawnGame(const std::weak_ptr<DawnHost> host) :
int32_t DawnGame::init() {
this->assetManager.init();
this->renderManager->init(weak_from_this());
this->scene = dawnGameGetInitialScene(this);
this->scene = dawnGameGetInitialScene(weak_from_this());
return DAWN_GAME_INIT_RESULT_SUCCESS;
}

View File

@ -90,5 +90,5 @@ namespace Dawn {
* @param game Game that is requesting this scene.
* @return Pointer to a scene that you wish to have as the default scene.
*/
std::shared_ptr<Scene> dawnGameGetInitialScene(DawnGame *game);
std::shared_ptr<Scene> dawnGameGetInitialScene(std::weak_ptr<DawnGame> game);
}