diff --git a/src/Application/States/TextureMappingState.cpp b/src/Application/States/TextureMappingState.cpp index 8a3191e..42e6dde 100644 --- a/src/Application/States/TextureMappingState.cpp +++ b/src/Application/States/TextureMappingState.cpp @@ -16,6 +16,7 @@ TextureMappingState::TextureMappingState(){ _bTranslateCanvas = false; _canvasTranslate = ofPoint(0, 0); _clickCanvasTranslate = ofPoint(0, 0); + _drawMode = 0; } void TextureMappingState::draw(Application * app){ @@ -150,5 +151,13 @@ void TextureMappingState::setTranslation(ofPoint p){ _clickCanvasTranslate = p; } +void TextureMappingState::setDrawMode(int m){ + _drawMode = m; +} + +int TextureMappingState::getDrawMode(){ + return _drawMode; +} + } // namespace piMapper } // namespace ofx \ No newline at end of file diff --git a/src/Application/States/TextureMappingState.h b/src/Application/States/TextureMappingState.h index 10a0c91..8370e4d 100644 --- a/src/Application/States/TextureMappingState.h +++ b/src/Application/States/TextureMappingState.h @@ -32,6 +32,9 @@ class TextureMappingState : public ApplicationBaseState { ofPoint getTranslation(); void setTranslation(ofPoint p); + void setDrawMode(int m); + int getDrawMode(); + private: static TextureMappingState * _instance; @@ -39,6 +42,8 @@ class TextureMappingState : public ApplicationBaseState { bool _bTranslateCanvas; + int _drawMode; + ofPoint _clickPosition; ofPoint _canvasTranslate; ofPoint _prevCanvasTranslate; // Canvas translate before TranslateCanvasCmd command exec