Browse Source

Add select random surface after creation

master
Krisjanis Rijnieks 11 years ago
parent
commit
99b137d2ec
  1. 3
      example/src/ofApp.cpp

3
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()

Loading…
Cancel
Save