61 lines
973 B
C
61 lines
973 B
C
|
#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;
|
||
|
};
|