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.cpp 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. #pragma once
  2. #include "ofApp.h"
  3. // *** GLOBALS DEFINITION *** GLOBALS DEFINITION *** GLOBALS DEFINITION *** GLOBALS DEFINITION ****
  4. //--------------------------------------------------------------
  5. void ofApp::setup(){
  6. for (int i = 0; i < particleSystems.size(); i++){
  7. }
  8. // *** OSC Setup *** OSC Setup *** OSC Setup ***
  9. receiver.setup(PORT);
  10. }
  11. //--------------------------------------------------------------
  12. void ofApp::update(){
  13. // *** OSC RECEIVER *** OSC RECEIVER *** OSC RECEIVER ***
  14. /*
  15. Here the program will read and convert the information from the tracking, probably count & coordinates of people entering the ground.
  16. We have to define, how this information will affect the particleSystems!
  17. Check for every particleSystem, if the information is relevant for its "update".
  18. */
  19. // *** RFID Input *** RFID Input *** RFID Input ***
  20. /*
  21. Here we have to define, how the particleSystems react to RFID input.
  22. Read ID of a visitor and let the particlesystems react to it.
  23. !!! Here in ofApp.cpp there will only be the transfer of incoming information about IDs, playertypes, etc. into the update-methods of the particleSystems. !!!
  24. For example:
  25. - Tell all particleSystems about a new checkedIn-Visitor
  26. - Set the playerType of one particular particleSystem to the checked in.
  27. */
  28. for (int p = 0; p < particleSystems.size();)
  29. {
  30. // Update particle systems
  31. // particleSystems.at(p)->update("xxx , xxx , xxx , .... ");
  32. }
  33. }
  34. //--------------------------------------------------------------
  35. void ofApp::draw(){
  36. //draw all ParticleSystems that are in the particleSystems vector
  37. for(int p = 0; p < particleSystems.size(); p++)
  38. {
  39. particleSystems.at(p)->draw();
  40. }
  41. }
  42. //--------------------------------------------------------------
  43. void ofApp::keyPressed(int key){
  44. }
  45. //--------------------------------------------------------------
  46. void ofApp::keyReleased(int key){
  47. }
  48. //--------------------------------------------------------------
  49. void ofApp::mouseMoved(int x, int y){
  50. }
  51. //--------------------------------------------------------------
  52. void ofApp::mouseDragged(int x, int y, int button){
  53. }
  54. //--------------------------------------------------------------
  55. void ofApp::mousePressed(int x, int y, int button){
  56. }
  57. //--------------------------------------------------------------
  58. void ofApp::mouseReleased(int x, int y, int button){
  59. }
  60. //--------------------------------------------------------------
  61. void ofApp::mouseEntered(int x, int y){
  62. }
  63. //--------------------------------------------------------------
  64. void ofApp::mouseExited(int x, int y){
  65. }
  66. //--------------------------------------------------------------
  67. void ofApp::windowResized(int w, int h){
  68. }
  69. //--------------------------------------------------------------
  70. void ofApp::gotMessage(ofMessage msg){
  71. }
  72. //--------------------------------------------------------------
  73. void ofApp::dragEvent(ofDragInfo dragInfo){
  74. }
  75. //--------------------------------------------------------------