#pragma once #include "ofApp.h" // *** GLOBALS DEFINITION *** GLOBALS DEFINITION *** GLOBALS DEFINITION *** GLOBALS DEFINITION **** //-------------------------------------------------------------- void ofApp::setup(){ for (int i = 0; i < particleSystems.size(); i++){ } // *** OSC Setup *** OSC Setup *** OSC Setup *** receiver.setup(PORT); } //-------------------------------------------------------------- void ofApp::update(){ // *** OSC RECEIVER *** OSC RECEIVER *** OSC RECEIVER *** /* Here the program will read and convert the information from the tracking, probably count & coordinates of people entering the ground. We have to define, how this information will affect the particleSystems! Check for every particleSystem, if the information is relevant for its "update". */ // *** RFID Input *** RFID Input *** RFID Input *** /* Here we have to define, how the particleSystems react to RFID input. Read ID of a visitor and let the particlesystems react to it. !!! Here in ofApp.cpp there will only be the transfer of incoming information about IDs, playertypes, etc. into the update-methods of the particleSystems. !!! For example: - Tell all particleSystems about a new checkedIn-Visitor - Set the playerType of one particular particleSystem to the checked in. */ for (int p = 0; p < particleSystems.size();) { // Update particle systems // particleSystems.at(p)->update("xxx , xxx , xxx , .... "); } } //-------------------------------------------------------------- void ofApp::draw(){ //draw all ParticleSystems that are in the particleSystems vector for(int p = 0; p < particleSystems.size(); p++) { particleSystems.at(p)->draw(); } } //-------------------------------------------------------------- void ofApp::keyPressed(int key){ } //-------------------------------------------------------------- void ofApp::keyReleased(int key){ } //-------------------------------------------------------------- void ofApp::mouseMoved(int x, int y){ } //-------------------------------------------------------------- void ofApp::mouseDragged(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mousePressed(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mouseReleased(int x, int y, int button){ } //-------------------------------------------------------------- void ofApp::mouseEntered(int x, int y){ } //-------------------------------------------------------------- void ofApp::mouseExited(int x, int y){ } //-------------------------------------------------------------- void ofApp::windowResized(int w, int h){ } //-------------------------------------------------------------- void ofApp::gotMessage(ofMessage msg){ } //-------------------------------------------------------------- void ofApp::dragEvent(ofDragInfo dragInfo){ } //--------------------------------------------------------------