|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- #pragma once
-
- #include "ofMain.h"
- #include "particle.h"
- #include "ofxOsc.h"
- #include "ofxGui.h"
-
- //OSC Reciever PORT & HOST IP
- #define PORT 12345
- #define HOST "172.20.10.2"
-
- class ofApp : public ofBaseApp {
-
- public:
- void setup();
- void update();
- void draw();
- void reset();
-
- void keyPressed(int key);
- void keyReleased(int key);
- void mouseMoved(int x, int y);
- void mousePressed(int x, int y, int button);
- void mouseReleased(int x, int y, int button);
-
- ofxXmlSettings default;
- ofxXmlSettings attractor;
- ofxXmlSettings rain;
- ofxXmlSettings brunig;
-
- private:
-
- // OSC Receiver
-
- particleMode currentMode;
- string currentModeDisp;
-
- string oscMsg;
- ofxOscReceiver receiver;
- float timeSent, timeReceived;
-
- int nBlobs;
- int blobCount;
- int num;
- float history;
- ofFbo fbo;
-
- float xOfCentroid;
- float yOfCentroid;
-
- vector<Particle*> system;
- vector<Particle>sys;
- vector<Attractor*> attractors;
-
- float birthCount;
- double time;
-
- bool varSystem;
- bool trails;
- };
|