diff options
Diffstat (limited to 'src/testApp.h')
| -rwxr-xr-x | src/testApp.h | 96 |
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(); +}; + + |
