Quelcode des Partikelsystems Boden
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "particle.h"
  4. #include "ofxOsc.h"
  5. #include "ofxGui.h"
  6. //OSC Reciever PORT & HOST IP
  7. #define PORT 12345
  8. #define HOST "172.20.10.2"
  9. class ofApp : public ofBaseApp {
  10. public:
  11. void setup();
  12. void update();
  13. void draw();
  14. void keyPressed(int key);
  15. void keyReleased(int key);
  16. void mouseMoved(int x, int y);
  17. void mousePressed(int x, int y, int button);
  18. void mouseReleased(int x, int y, int button);
  19. private:
  20. // OSC Receiver
  21. string oscMsg;
  22. ofxOscReceiver receiver;
  23. float timeSent, timeReceived;
  24. int nBlobs;
  25. int blobCount;
  26. float xOfCentroid;
  27. float yOfCentroid;
  28. vector<thParticle*> system;
  29. vector<Attractor*> attractors;
  30. float birthCount;
  31. double time;
  32. };