]> Dogcows Code - chaz/yoink/blobdiff - src/Main.hh
initial runloop implementation
[chaz/yoink] / src / Main.hh
index 0a3c616a685a4774a4cde93561ad0e4741a2b134..47163d11c5bd14232e2c3340e00a7d7c77bc4118 100644 (file)
 
 #include <boost/shared_ptr.hpp>
 
+#include <moof/application.hh>
 #include <moof/dispatcher.hh>
 #include <moof/math.hh>
-#include <moof/view.hh>
+#include <moof/timer.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 getSearchPath();
-       static std::string getConfigPath();
+       static std::string search_paths();
+       static std::string config_paths();
 
-       static void printUsage();
-       static void printInfo(int argc, char* argv[]);
+       static void print_usage();
+       static void print_info(int argc, char* argv[]);
 
 private:
 
        /**
         * Set OpenGL to a state we can know and depend on.
         */
-       static void setupGL();
+       static void setup_opengl();
+
+       static void print_option(const std::string& option, bool enabled);
 
-       moof::dispatcher::handle mNewContextDispatch;
+       moof::dispatcher::handle        video_reloaded_;
+       moof::timer                                     hotload_timer_;
 };
 
 
This page took 0.018195 seconds and 4 git commands to generate.