add animation playback

This commit is contained in:
2019-10-19 01:12:58 +02:00
parent 467e83b69e
commit d35ab08ffb
9 changed files with 75 additions and 3 deletions

View File

@@ -1351,6 +1351,11 @@ void Canvas::anim_goto_frame(int frame) noexcept
l->goto_frame(frame);
}
void Canvas::anim_goto_next() noexcept
{
anim_goto_frame((m_anim_frame + 1) % anim_duration());
}
void Canvas::flood_fill(int layer, int plane, std::vector<glm::ivec2> pos, FloodData& plane_data,
float threshold, glm::vec4 dest_color, std::unique_ptr<glm::vec4>& source_color)
{