X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMainLayer.hh;h=731adef4e2239018d91708afa184f334aed47831;hp=97385830a326259ea64e5b6534530ff2579dd0ed;hb=e495074443d9fd7bc16137084cf9de3d031b75c4;hpb=c9e20ac06383b20ceb5404c9237e319c2e90d157 diff --git a/src/MainLayer.hh b/src/MainLayer.hh index 9738583..731adef 100644 --- a/src/MainLayer.hh +++ b/src/MainLayer.hh @@ -39,6 +39,7 @@ #include +#include #include #include #include @@ -52,7 +53,6 @@ class MainLayer : public Mf::Layer public: MainLayer(); - ~MainLayer(); static MainLayerP alloc() { @@ -61,10 +61,9 @@ public: void pushed(Mf::Engine& engine); - void draw(Mf::Scalar alpha) const; - bool handleEvent(const Mf::Event& event); - - void quit(); + void update(Mf::Engine& engine, Mf::Scalar t, Mf::Scalar dt); + void draw(Mf::Engine& engine, Mf::Scalar alpha) const; + bool handleEvent(Mf::Engine& engine, const Mf::Event& event); private: @@ -72,9 +71,9 @@ 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; };