X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.hpp;h=cb5bbeda250e537a486ece6ea7d54703685a1ef1;hb=c551a7ee31696e62ee6a05d4505ff93cfca24112;hp=47621f3480d77a43e7aa674218949f244730e821;hpb=c62711567861587107d124642db29e2674ee6533;p=supertux.git diff --git a/src/mainloop.hpp b/src/mainloop.hpp index 47621f348..cb5bbeda2 100644 --- a/src/mainloop.hpp +++ b/src/mainloop.hpp @@ -33,7 +33,7 @@ class MainLoop public: MainLoop(); ~MainLoop(); - + void run(); void exit_screen(ScreenFade* fade = NULL); void quit(ScreenFade* fade = NULL); @@ -48,11 +48,17 @@ public: private: void draw_fps(DrawingContext& context, float fps); - + void draw(DrawingContext& context); + void update_gamelogic(float elapsed_time); + void process_events(); + void handle_screen_switch(); + bool running; float speed; bool nextpop; bool nextpush; + /// measured fps + float fps; std::auto_ptr next_screen; std::auto_ptr current_screen; std::auto_ptr console; @@ -63,4 +69,3 @@ private: extern MainLoop* main_loop; #endif -