]> Dogcows Code - chaz/yoink/blobdiff - src/Main.hh
sockets documentation and cleanup
[chaz/yoink] / src / Main.hh
index 91a4b4c3d2701922db35fde2f1e01fa29d81e70e..b6a6684aa46ffa4db559b1aaeefe96a427ccefa8 100644 (file)
 #include <boost/shared_ptr.hpp>
 
 #include <Moof/Dispatch.hh>
-#include <Moof/Layer.hh>
 #include <Moof/Math.hh>
+#include <Moof/View.hh>
+
+
+namespace Mf
+{
+       class Settings;
+       class View;
+}
 
 
 class Main;
 typedef boost::shared_ptr<Main> MainP;
 
-class Main : public Mf::Layer
+class Main : public Mf::View
 {
 public:
 
-       Main();
-
-       static MainP alloc()
-       {
-               return MainP(new Main);
-       }
-
-       void addedToCore();
+       Main(Mf::Settings& settings, Mf::Video& video);
 
        void update(Mf::Scalar t, Mf::Scalar dt);
        void draw(Mf::Scalar alpha) const;
@@ -59,9 +59,8 @@ private:
         * Set OpenGL to a state we can know and depend on.
         */
        static void setupGL();
-       static void contextCreated();
 
-       Mf::Dispatch::Handler   mDispatchHandler;
+       Mf::Dispatch::Handle mNewContextDispatch;
 };
 
 
This page took 0.017605 seconds and 4 git commands to generate.