Add app::stop

This commit is contained in:
Nikita Lisitsa 2020-08-30 21:21:37 +03:00
parent e0c67d8043
commit 21b532062b
2 changed files with 6 additions and 0 deletions

View file

@ -16,6 +16,7 @@ namespace psemek::app
~app() override;
virtual bool running() const;
virtual void stop();
void on_resize(int width, int height) override;
virtual void on_quit();

View file

@ -94,6 +94,11 @@ namespace psemek::app
return impl().running;
}
void app::stop()
{
impl().running = false;
}
void app::on_resize(int width, int height)
{
gl::Viewport(0, 0, width, height);