summaryrefslogtreecommitdiff
path: root/vfg/src/Puppet.h
diff options
context:
space:
mode:
Diffstat (limited to 'vfg/src/Puppet.h')
-rwxr-xr-xvfg/src/Puppet.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/vfg/src/Puppet.h b/vfg/src/Puppet.h
new file mode 100755
index 0000000..91f32fd
--- /dev/null
+++ b/vfg/src/Puppet.h
@@ -0,0 +1,29 @@
+#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 draw(float x, float y);
+ bool isPlaying();
+ protected:
+ private:
+ map<string,ofxSprite> clips;
+ deque<string> playlist;
+};
+
+#endif // PUPPET_H