diff options
-rw-r--r-- | application.cpp | 6 | ||||
-rw-r--r-- | application.h | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/application.cpp b/application.cpp index a21b4e2..47049c9 100644 --- a/application.cpp +++ b/application.cpp @@ -37,10 +37,14 @@ void Application::run() { update(); - window->Display(); + swap(); } } +void Application::swap() { + window->Display(); +} + void Application::quit() { please_quit = true; } diff --git a/application.h b/application.h index a71ac93..1b0d099 100644 --- a/application.h +++ b/application.h @@ -16,6 +16,7 @@ class Application { virtual void event_keypress(Key::Code key); virtual void update() = 0; + void swap(); public: Application(); |