X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMain.hh;h=088bd3c1b67e393303165f1a774e6370e84d57be;hp=0a3c616a685a4774a4cde93561ad0e4741a2b134;hb=af88821a172c4dfd138b91b2a5148ae50b502fa2;hpb=6b0a0d0efafe34d48ab344fca3b479553bd4e62c diff --git a/src/Main.hh b/src/Main.hh index 0a3c616..088bd3c 100644 --- a/src/Main.hh +++ b/src/Main.hh @@ -22,45 +22,43 @@ #include +#include #include #include -#include +#include +#include "yoink.hh" -namespace moof -{ - class settings; - class view; -} - - -class Main; -typedef boost::shared_ptr
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 video_reloaded_; + moof::timer hotload_timer_; - moof::dispatcher::handle mNewContextDispatch; + ::yoink yoink; };