]> Dogcows Code - chaz/yoink/blobdiff - src/Main.hh
remove some unused stlplus modules
[chaz/yoink] / src / Main.hh
index 4532e41ea2e3b4a409513fea1b30df1d9ab76a64..65ad901ccf700a8bb1d1a59cfae0609e27e50f71 100644 (file)
@@ -1,13 +1,11 @@
 
-/*]  Copyright (c) 2009-2010, Charles McGarvey  [**************************
+/*]  Copyright (c) 2009-2011, Charles McGarvey  [*****************************
 **]  All rights reserved.
 *
-* vi:ts=4 sw=4 tw=75
-*
 * Distributable under the terms and conditions of the 2-clause BSD license;
 * see the file COPYING for a complete text of the license.
 *
-**************************************************************************/
+*****************************************************************************/
 
 #ifndef _MAIN_HH_
 #define _MAIN_HH_
 
 #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);
+       explicit 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();
@@ -61,10 +51,10 @@ private:
         */
        static void setup_opengl();
 
-       static void print_option(const std::string& option, bool enabled);
-
        moof::dispatcher::handle        video_reloaded_;
        moof::timer                                     hotload_timer_;
+
+       ::yoink yoink;
 };
 
 
This page took 0.0194 seconds and 4 git commands to generate.