// 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() {}
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
{
throw *this;
}
};
-
-private:
- class Impl;
- boost::shared_ptr<Impl> impl_;
};