Browse Source

Draw nice wireframe for the `GridWarpSurface`

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

17
src/Surfaces/SurfaceManagerGui.cpp

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

Loading…
Cancel
Save