Moved window create from RenderEngine to CoreInstance

This commit is contained in:
Jiga228
2025-09-17 21:51:31 +07:00
parent 25cc75ba69
commit e151663de5
6 changed files with 33 additions and 37 deletions
+6 -1
View File
@@ -63,8 +63,13 @@ void GameInstance::start()
}
}
void GameInstance::quit()
void GameInstance::stop()
{
is_running = false;
}
void GameInstance::quit()
{
stop();
core.quit();
}
+1 -4
View File
@@ -16,11 +16,8 @@ class GameInstance
std::atomic<bool> is_running = true;
// Create a window
// Render
// Pull events
void start();
void stop();
public:
void quit();