diff --git a/example/src/ofApp.cpp b/example/src/ofApp.cpp index 8ce0814..20d8aae 100644 --- a/example/src/ofApp.cpp +++ b/example/src/ofApp.cpp @@ -107,6 +107,9 @@ void ofApp::addRandomSurface() texCoords.push_back( ofVec2f( ofRandomuf(), ofRandomuf() ) ); texCoords.push_back( ofVec2f( ofRandomuf(), ofRandomuf() ) ); surfaceManager.addSurface(surfaceType, vertices, texCoords); + + // select this surface right away + surfaceManager.selectSurface(surfaceManager.size()-1); } void ofApp::addSurface()