ofxPiMapper fixed for C++17 & oF 12.0
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.
 
 

28 lines
807 B

#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 = false;
// Add our CustomSource to list of fbo sources of the piMapper
// FBO sources should be added before piMapper.setup() so the
// piMapper is able to load the source if it is assigned to
// a surface in XML settings.
crossSource = new CrossSource();
customSource = new CustomSource();
piMapper.registerFboSource(crossSource);
piMapper.registerFboSource(customSource);
piMapper.setup();
// The info layer is hidden by default, press <i> to toggle
// piMapper.showInfo();
ofSetFullscreen(Settings::instance()->getFullscreen());
}
void ofApp::draw(){
piMapper.draw();
}