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/Dispatch.hh>
26 #include <Moof/Math.hh>
27 #include <Moof/View.hh>
36 typedef boost::shared_ptr
<Main
> MainP
;
38 class Main
: public Mf::View
42 Main(Mf::Settings
& settings
, Mf::Video
& video
);
44 void update(Mf::Scalar t
, Mf::Scalar dt
);
45 void draw(Mf::Scalar alpha
) const;
46 bool handleEvent(const Mf::Event
& event
);
48 static std::string
getSearchPath();
49 static std::string
getConfigPath();
51 static void printUsage();
52 static void printInfo(int argc
, char* argv
[]);
57 * Set OpenGL to a state we can know and depend on.
59 static void setupGL();
61 Mf::Dispatch::Handle mNewContextDispatch
;