First render.

This commit is contained in:
2023-11-17 00:02:04 -06:00
parent 55f629c7b5
commit 490da9d0c1
43 changed files with 1039 additions and 67 deletions

View File

@ -22,7 +22,7 @@ void Game::init() {
}
void Game::update() {
renderHost.update();
renderHost.update(shared_from_this());
if(nextFrameScene) {
nextFrameScene->stage();
@ -37,6 +37,10 @@ bool_t Game::isCloseRequested() {
);
}
std::shared_ptr<Scene> Game::getCurrentScene() {
return currentScene;
}
Game::~Game() {
std::cout << "Game successfully destructed" << std::endl;
}

View File

@ -44,6 +44,13 @@ namespace Dawn {
*/
bool_t isCloseRequested();
/**
* Returns the current scene that is active.
*
* @return The current scene.
*/
std::shared_ptr<Scene> getCurrentScene();
/**
* Deconstructs the game instance, does not deinitialize anything.
*/