projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Switch -d was used twice. Script debugger now is -s
[supertux.git]
/
src
/
mainloop.hpp
diff --git
a/src/mainloop.hpp
b/src/mainloop.hpp
index
244c63f
..
6edb421
100644
(file)
--- a/
src/mainloop.hpp
+++ b/
src/mainloop.hpp
@@
-28,16
+28,20
@@
class Console;
class ScreenFade;
class DrawingContext;
class ScreenFade;
class DrawingContext;
+/**
+ * Manages, updates and draws all Screens, Controllers, Menus and the Console.
+ */
class MainLoop
{
public:
MainLoop();
~MainLoop();
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);
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
/**
* requests that a screenshot be taken after the next frame has been rendered