summaryrefslogtreecommitdiff
path: root/futuregael/src/ofApp.h
diff options
context:
space:
mode:
authorTim Redfern <redfernt@gmail.com>2023-09-15 19:58:21 +0100
committerTim Redfern <redfernt@gmail.com>2023-09-15 19:58:21 +0100
commitce815a746a91d0ac0fd7a883223fefe5cc07b339 (patch)
tree2a380d635a28384e859bd37004ee6d83022a0a95 /futuregael/src/ofApp.h
parent4d3b988b772882eca327e9754998913ed021c388 (diff)
parent3b389388ae45857caa42130f8acf0aefedd12360 (diff)
Merge Sranch 'master' of ssh://192.168.15.218/Users/tim/Backup/git/raverony
Diffstat (limited to 'futuregael/src/ofApp.h')
-rw-r--r--futuregael/src/ofApp.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/futuregael/src/ofApp.h b/futuregael/src/ofApp.h
new file mode 100644
index 0000000..26987e1
--- /dev/null
+++ b/futuregael/src/ofApp.h
@@ -0,0 +1,39 @@
+#pragma once
+
+#include "ofMain.h"
+#
+#include "ofxCsv.h"
+
+class scriptLine{
+public:
+ scriptLine(string audiofile,string palette,string words){
+ audio.load(audiofile);
+ text=words;
+ }
+ vector<ofColor> palette;
+ string text;
+ ofSoundPlayer audio;
+};
+
+class ofApp : public ofBaseApp{
+
+ public:
+ void setup();
+ void update();
+ void draw();
+ void exit();
+ void keyPressed(ofKeyEventArgs &keyargs);
+ void keyReleased(int key);
+ void mouseMoved(int x, int y );
+ void mouseDragged(int x, int y, int button);
+ void mousePressed(int x, int y, int button);
+ void mouseReleased(int x, int y, int button);
+ void mouseEntered(int x, int y);
+ void mouseExited(int x, int y);
+ void windowResized(int w, int h);
+ void dragEvent(ofDragInfo dragInfo);
+
+ ofxCsv csv;
+
+ vector<scriptLine> script;
+};