X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMain.hh;fp=src%2FMain.hh;h=0000000000000000000000000000000000000000;hp=65ad901ccf700a8bb1d1a59cfae0609e27e50f71;hb=b7bb13579fa86907a8c221a9dc6285f26942ad44;hpb=62f3ceaff75a6b08cb1aec9a465773bb81a2d79d diff --git a/src/Main.hh b/src/Main.hh deleted file mode 100644 index 65ad901..0000000 --- a/src/Main.hh +++ /dev/null @@ -1,62 +0,0 @@ - -/*] 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_ - -/** - * \file Main.hh - * This is where all the fun begins. - */ - -#include -#include - -#include - -#include -#include -#include -#include - -#include "yoink.hh" - - -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); - - static std::string search_paths(); - static std::string config_paths(); - - 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 setup_opengl(); - - moof::dispatcher::handle video_reloaded_; - moof::timer hotload_timer_; - - ::yoink yoink; -}; - - -#endif // _MAIN_HH_ -