diff options
| author | Tim Redfern <tim@getdrop.com> | 2018-02-02 18:12:41 +0000 |
|---|---|---|
| committer | Tim Redfern <tim@getdrop.com> | 2018-02-02 18:12:41 +0000 |
| commit | 645e8c6007bdacaf2f37019d871ce9d3281a280d (patch) | |
| tree | dea64e9e78c9013f732edd2ce3604f31d694e8f7 /gui/src/ofApp.h | |
| parent | 7c50a03c5857310aa383b1ba89a18792c96724b1 (diff) | |
many changes
Diffstat (limited to 'gui/src/ofApp.h')
| -rw-r--r-- | gui/src/ofApp.h | 41 |
1 files changed, 34 insertions, 7 deletions
diff --git a/gui/src/ofApp.h b/gui/src/ofApp.h index d28f393..3f5acc1 100644 --- a/gui/src/ofApp.h +++ b/gui/src/ofApp.h @@ -2,19 +2,17 @@ #include "ofMain.h" #include "lineTransformer.h" +#include "ofxNDI.h" +#include "ofxGui.h" class ofApp: public ofBaseApp { public: void setup(); void update(); - void updateGui(ofEventArgs & args); void draw(); void exit(); - void drawGui(ofEventArgs & args); - void guiKeyPressed(ofKeyEventArgs & args); - void keyPressed(ofKeyEventArgs &keyargs); void keyReleased(int key); void mouseMoved(int x, int y ); @@ -25,14 +23,43 @@ class ofApp: public ofBaseApp { void mouseExited(int x, int y); void windowResized(int w, int h); void dragEvent(ofDragInfo dragInfo); - - void guiWindowResized(ofResizeEventArgs &resizeargs); + + void updateOutput(ofEventArgs & args); + void drawOutput(ofEventArgs & args); + void outputKeyPressed(ofKeyEventArgs & args); + void outputMouseDragged(ofMouseEventArgs & args); + void outputMousePressed(ofMouseEventArgs & args); + void outputMouseReleased(ofMouseEventArgs & args); + void outputWindowResized(ofResizeEventArgs &resizeargs); bool commandPressed; - glm::vec2 warpframe[4]; int select_warpframe; bool bDrawFrame; + ofxPanel gui; + + //======================================== //ofxNDI + + ofxNDIreceiver ndiReceiver; + ofImage ndiImage; + char senderName[256]; + int nSenders; + unsigned int senderWidth; + unsigned int senderHeight; + bool bNDIreceiver; + + // For received frame fps calculations + double startTime, lastTime, frameTime, frameRate, fps; + + //====== gui + + ofxIntSlider NDIthreshold; + ofxIntSlider NDIsimplify; + ofxToggle NDIuseColour; + ofxIntSlider NDIcolR; + ofxIntSlider NDIcolG; + ofxIntSlider NDIcolB; + }; |
