]> Dogcows Code - chaz/yoink/blob - src/client.hh
fixed documentation about where to find licenses
[chaz/yoink] / src / client.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 #include <iostream>
14 #include <string>
15
16 #include <boost/shared_ptr.hpp>
17
18 #include <moof/application.hh>
19 #include <moof/dispatcher.hh>
20 #include <moof/math.hh>
21 #include <moof/timer.hh>
22
23 #include "yoink.hh"
24
25
26 /**
27 * \file Main.hh
28 * This is where all the fun begins.
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 private:
42
43 /**
44 * Set OpenGL to a state we can know and depend on.
45 */
46 static void setup_opengl();
47
48 moof::dispatcher::handle video_reloaded_;
49 moof::timer hotload_timer_;
50
51 ::yoink yoink;
52 };
53
54
55 #endif // _MAIN_HH_
56
This page took 0.032754 seconds and 5 git commands to generate.