X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FYoinkApp.hh;h=950d31983002443dd83abe9c3c70d4a57321f1b8;hp=69b53d92e6eb93f98809c5d05127660114b036ac;hb=7e898e8ec0ff716e2fc722b883a626a6c346f107;hpb=79b5f738f2e38acb60cda7e09f54802933a17105 diff --git a/src/YoinkApp.hh b/src/YoinkApp.hh index 69b53d9..950d319 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 -#include "texture.hh" +#include "Character.hh" +#include "Hud.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); + + Mf::Sound music; - dc::texture* heroineTexture; + CharacterP heroine; + Mf::Sound punchSound; - double state; - double prevstate; + Mf::PolynomialInterpolator<5> interp; + Mf::Lerp fadeIn; + + Mf::Camera camera; + Mf::OctreeP octree; + + Hud hud; }; #endif // _YOINKAPP_HH_ +/** vim: set ts=4 sw=4 tw=80: *************************************************/ +