]>
Dogcows Code - chaz/yoink/blob - src/Main.hh
65ad901ccf700a8bb1d1a59cfae0609e27e50f71
2 /*] Copyright (c) 2009-2011, Charles McGarvey [*****************************
3 **] All rights reserved.
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.
8 *****************************************************************************/
15 * This is where all the fun begins.
21 #include <boost/shared_ptr.hpp>
23 #include <moof/application.hh>
24 #include <moof/dispatcher.hh>
25 #include <moof/math.hh>
26 #include <moof/timer.hh>
31 class Main
: public moof::application
35 explicit Main(moof::settings
& settings
);
37 void update(moof::scalar t
, moof::scalar dt
);
38 void draw(moof::scalar alpha
) const;
39 void handle_event(const moof::event
& event
);
41 static std::string
search_paths();
42 static std::string
config_paths();
44 static void print_usage();
45 static void print_info(int argc
, char* argv
[]);
50 * Set OpenGL to a state we can know and depend on.
52 static void setup_opengl();
54 moof::dispatcher::handle video_reloaded_
;
55 moof::timer hotload_timer_
;
This page took 0.040039 seconds and 3 git commands to generate.