X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fmainloop.hpp;h=e9fa1a11acde0539e0d5db59e9109deb2253b9ed;hb=9d05abe97c11bec660967594ca889f89338ab343;hp=cb5bbeda250e537a486ece6ea7d54703685a1ef1;hpb=7fbc38d9c2fda9bfb10eeb7ecb3db36c3daa2824;p=supertux.git diff --git a/src/mainloop.hpp b/src/mainloop.hpp index cb5bbeda2..e9fa1a11a 100644 --- a/src/mainloop.hpp +++ b/src/mainloop.hpp @@ -38,6 +38,12 @@ public: 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 + */ + void take_screenshot(); // push new screen on screen_stack void push_screen(Screen* screen, ScreenFade* fade = NULL); @@ -64,6 +70,7 @@ private: std::auto_ptr console; std::auto_ptr screen_fade; std::vector screen_stack; + bool screenshot_requested; /**< true if a screenshot should be taken after the next frame has been rendered */ }; extern MainLoop* main_loop;