You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
490 B
24 lines
490 B
#include "SetTexMapDrawModeCmd.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
SetTexMapDrawModeCmd::SetTexMapDrawModeCmd(TextureMappingMode * s, int m){
|
|
_state = s;
|
|
_newMode = m;
|
|
}
|
|
|
|
void SetTexMapDrawModeCmd::exec(){
|
|
ofLogNotice("SetTexMapDrawModeCmd", "exec");
|
|
_oldMode = _state->getDrawMode();
|
|
_state->setDrawMode(_newMode);
|
|
}
|
|
|
|
void SetTexMapDrawModeCmd::undo(){
|
|
ofLogNotice("SetTexMapDrawModeCmd", "undo");
|
|
_state->setDrawMode(_oldMode);
|
|
}
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|