2 changed files with 53 additions and 0 deletions
@ -0,0 +1,24 @@ |
|||
#include "SetTexMapDrawModeCmd.h" |
|||
|
|||
namespace ofx { |
|||
namespace piMapper { |
|||
|
|||
SetTexMapDrawModeCmd::SetTexMapDrawModeCmd(TextureMappingState * s, int m){ |
|||
_state = s; |
|||
_newMode = m; |
|||
} |
|||
|
|||
void SetTexMapDrawModeCmd::exec(){ |
|||
ofLogNotice("SetTexMapDrawModeCmd", "undo"); |
|||
_oldMode = 0; // _state->getDrawMode();
|
|||
// _state->setDrawMode(_newMode);
|
|||
} |
|||
|
|||
void SetTexMapDrawModeCmd::undo(){ |
|||
ofLogNotice("SetTexMapDrawModeCmd", "undo"); |
|||
// _state->setDrawMode(_oldMode);
|
|||
} |
|||
|
|||
} // namespace piMapper
|
|||
} // namespace ofx
|
|||
|
@ -0,0 +1,29 @@ |
|||
// SetTexMapDrawMode
|
|||
// Sets draw mode of the texture mapping state
|
|||
// Created by Krisjanis Rijnieks 2016-09-16
|
|||
|
|||
#pragma once |
|||
|
|||
#include "BaseCmd.h" |
|||
#include "TextureMappingState.h" |
|||
|
|||
namespace ofx { |
|||
namespace piMapper { |
|||
|
|||
class SetTexMapDrawModeCmd : public BaseUndoCmd { |
|||
|
|||
public: |
|||
SetTexMapDrawModeCmd(TextureMappingState * s, int m); |
|||
void exec(); |
|||
void undo(); |
|||
|
|||
private: |
|||
TextureMappingState * _state; |
|||
int _oldMode; |
|||
int _newMode; |
|||
|
|||
}; |
|||
|
|||
} // namespace piMapper
|
|||
} // namespace ofx
|
|||
|
Loading…
Reference in new issue