First render.
This commit is contained in:
@ -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;
|
||||
}
|
@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user