add frame duplicate

This commit is contained in:
2019-10-20 17:09:44 +02:00
parent 0d575be198
commit ad03c601ad
7 changed files with 63 additions and 0 deletions

View File

@@ -23,6 +23,7 @@ struct LayerFrame
bool create(int width, int height, int duration = 1);
bool resize(int width, int height);
void clear(const glm::vec4& c);
LayerFrame clone() const noexcept;
};
class Layer
@@ -62,6 +63,7 @@ public:
bool create(int width, int height, std::string name);
bool add_frame();
void remove_frame(int frame);
void duplicate_frame(int frame);
int total_duration() const noexcept;
void goto_frame(int frame) noexcept;
void clear(const glm::vec4& c, int frame = -1);