]> Dogcows Code - chaz/yoink/blobdiff - src/MainLayer.hh
removed alut dependency
[chaz/yoink] / src / MainLayer.hh
index db529a12d5061b5b4b5e4ff04957c01514bd9416..731adef4e2239018d91708afa184f334aed47831 100644 (file)
@@ -39,6 +39,7 @@
 
 #include <boost/shared_ptr.hpp>
 
+#include <Moof/Dispatch.hh>
 #include <Moof/Engine.hh>
 #include <Moof/Layer.hh>
 #include <Moof/Math.hh>
 class MainLayer;
 typedef boost::shared_ptr<MainLayer> MainLayerP;
 
-struct MainLayer : public Mf::Layer
+class MainLayer : public Mf::Layer
 {
+public:
+
        MainLayer();
-       ~MainLayer();
 
        static MainLayerP alloc()
        {
@@ -59,8 +61,9 @@ struct MainLayer : public Mf::Layer
 
        void pushed(Mf::Engine& engine);
 
-       void draw(Mf::Scalar alpha) const;
-       bool handleEvent(const Mf::Event& event);
+       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:
 
@@ -68,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* engine;
+       Mf::Dispatch::Handler   mDispatchHandler;
 };
 
 
This page took 0.020353 seconds and 4 git commands to generate.