Finally a working implementation of crop and UV manipulation in

AppearanceView! Added saving and loading.
This commit is contained in:
brunoherbelin
2020-11-30 00:25:02 +01:00
parent 93ad971fc0
commit 3c55e25432
6 changed files with 32 additions and 100 deletions

9
View.h
View File

@@ -239,23 +239,18 @@ public:
std::pair<Node *, glm::vec2> pick(glm::vec2 P) override;
Cursor grab (Source *s, glm::vec2 from, glm::vec2 to, std::pair<Node *, glm::vec2> pick) override;
Cursor drag (glm::vec2, glm::vec2) override;
// void initiate() override;
void terminate() override;
private:
Source *edit_source_;
Group edit_source_status_;
bool need_edit_update_;
Source *getEditOrCurrentSource();
void adjustBackground();
Surface *backgroundpreview;
Surface *surfacepreview;
Surface *backgroundframe_;
Frame *foregroundframe_;
Surface *backgroundchecker_;
Frame *backgroundframe_;
Mesh *horizontal_line_;
Group *vertical_line_;
Symbol *crop_horizontal_;