]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Engine.hh
renamed mippleton to library
[chaz/yoink] / src / Moof / Engine.hh
index a0c23002080ff5ef65fa1a336cedd1294e101a35..e42510d3d86af61744bab076f2186249e1e91e26 100644 (file)
@@ -42,8 +42,13 @@ namespace Mf {
 // forward declarations
 class Video;
 
-struct Engine
+class Engine
 {
+       class Impl;
+       boost::shared_ptr<Impl> mImpl;
+
+public:
+
        Engine(int argc, char* argv[], const std::string& name, 
                        const std::string& iconFile, const std::string& configFile);
        ~Engine() {}
@@ -61,10 +66,11 @@ struct Engine
        Video& getVideo() const;
        long getFrameRate() const;
 
-       void pushLayer(LayerP layer);
-       void popLayer();
-       void popLayer(Layer* layer);
-       void clearLayers();
+       void push(LayerP layer);
+       LayerP pop();
+       // pops a specific layer and all layers above it
+       LayerP pop(Layer* layer);
+       void clear();
 
        struct Exception : public Mf::Exception
        {
@@ -76,10 +82,6 @@ struct Engine
                        throw *this;
                }
        };
-
-private:
-       class Impl;
-       boost::shared_ptr<Impl> impl_;
 };
 
 
This page took 0.021433 seconds and 4 git commands to generate.