Browse Source

Remove SurfaceManagerGui::draw() method

master
Krisjanis Rijnieks 9 years ago
parent
commit
2f8cf9de78
  1. 2
      src/Application/States/PresentationState.cpp
  2. 14
      src/Surfaces/SurfaceManagerGui.cpp
  3. 1
      src/Surfaces/SurfaceManagerGui.h

2
src/Application/States/PresentationState.cpp

@ -17,8 +17,6 @@ void PresentationState::draw(Application * app){
ofSetColor(255, 255, 255, 255);
app->getSurfaceManager()->draw();
ofPopStyle();
app->getGui()->draw();
}
void PresentationState::onMousePressed(Application * app, ofMouseEventArgs & args){

14
src/Surfaces/SurfaceManagerGui.cpp

@ -11,20 +11,6 @@ SurfaceManagerGui::SurfaceManagerGui(){
_cmdManager = 0;
}
void SurfaceManagerGui::draw(){
if(surfaceManager == 0){
return;
}
if(guiMode == GuiMode::TEXTURE_MAPPING){
// TODO: Remove this if else together with the SurfaceManagerGui
}else if(guiMode == GuiMode::PROJECTION_MAPPING){
//projectionEditor.draw();
}else if(guiMode == GuiMode::SOURCE_SELECTION){
//sourcesEditor.draw();
}
}
void SurfaceManagerGui::mousePressed(ofMouseEventArgs & args){
if(guiMode == GuiMode::NONE){
return;

1
src/Surfaces/SurfaceManagerGui.h

@ -27,7 +27,6 @@ class SurfaceManagerGui {
public:
SurfaceManagerGui();
void draw();
void mousePressed(ofMouseEventArgs & args);
void mouseReleased(ofMouseEventArgs & args);
void mouseDragged(ofMouseEventArgs & args);

Loading…
Cancel
Save