aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/application.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2013-01-21 02:32:45 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-21 02:32:45 +0100
commitcbd5d2435dd143308c434076e06809ed65217561 (patch)
tree9319b06bd38db9db420da59dcd8de670d1f01262 /src/menu/application.hpp
parentcac7734bd0439abb40cf5bdf903335e57a0f017c (diff)
downloadusdx-cbd5d2435dd143308c434076e06809ed65217561.tar.gz
usdx-cbd5d2435dd143308c434076e06809ed65217561.tar.xz
usdx-cbd5d2435dd143308c434076e06809ed65217561.zip
menu/application: add quit() to quit the app from everywhere
Diffstat (limited to 'src/menu/application.hpp')
-rw-r--r--src/menu/application.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/menu/application.hpp b/src/menu/application.hpp
index c6eea5c8..a0c82107 100644
--- a/src/menu/application.hpp
+++ b/src/menu/application.hpp
@@ -57,6 +57,7 @@ namespace usdx
*/
void main_loop(SDL_Surface* display);
boost::thread::id gl_thread;
+ boost::thread event_thread;
void init_fps_manager(void);
@@ -73,6 +74,7 @@ namespace usdx
static bool is_gl_thread(void);
void run(void);
+ void quit(void);
const int get_frames_per_second(void) const;
void set_frames_per_second(int fps);