X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMainLayer.hh;h=4f0fc77d3b2d254905b301734fc7f22895d85d66;hp=97385830a326259ea64e5b6534530ff2579dd0ed;hb=a295f8def17036c8071b56e181364f99a377cae7;hpb=a31d65a998121df0651c57bfb68782e2a07d2e2f diff --git a/src/MainLayer.hh b/src/MainLayer.hh index 9738583..4f0fc77 100644 --- a/src/MainLayer.hh +++ b/src/MainLayer.hh @@ -39,6 +39,7 @@ #include +#include #include #include #include @@ -52,29 +53,27 @@ class MainLayer : public Mf::Layer public: MainLayer(); - ~MainLayer(); static MainLayerP alloc() { return MainLayerP(new MainLayer); } - void pushed(Mf::Engine& engine); + void pushedOntoEngine(); + void update(Mf::Scalar t, Mf::Scalar dt); void draw(Mf::Scalar alpha) const; bool handleEvent(const Mf::Event& event); - void quit(); - private: /** * Set OpenGL to a state we can know and depend on. */ void setupGL(); - void contextRecreated(const Mf::Notification* note); + void contextRecreated(); - Mf::Engine* mEngine; + Mf::Dispatch::Handler mDispatchHandler; };