#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;
-}
+#include "yoink.hh"
-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();
moof::dispatcher::handle video_reloaded_;
moof::timer hotload_timer_;
+
+ ::yoink yoink;
};