summaryrefslogtreecommitdiff
path: root/vfg/src/Puppet.h
diff options
context:
space:
mode:
authorTim Redfern <tim@gray.(none)>2012-11-19 21:05:27 +0000
committerTim Redfern <tim@gray.(none)>2012-11-19 21:05:27 +0000
commit891b71c261a4571e0e0ba0e824e1bdb2478e0c65 (patch)
tree2005ff07fb391fcead17d3a0679cc3f82d0ff4cd /vfg/src/Puppet.h
parent1b56a18fc25f86591b410d32ceb19faea6fc74ea (diff)
flake animations
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