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.

ofApp.h 973B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 reset();
  15. void keyPressed(int key);
  16. void keyReleased(int key);
  17. void mouseMoved(int x, int y);
  18. void mousePressed(int x, int y, int button);
  19. void mouseReleased(int x, int y, int button);
  20. ofxXmlSettings default;
  21. ofxXmlSettings attractor;
  22. ofxXmlSettings rain;
  23. ofxXmlSettings brunig;
  24. private:
  25. // OSC Receiver
  26. particleMode currentMode;
  27. string currentModeDisp;
  28. string oscMsg;
  29. ofxOscReceiver receiver;
  30. float timeSent, timeReceived;
  31. int nBlobs;
  32. int blobCount;
  33. int num;
  34. float history;
  35. ofFbo fbo;
  36. float xOfCentroid;
  37. float yOfCentroid;
  38. vector<Particle*> system;
  39. vector<Particle>sys;
  40. vector<Attractor*> attractors;
  41. float birthCount;
  42. double time;
  43. bool varSystem;
  44. bool trails;
  45. };