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){ if(surfaceManager->getSelectedSurface() == 0){
return; return;
} }
ofPolyline line = surfaceManager->getSelectedSurface()->getHitArea();
ofPushStyle(); if(surfaceManager->getSelectedSurface()->getType() == SurfaceType::GRID_WARP_SURFACE){
ofSetLineWidth(1); surfaceManager->getSelectedSurface()->getMesh().drawWireframe();
ofSetColor(255, 255, 255, 255); } else {
line.draw(); ofPolyline line = surfaceManager->getSelectedSurface()->getHitArea();
ofPopStyle(); ofPushStyle();
ofSetLineWidth(1);
ofSetColor(255, 255, 255, 255);
line.draw();
ofPopStyle();
}
} }
void SurfaceManagerGui::drawSelectedSurfaceTextureHighlight(){ void SurfaceManagerGui::drawSelectedSurfaceTextureHighlight(){

Loading…
Cancel
Save