X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FYoinkApp.hh;h=055a64c25ea97415d6a2f47bb844ae3188b46164;hp=69b53d92e6eb93f98809c5d05127660114b036ac;hb=7d15b919681bb9ec0088b4b27c6abf62d6dfb9b1;hpb=0fffd0097d7b496454413e57b398c903ecc252e4 diff --git a/src/YoinkApp.hh b/src/YoinkApp.hh index 69b53d9..055a64c 100644 --- a/src/YoinkApp.hh +++ b/src/YoinkApp.hh @@ -29,12 +29,24 @@ #ifndef _YOINKAPP_HH_ #define _YOINKAPP_HH_ +/** + * @file YoinkApp.hh + * This is the big enchilada. + */ + #include #include +#include "dispatcher.hh" +#include "math.hh" +#include "interpolator.hh" #include "engine.hh" -#include "texture.hh" +#include "Character.hh" + +#include "TilemapFont.hh" + +#include "scene.hh" class YoinkApp : public dc::engine @@ -44,16 +56,33 @@ public: ~YoinkApp(); private: - void update(double t, double dt); - void draw(double alpha); - void dispatchEvent(const SDL_Event& event); + void update(dc::scalar t, dc::scalar dt); + void draw(dc::scalar alpha); + void handleEvent(const dc::event& e); + + /** + * Set OpenGL to a state we can know and depend on. + */ + void setupGL(); + void contextRecreated(const dc::notification& note); - dc::texture* heroineTexture; + //dc::animation* heroAnimation; + //dc::tilemap* heroineTexture; + Character* someChar; + //dc::binomial_interpolator interp; + dc::cerpv2 interp; + dc::lerps fadeIn; - double state; - double prevstate; + dc::scene* testScene; + + TilemapFont *font; + + dc::scalar state; + dc::scalar prevstate; }; #endif // _YOINKAPP_HH_ +/** vim: set ts=4 sw=4 tw=80: *************************************************/ +