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.
57 lines
1.3 KiB
57 lines
1.3 KiB
#include "ofApp.h"
|
|
|
|
void ofApp::setup(){
|
|
ofBackground(0);
|
|
|
|
// Enable or disable audio for video sources globally
|
|
// Set this to false to save resources on the Raspberry Pi
|
|
ofx::piMapper::VideoSource::enableAudio = true;
|
|
ofx::piMapper::VideoSource::useHDMIForAudio = false;
|
|
|
|
// Register our sources.
|
|
// This should be done before mapper.setup().
|
|
piMapper.registerFboSource(ScanLSource);
|
|
piMapper.registerFboSource(QuadiSource);
|
|
piMapper.registerFboSource(CircLSource);
|
|
piMapper.registerFboSource(BricksSource);
|
|
//piMapper.registerFboSource(SyphonClient);
|
|
//piMapper.registerFboSource(slideShowSource);
|
|
piMapper.setup();
|
|
|
|
// This will set the app fullscreen if compiled on Raspberry Pi.
|
|
#ifdef TARGET_RASPBERRY_PI
|
|
ofSetFullscreen(true);
|
|
#endif
|
|
|
|
// Start slideshow.
|
|
//slideShowSource.play();
|
|
}
|
|
|
|
void ofApp::update(){
|
|
piMapper.update();
|
|
}
|
|
|
|
void ofApp::draw(){
|
|
piMapper.draw();
|
|
}
|
|
|
|
void ofApp::keyPressed(int key){
|
|
piMapper.keyPressed(key);
|
|
}
|
|
|
|
void ofApp::keyReleased(int key){
|
|
piMapper.keyReleased(key);
|
|
}
|
|
|
|
void ofApp::mousePressed(int x, int y, int button){
|
|
|
|
piMapper.mousePressed(x, y, button);
|
|
}
|
|
|
|
void ofApp::mouseReleased(int x, int y, int button){
|
|
piMapper.mouseReleased(x, y, button);
|
|
}
|
|
|
|
void ofApp::mouseDragged(int x, int y, int button){
|
|
piMapper.mouseDragged(x, y, button);
|
|
}
|
|
|