diff --git a/src/ofxPiMapper.cpp b/src/ofxPiMapper.cpp index 84a2987..5645204 100644 --- a/src/ofxPiMapper.cpp +++ b/src/ofxPiMapper.cpp @@ -218,6 +218,10 @@ int ofxPiMapper::getSelectedSurface(){ return _application.getSurfaceManager()->getSelectedSurfaceIndex(); } +int ofxPiMapper::getSelectedVertex(){ + return _application.getSurfaceManager()->getSelectedVertexIndex(); +} + void ofxPiMapper::setInfoText(std::string text){ _application.setInfoText(text); } diff --git a/src/ofxPiMapper.h b/src/ofxPiMapper.h index 74e4470..fec4a2f 100644 --- a/src/ofxPiMapper.h +++ b/src/ofxPiMapper.h @@ -56,6 +56,7 @@ class ofxPiMapper { // Surfaces, active preset unsigned int getNumSurfaces(); int getSelectedSurface(); + int getSelectedVertex(); void selectSurface(int i); void togglePerspective(); void selectNextSurface();