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.
43 lines
974 B
43 lines
974 B
#include "ofxPiMapper.h"
|
|
|
|
ofxPiMapper::ofxPiMapper(){}
|
|
|
|
void ofxPiMapper::setup(){
|
|
_application.setup();
|
|
}
|
|
|
|
void ofxPiMapper::update(){
|
|
_application.update();
|
|
}
|
|
|
|
void ofxPiMapper::draw(){
|
|
_application.draw();
|
|
}
|
|
|
|
void ofxPiMapper::registerFboSource(ofx::piMapper::FboSource & fboSource){
|
|
_application.addFboSource(fboSource);
|
|
}
|
|
|
|
void ofxPiMapper::registerFboSource(ofx::piMapper::FboSource * fboSource){
|
|
_application.addFboSource(fboSource);
|
|
}
|
|
|
|
void ofxPiMapper::setActivePreset(unsigned int i){
|
|
_application.getSurfaceManager()->setActivePreset(i);
|
|
}
|
|
|
|
void ofxPiMapper::setNextPreset(){
|
|
_application.getSurfaceManager()->setNextPreset();
|
|
}
|
|
|
|
bool ofxPiMapper::loadXmlSettings(string fileName){
|
|
return _application.loadXmlSettings(fileName);
|
|
}
|
|
|
|
unsigned int ofxPiMapper::getNumPresets(){
|
|
return _application.getSurfaceManager()->getNumPresets();
|
|
}
|
|
|
|
unsigned int ofxPiMapper::getActivePresetIndex(){
|
|
return _application.getSurfaceManager()->getActivePresetIndex();
|
|
}
|
|
|