Browse Source

Add Application::moveTexCoord(...)

master
Krisjanis Rijnieks 9 years ago
parent
commit
98cb163884
  1. 12
      src/Application/Application.cpp
  2. 1
      src/Application/Application.h

12
src/Application/Application.cpp

@ -559,5 +559,17 @@ void Application::togglePause(){
}
}
void Application::moveTexCoord(int texCoordIndex, ofVec2f by){
if(texCoordIndex >= 0){
getCmdManager()->exec(new MvTexCoordCmd(texCoordIndex, by));
}else{
getCmdManager()->exec(new MvAllTexCoordsCmd(
getSurfaceManager()->getSelectedSurface(),
&Gui::instance()->getTextureEditorWidget()));
Gui::instance()->getTextureEditorWidget().moveSelection(by);
}
}
} // namespace piMapper
} // namespace ofx

1
src/Application/Application.h

@ -126,6 +126,7 @@ class Application : public KeyListener {
void removeGridRow();
void removeGridColumn();
void togglePause();
void moveTexCoord(int texCoordIndex, ofVec2f by);
void setPreset(unsigned int i);
void setNextPreset();

Loading…
Cancel
Save