#include "ofApp.h" //-------------------------------------------------------------- using namespace glm; void ofApp::setup(){ ofBackground(ofColor(0, 0, 0)); ofSetVerticalSync(true); player.setup(); imageViewer.setup(); map.setupTSNE("embeddings.json"); map.setup(); } //-------------------------------------------------------------- void ofApp::update(){ player.update(); std::string imagePath = player.getFrameName(); imageViewer.update(imagePath); map.update(); } //-------------------------------------------------------------- void ofApp::draw(){ player.draw(); imageViewer.draw(); map.draw(); } //-------------------------------------------------------------- void ofApp::keyPressed(int key){ map.keyPressed(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){ }