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.
30 lines
586 B
30 lines
586 B
// MvAllTexCoordsCmd
|
|
// Move all texture coordinates of a selected surface undoable command
|
|
// Created by Krisjanis Rijnieks 2015-05-18
|
|
|
|
#pragma once
|
|
|
|
#include "BaseCmd.h"
|
|
#include "BaseSurface.h"
|
|
#include "TextureEditorWidget.h"
|
|
|
|
namespace ofx {
|
|
namespace piMapper {
|
|
|
|
class MvAllTexCoordsCmd : public BaseUndoCmd {
|
|
|
|
public:
|
|
MvAllTexCoordsCmd(BaseSurface * surface, TextureEditorWidget * texEditor);
|
|
void exec();
|
|
void undo();
|
|
|
|
private:
|
|
vector <ofVec2f> _texCoords;
|
|
BaseSurface * _surface;
|
|
TextureEditorWidget * _texEditor;
|
|
|
|
};
|
|
|
|
} // namespace piMapper
|
|
} // namespace ofx
|
|
|
|
|