X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FYoinkApp.hh;h=66406d2d4447c0979ddb0ef94f1bced85da45569;hp=475dca35cd6d6259bacad22e4d8eb798976e5df9;hb=29e3d45f7bbbf31eadf793c41ff2b3d9c47b7539;hpb=87bc17e55b0c1dc73ecc66df856d3f08fd7a7724 diff --git a/src/YoinkApp.hh b/src/YoinkApp.hh index 475dca3..66406d2 100644 --- a/src/YoinkApp.hh +++ b/src/YoinkApp.hh @@ -37,50 +37,47 @@ #include #include -#include "dispatcher.hh" -#include "math.hh" -#include "interpolator.hh" -#include "engine.hh" +#include +#include +#include +#include +#include +#include #include "Character.hh" - #include "TilemapFont.hh" -#include "scene.hh" - -class YoinkApp : public dc::engine +class YoinkApp : public Mf::Engine { public: YoinkApp(int argc, char* argv[]); ~YoinkApp(); private: - void update(dc::scalar t, dc::scalar dt); - void draw(dc::scalar alpha); - void handleEvent(const dc::event& e); + 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 dc::notification& note); + void contextRecreated(const Mf::Notification& note); - //dc::animation* heroAnimation; - //dc::tilemap* heroineTexture; Character* someChar; - //dc::binomial_interpolator interp; - dc::cerpv2 interp; - dc::lerps fadeIn; + TilemapFont *font; - dc::scene* testScene; + Mf::Cerpv2 interp; + Mf::Lerps fadeIn; - TilemapFont *font; + Mf::Camera camera; + Mf::Scene* testScene; - dc::scalar x, y, z; + Mf::Scalar x, y, z; - dc::scalar state; - dc::scalar prevstate; + Mf::Scalar state; + Mf::Scalar prevstate; };