/*] Copyright (c) 2009-2011, Charles McGarvey [***************************** **] All rights reserved. * * 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 #include #include #include #include #include #include #include "yoink.hh" /** * \file Main.hh * This is where all the fun begins. */ class Main : public moof::application { public: explicit Main(moof::settings& settings); void update(moof::scalar t, moof::scalar dt); void draw(moof::scalar alpha) const; void handle_event(const moof::event& event); private: /** * Set OpenGL to a state we can know and depend on. */ static void setup_opengl(); moof::dispatcher::handle video_reloaded_; moof::timer hotload_timer_; ::yoink yoink; }; #endif // _MAIN_HH_