Remove app::on_quit(), use app::stop() instead
This commit is contained in:
parent
30c35fd768
commit
9f045c18a8
2 changed files with 1 additions and 7 deletions
|
|
@ -43,7 +43,6 @@ namespace psemek::app
|
|||
|
||||
virtual bool running() const;
|
||||
virtual void stop();
|
||||
virtual void on_quit();
|
||||
|
||||
void on_resize(int width, int height) override;
|
||||
|
||||
|
|
|
|||
|
|
@ -137,11 +137,6 @@ namespace psemek::app
|
|||
gl::Viewport(0, 0, width, height);
|
||||
}
|
||||
|
||||
void app::on_quit()
|
||||
{
|
||||
impl().running = false;
|
||||
}
|
||||
|
||||
void app::poll_events()
|
||||
{
|
||||
auto handler = [this]{ return impl().get_scene(); };
|
||||
|
|
@ -149,7 +144,7 @@ namespace psemek::app
|
|||
for (SDL_Event e; SDL_PollEvent(&e);) switch (e.type)
|
||||
{
|
||||
case SDL_QUIT:
|
||||
on_quit();
|
||||
stop();
|
||||
break;
|
||||
case SDL_WINDOWEVENT: switch (e.window.event)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue