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