namespace Mf {
+class Settings;
+
+
/**
* The engine is essentially a stack of layers. While running, it updates each
* layer from the bottom up every timestep. It also draws each layer from the
Engine();
~Engine() {}
+
+ // loads settings: rngseed, timestep, framerate, showfps
+ bool initWithSettings(const Settings& settings);
const Error& getError() const;
+ void clearError();
// setting the video is required before you can run the engine and should
// probably be done before adding any layers
void setVideo(VideoP video);
VideoP getVideo() const;
- void setTimestep(int ts);
- int getTimestep() const;
-
- void setMaxFps(int maxFps); // draw rate is always capped at the timestep
- int getMaxFps() const;
-
int getFps() const;
void push(LayerP layer); // push a layer onto the top