X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.hpp;h=6edb42123ff32681910aa7ad3978a01018685b52;hb=dc9b54f74ced4cb8b995757786e34ecb2e7db8f1;hp=244c63f9f12b1b24918e9b2b51035974bb404053;hpb=a93bdf2bb864dc6ba7f9722b151e432fcab57240;p=supertux.git diff --git a/src/mainloop.hpp b/src/mainloop.hpp index 244c63f9f..6edb42123 100644 --- a/src/mainloop.hpp +++ b/src/mainloop.hpp @@ -28,16 +28,20 @@ class Console; class ScreenFade; class DrawingContext; +/** + * Manages, updates and draws all Screens, Controllers, Menus and the Console. + */ class MainLoop { public: MainLoop(); ~MainLoop(); - void run(); + void run(DrawingContext &context); void exit_screen(ScreenFade* fade = NULL); void quit(ScreenFade* fade = NULL); void set_speed(float speed); + float get_speed() const; /** * requests that a screenshot be taken after the next frame has been rendered