summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-29 01:34:50 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-29 01:34:50 +0100
commitfab20efb604948d2b61de319f60bffe9f0b8592c (patch)
treeedb306abe46aaa4e4b46be7383460414083cf37d
parent2d916efa7963e6c247a451f3046f7bfce683737d (diff)
Added swap() to Application.
-rw-r--r--application.cpp6
-rw-r--r--application.h1
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();