Browse Source

Add getSelectedSurface()

master
Krisjanis Rijnieks 8 years ago
parent
commit
fee14872d7
  1. 4
      src/ofxPiMapper.cpp
  2. 1
      src/ofxPiMapper.h

4
src/ofxPiMapper.cpp

@ -190,6 +190,10 @@ unsigned int ofxPiMapper::getNumSurfaces(){
return _application.getSurfaceManager()->getActivePreset()->getSurfaces().size(); return _application.getSurfaceManager()->getActivePreset()->getSurfaces().size();
} }
int ofxPiMapper::getSelectedSurface(){
return _application.getSurfaceManager()->getSelectedSurfaceIndex();
}
void ofxPiMapper::setInfoText(string text){ void ofxPiMapper::setInfoText(string text){
_application.setInfoText(text); _application.setInfoText(text);
} }

1
src/ofxPiMapper.h

@ -47,6 +47,7 @@ class ofxPiMapper {
// Surfaces, active preset // Surfaces, active preset
unsigned int getNumSurfaces(); unsigned int getNumSurfaces();
int getSelectedSurface();
void selectSurface(int i); void selectSurface(int i);
void togglePerspective(); void togglePerspective();
void selectNextSurface(); void selectNextSurface();

Loading…
Cancel
Save