Browse Source

Draw nice wireframe for the `GridWarpSurface`

master
Krisjanis Rijnieks 10 years ago
parent
commit
61491173a6
  1. 5
      src/Surfaces/SurfaceManagerGui.cpp

5
src/Surfaces/SurfaceManagerGui.cpp

@ -290,12 +290,17 @@ void SurfaceManagerGui::drawSelectedSurfaceHighlight(){
if(surfaceManager->getSelectedSurface() == 0){ if(surfaceManager->getSelectedSurface() == 0){
return; return;
} }
if(surfaceManager->getSelectedSurface()->getType() == SurfaceType::GRID_WARP_SURFACE){
surfaceManager->getSelectedSurface()->getMesh().drawWireframe();
} else {
ofPolyline line = surfaceManager->getSelectedSurface()->getHitArea(); ofPolyline line = surfaceManager->getSelectedSurface()->getHitArea();
ofPushStyle(); ofPushStyle();
ofSetLineWidth(1); ofSetLineWidth(1);
ofSetColor(255, 255, 255, 255); ofSetColor(255, 255, 255, 255);
line.draw(); line.draw();
ofPopStyle(); ofPopStyle();
}
} }
void SurfaceManagerGui::drawSelectedSurfaceTextureHighlight(){ void SurfaceManagerGui::drawSelectedSurfaceTextureHighlight(){

Loading…
Cancel
Save