Browse Source

Remove SurfaceManagerGui::drawSelectedSurfaceTextureHighlight() method

master
Krisjanis Rijnieks 9 years ago
parent
commit
fabb81531f
  1. 15
      src/Surfaces/SurfaceManagerGui.cpp
  2. 1
      src/Surfaces/SurfaceManagerGui.h

15
src/Surfaces/SurfaceManagerGui.cpp

@ -64,9 +64,6 @@ void SurfaceManagerGui::draw(){
surfaceManager->draw(); surfaceManager->draw();
ofPopStyle(); ofPopStyle();
// hilight selected surface texture
drawSelectedSurfaceTextureHighlight();
// draw texture editing GUI on top // draw texture editing GUI on top
textureEditor.draw(); textureEditor.draw();
@ -272,18 +269,6 @@ int SurfaceManagerGui::getMode(){
return guiMode; return guiMode;
} }
void SurfaceManagerGui::drawSelectedSurfaceTextureHighlight(){
if(surfaceManager->getSelectedSurface() == 0){
return;
}
ofPolyline line = surfaceManager->getSelectedSurface()->getTextureHitArea();
ofPushStyle();
ofSetLineWidth(1);
ofSetColor(255, 255, 0, 255);
line.draw();
ofPopStyle();
}
void SurfaceManagerGui::startDrag(){ void SurfaceManagerGui::startDrag(){
bDrag = true; bDrag = true;
} }

1
src/Surfaces/SurfaceManagerGui.h

@ -42,7 +42,6 @@ class SurfaceManagerGui {
void setMode(int newGuiMode); void setMode(int newGuiMode);
int getMode(); int getMode();
void drawSelectedSurfaceTextureHighlight();
void startDrag(); void startDrag();
void stopDrag(); void stopDrag();

Loading…
Cancel
Save