]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Engine.hh
finally fixed broken main loop
[chaz/yoink] / src / Moof / Engine.hh
index 07e982abd9ee4207478d077b8365cedc01897643..28d7fa03eab8119d16a58ca5f2c81ad40da69ad5 100644 (file)
@@ -40,6 +40,9 @@
 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
@@ -55,20 +58,18 @@ public:
 
        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
This page took 0.01849 seconds and 4 git commands to generate.