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.
 
 

36 lines
1.1 KiB

#include "SourceSelectionMode.h"
namespace ofx {
namespace piMapper {
SourceSelectionMode * SourceSelectionMode::_instance = 0;
SourceSelectionMode * SourceSelectionMode::instance(){
if(_instance == 0){
_instance = new ofx::piMapper::SourceSelectionMode();
}
return _instance;
}
void SourceSelectionMode::setup(Application * app){
Gui::instance()->getSourcesEditorWidget().setSurfaceManager(app->getSurfaceManager());
Gui::instance()->getSourcesEditorWidget().setMediaServer(app->getMediaServer());
Gui::instance()->getSourcesEditorWidget().setCmdManager(app->getCmdManager());
Gui::instance()->getSourcesEditorWidget().setup();
}
void SourceSelectionMode::draw(Application * app){
ofPushStyle();
ofSetColor(255, 255, 255, 255);
app->getSurfaceManager()->draw();
ofPopStyle();
Gui::instance()->getSourcesEditorWidget().draw();
// TODO: Move the following line to setup()
Gui::instance()->getSurfaceHighlightWidget().setSurfaceManager(app->getSurfaceManager());
Gui::instance()->getSurfaceHighlightWidget().draw();
}
} // namespace piMapper
} // namespace ofx