X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMainLayer.hh;h=97385830a326259ea64e5b6534530ff2579dd0ed;hp=db529a12d5061b5b4b5e4ff04957c01514bd9416;hb=cfe38a72ab859538db6269bc9b97f55e8f1f8709;hpb=892da43bf5796e7c5f593a6d0f53bd797a36bd3e diff --git a/src/MainLayer.hh b/src/MainLayer.hh index db529a1..9738583 100644 --- a/src/MainLayer.hh +++ b/src/MainLayer.hh @@ -47,8 +47,10 @@ class MainLayer; typedef boost::shared_ptr MainLayerP; -struct MainLayer : public Mf::Layer +class MainLayer : public Mf::Layer { +public: + MainLayer(); ~MainLayer(); @@ -62,6 +64,8 @@ struct MainLayer : public Mf::Layer void draw(Mf::Scalar alpha) const; bool handleEvent(const Mf::Event& event); + void quit(); + private: /** @@ -70,7 +74,7 @@ private: void setupGL(); void contextRecreated(const Mf::Notification* note); - Mf::Engine* engine; + Mf::Engine* mEngine; };