#ifndef PUPPET_H #define PUPPET_H #include "ofMain.h" #include "ofxSprite.h" #include "ofxXmlSettings.h" /* "base" clip will be drawn unless another clip is playing TODO: make resolution independent */ class Puppet { public: Puppet(); virtual ~Puppet(); void load(string filename); void play(string clip); void playNow(string clip); void draw(float x, float y); bool isPlaying(); protected: private: map clips; deque playlist; }; #endif // PUPPET_H