summaryrefslogtreecommitdiff
path: root/src/testApp.h
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-28 01:36:25 +0100
committerComment <tim@gray.(none)>2013-05-28 01:36:25 +0100
commit040eaa3babb648bea889f8c152b522a86e8c39d5 (patch)
treede9209f404b899828b3dda819152e307f3d09907 /src/testApp.h
initial commit
Diffstat (limited to 'src/testApp.h')
-rwxr-xr-xsrc/testApp.h96
1 files changed, 96 insertions, 0 deletions
diff --git a/src/testApp.h b/src/testApp.h
new file mode 100755
index 0000000..cc46dfc
--- /dev/null
+++ b/src/testApp.h
@@ -0,0 +1,96 @@
+#pragma once
+
+#include "ofMain.h"
+
+#include "ofxFensterManager.h"
+#include "ofxGui.h"
+
+#include "viewport.h"
+
+
+
+class previewWindow;
+class guiWindow;
+
+//#define GRAB_TEXTURE
+
+class testApp : public ofxFensterListener {
+
+ public:
+
+ void setup();
+ void update();
+ void draw();
+
+ void keyPressed(int key, ofxFenster* win);
+ void keyPressed(int key);
+ 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 windowResized(int w, int h);
+ void gotMessage(ofMessage msg);
+
+ void mousePressedEvent(ofMouseEventArgs &args);
+ void keyPressedEvent(ofKeyEventArgs &args);
+ void windowEvent(ofResizeEventArgs &args);
+
+ void toggleFPS();
+ bool showFPS;
+
+ bool fullscreenoutput;
+
+ previewWindow *prevWin;
+ guiWindow *guiWin;
+ ofxFenster* win;
+
+
+ ofxPanel gui;
+
+ ofxButton create_1;
+ ofxButton create_2;
+ ofxButton create_4;
+ ofxButton create_8;
+
+ ofxToggle dotrans;
+
+ ofxIntSlider bS;
+ ofxParameter<int> brightSlider;
+
+ ofxToggle fillgrey;
+
+ ofxFloatSlider gF;
+ ofxParameter<float> greyFreq;
+
+ void create1port(bool & pressed);
+ void create2port(bool & pressed);
+ void create4port(bool & pressed);
+ void create8port(bool & pressed);
+ void createports(int num);
+
+ vector<viewport> viewports;
+ vpcontrol control;
+ int windowsize;
+};
+
+
+class previewWindow: public ofxFensterListener{
+public:
+ ~previewWindow();
+ testApp *parent;
+ void setup();
+ void setParent(testApp *p);
+ void draw();
+};
+
+class guiWindow: public ofxFensterListener{
+public:
+ ~guiWindow();
+ testApp *parent;
+ void setup();
+ void setParent(testApp *p);
+ void draw();
+};
+
+