]> Dogcows Code - chaz/yoink/blob - src/Main.hh
088bd3c1b67e393303165f1a774e6370e84d57be
[chaz/yoink] / src / Main.hh
1
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
4 *
5 * vi:ts=4 sw=4 tw=75
6 *
7 * Distributable under the terms and conditions of the 2-clause BSD license;
8 * see the file COPYING for a complete text of the license.
9 *
10 **************************************************************************/
11
12 #ifndef _MAIN_HH_
13 #define _MAIN_HH_
14
15 /**
16 * \file Main.hh
17 * This is where all the fun begins.
18 */
19
20 #include <iostream>
21 #include <string>
22
23 #include <boost/shared_ptr.hpp>
24
25 #include <moof/application.hh>
26 #include <moof/dispatcher.hh>
27 #include <moof/math.hh>
28 #include <moof/timer.hh>
29
30 #include "yoink.hh"
31
32
33 class Main : public moof::application
34 {
35 public:
36
37 Main(moof::settings& settings);
38
39 void update(moof::scalar t, moof::scalar dt);
40 void draw(moof::scalar alpha) const;
41 void handle_event(const moof::event& event);
42
43 static std::string search_paths();
44 static std::string config_paths();
45
46 static void print_usage();
47 static void print_info(int argc, char* argv[]);
48
49 private:
50
51 /**
52 * Set OpenGL to a state we can know and depend on.
53 */
54 static void setup_opengl();
55
56 static void print_option(const std::string& option, bool enabled);
57
58 moof::dispatcher::handle video_reloaded_;
59 moof::timer hotload_timer_;
60
61 ::yoink yoink;
62 };
63
64
65 #endif // _MAIN_HH_
66
This page took 0.03419 seconds and 3 git commands to generate.