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.
 
 

35 lines
755 B

#include "TextureMappingState.h"
namespace ofx {
namespace piMapper {
TextureMappingState * TextureMappingState::_instance = 0;
TextureMappingState * TextureMappingState::instance(){
if(_instance == 0){
_instance = new ofx::piMapper::TextureMappingState();
}
return _instance;
}
void TextureMappingState::draw(Application * app){
app->getGui()->draw();
}
void TextureMappingState::onKeyPressed(Application * app, ofKeyEventArgs & args){
switch(args.key){
case '>':
app->getCmdManager()->exec(
new SelNextTexCoordCmd(app->getGui()->getTextureEditor()));
break;
case ' ':
app->getCmdManager()->exec(
new DeselectTexCoordCmd(app->getGui()->getTextureEditor()));
break;
}
}
} // namespace piMapper
} // namespace ofx