]>
Dogcows Code - chaz/yoink/blob - src/Main.hh
2 /*] Copyright (c) 2009-2010, Charles McGarvey [**************************
3 **] All rights reserved.
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.
10 **************************************************************************/
17 * This is where all the fun begins.
23 #include <boost/shared_ptr.hpp>
25 #include <moof/application.hh>
26 #include <moof/dispatcher.hh>
27 #include <moof/math.hh>
28 #include <moof/timer.hh>
33 class Main
: public moof::application
37 Main(moof::settings
& settings
);
39 void update(moof::scalar t
, moof::scalar dt
);
40 void draw(moof::scalar alpha
) const;
41 void handle_event(const moof::event
& event
);
43 static std::string
search_paths();
44 static std::string
config_paths();
46 static void print_usage();
47 static void print_info(int argc
, char* argv
[]);
52 * Set OpenGL to a state we can know and depend on.
54 static void setup_opengl();
56 static void print_option(const std::string
& option
, bool enabled
);
58 moof::dispatcher::handle video_reloaded_
;
59 moof::timer hotload_timer_
;
This page took 0.030896 seconds and 4 git commands to generate.