X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FYoinkApp.hh;h=66406d2d4447c0979ddb0ef94f1bced85da45569;hp=69b53d92e6eb93f98809c5d05127660114b036ac;hb=29e3d45f7bbbf31eadf793c41ff2b3d9c47b7539;hpb=79b5f738f2e38acb60cda7e09f54802933a17105 diff --git a/src/YoinkApp.hh b/src/YoinkApp.hh index 69b53d9..66406d2 100644 --- a/src/YoinkApp.hh +++ b/src/YoinkApp.hh @@ -29,31 +29,59 @@ #ifndef _YOINKAPP_HH_ #define _YOINKAPP_HH_ +/** + * @file YoinkApp.hh + * This is the big enchilada. + */ + #include #include -#include "engine.hh" +#include +#include +#include +#include +#include +#include -#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: *************************************************/ +