X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FMoof%2FEngine.hh;h=e42510d3d86af61744bab076f2186249e1e91e26;hb=bffc879fc8ee8167bb123310d39fad4e2f426ffd;hp=a0c23002080ff5ef65fa1a336cedd1294e101a35;hpb=892da43bf5796e7c5f593a6d0f53bd797a36bd3e;p=chaz%2Fyoink diff --git a/src/Moof/Engine.hh b/src/Moof/Engine.hh index a0c2300..e42510d 100644 --- a/src/Moof/Engine.hh +++ b/src/Moof/Engine.hh @@ -42,8 +42,13 @@ namespace Mf { // forward declarations class Video; -struct Engine +class Engine { + class Impl; + boost::shared_ptr 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_; };