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 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #pragma once
  2. #include "ofMain.h"
  3. #include "particleSystem.hpp"
  4. #include "greatWhole.hpp"
  5. #include "avatar.hpp"
  6. //#include "ofxOsc.h"
  7. int WINDOWSIZE_WIDTH = 1000;
  8. int WINDOWSIZE_HEIGHT = 1000;
  9. int PARTICLE_COUNT;
  10. //+1 for every new Particle, -1 for every Particle that gets older than the defined maxLife
  11. // *** SETUP OSC INFORMATION *** SETUP OSC INFORMATION ***
  12. #define PORT 12345
  13. #define HOST "xxx.xxx.xxx.xxx"
  14. class ofApp : public ofBaseApp{
  15. public:
  16. void setup();
  17. void update();
  18. void draw();
  19. void keyPressed(int key);
  20. void keyReleased(int key);
  21. void mouseMoved(int x, int y);
  22. void mouseDragged(int x, int y, int button);
  23. void mousePressed(int x, int y, int button);
  24. void mouseReleased(int x, int y, int button);
  25. void mouseEntered(int x, int y);
  26. void mouseExited(int x, int y);
  27. void windowResized(int w, int h);
  28. void dragEvent(ofDragInfo dragInfo);
  29. void gotMessage(ofMessage msg);
  30. private:
  31. // *** OSC *** OSC *** OSC ***
  32. string oscMsg;
  33. // ofxOscReceiver receiver;
  34. float timeSent, timeReceived;
  35. //Information about what is going on in the scene
  36. int nBlobs; //count of the tracked visitors
  37. vector<ParticleSystem*> particleSystems;
  38. GreatWhole dasGrosseGanze;
  39. };