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/dispatcher.hh>
26 #include <moof/math.hh>
27 #include <moof/view.hh>
38 typedef boost::shared_ptr
<Main
> MainP
;
40 class Main
: public moof::view
44 Main(moof::settings
& settings
, moof::video
& video
);
46 void update(moof::scalar t
, moof::scalar dt
);
47 void draw(moof::scalar alpha
) const;
48 bool handle_event(const moof::event
& event
);
50 static std::string
getSearchPath();
51 static std::string
getConfigPath();
53 static void printUsage();
54 static void printInfo(int argc
, char* argv
[]);
59 * Set OpenGL to a state we can know and depend on.
61 static void setupGL();
63 moof::dispatcher::handle mNewContextDispatch
;