*******************************************************************************/
-#ifndef _MAINLAYER_HH_
-#define _MAINLAYER_HH_
+#ifndef _YOINKAPP_HH_
+#define _YOINKAPP_HH_
/**
- * @file MainLayer.hh
+ * @file Main.hh
* This is where all the fun begins.
*/
#include <boost/shared_ptr.hpp>
#include <Moof/Dispatch.hh>
-#include <Moof/Engine.hh>
#include <Moof/Layer.hh>
#include <Moof/Math.hh>
-class MainLayer;
-typedef boost::shared_ptr<MainLayer> MainLayerP;
+class Main;
+typedef boost::shared_ptr<Main> MainP;
-class MainLayer : public Mf::Layer
+class Main : public Mf::Layer
{
public:
- MainLayer();
+ Main();
- static MainLayerP alloc()
+ static MainP alloc()
{
- return MainLayerP(new MainLayer);
+ return MainP(new Main);
}
- void pushedOntoEngine();
+ void addedToCore();
void update(Mf::Scalar t, Mf::Scalar dt);
void draw(Mf::Scalar alpha) const;
bool handleEvent(const Mf::Event& event);
+ static std::string getSearchPath();
+ static std::string getConfigPath();
+
+ static void printUsage();
+ static void printInfo(int argc, char* argv[]);
+
private:
/**
* Set OpenGL to a state we can know and depend on.
*/
- void setupGL();
- void contextRecreated();
+ static void setupGL();
+ static void contextRecreated();
Mf::Dispatch::Handler mDispatchHandler;
};
-#endif // _MAINLAYER_HH_
+#endif // _YOINKAPP_HH_
/** vim: set ts=4 sw=4 tw=80: *************************************************/