#ifndef _YOINKAPP_HH_
#define _YOINKAPP_HH_
+/**
+ * @file YoinkApp.hh
+ * This is the big enchilada.
+ */
+
#include <iostream>
#include <string>
-#include "engine.hh"
+#include <Moof/Camera.hh>
+#include <Moof/Dispatcher.hh>
+#include <Moof/Engine.hh>
+#include <Moof/Interpolator.hh>
+#include <Moof/Math.hh>
+#include <Moof/Scene.hh>
-#include "texture.hh"
+#include "Character.hh"
+#include "TilemapFont.hh"
-class YoinkApp : public dc::engine
+class YoinkApp : public Mf::Engine
{
public:
YoinkApp(int argc, char* argv[]);
~YoinkApp();
private:
- void update(double t, double dt);
- void draw(double alpha);
- void dispatchEvent(const SDL_Event& event);
+ void update(Mf::Scalar t, Mf::Scalar dt);
+ void draw(Mf::Scalar alpha);
+ void handleEvent(const Mf::Event& event);
+
+ /**
+ * Set OpenGL to a state we can know and depend on.
+ */
+ void setupGL();
+ void contextRecreated(const Mf::Notification& note);
+
+ Character* someChar;
+ TilemapFont *font;
- dc::texture* heroineTexture;
+ Mf::Cerpv2 interp;
+ Mf::Lerps fadeIn;
- double state;
- double prevstate;
+ Mf::Camera camera;
+ Mf::Scene* testScene;
+
+ Mf::Scalar x, y, z;
+
+ Mf::Scalar state;
+ Mf::Scalar prevstate;
};
#endif // _YOINKAPP_HH_
+/** vim: set ts=4 sw=4 tw=80: *************************************************/
+