#include <boost/shared_ptr.hpp>
+#include <Moof/Dispatch.hh>
#include <Moof/Engine.hh>
#include <Moof/Layer.hh>
#include <Moof/Math.hh>
public:
MainLayer();
- ~MainLayer();
static MainLayerP alloc()
{
void pushed(Mf::Engine& engine);
- void draw(Mf::Scalar alpha) const;
- bool handleEvent(const Mf::Event& event);
-
- void quit();
+ void update(Mf::Engine& engine, Mf::Scalar t, Mf::Scalar dt);
+ void draw(Mf::Engine& engine, Mf::Scalar alpha) const;
+ bool handleEvent(Mf::Engine& engine, const Mf::Event& event);
private:
* Set OpenGL to a state we can know and depend on.
*/
void setupGL();
- void contextRecreated(const Mf::Notification* note);
+ void contextRecreated();
- Mf::Engine* mEngine;
+ Mf::Dispatch::Handler mDispatchHandler;
};