]> Dogcows Code - chaz/yoink/blobdiff - src/Main.hh
initial runloop implementation
[chaz/yoink] / src / Main.hh
index 4532e41ea2e3b4a409513fea1b30df1d9ab76a64..47163d11c5bd14232e2c3340e00a7d7c77bc4118 100644 (file)
 
 #include <boost/shared_ptr.hpp>
 
+#include <moof/application.hh>
 #include <moof/dispatcher.hh>
 #include <moof/math.hh>
 #include <moof/timer.hh>
-#include <moof/view.hh>
 
 
-namespace moof
-{
-       class settings;
-       class view;
-}
-
-
-class Main;
-typedef boost::shared_ptr<Main> MainP;
-
-class Main : public moof::view
+class Main : public moof::application
 {
 public:
 
-       Main(moof::settings& settings, moof::video& video);
+       Main(moof::settings& settings);
 
        void update(moof::scalar t, moof::scalar dt);
        void draw(moof::scalar alpha) const;
-       bool handle_event(const moof::event& event);
+       void handle_event(const moof::event& event);
 
        static std::string search_paths();
        static std::string config_paths();
This page took 0.018098 seconds and 4 git commands to generate.