diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-06-17 18:15:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-17 18:15:11 +0200 |
commit | 13c4796693c3c32993cd49b226fc9c78ad376f6d (patch) | |
tree | b7aa900f5ba2f65586f5f6451e6b288041dc3ff8 /servers/rendering/renderer_canvas_render.h | |
parent | 17ded9a152f41d3e9ef7aa567065fe13f8e0e33d (diff) | |
parent | 94d31ac327a8fe6ff7c007b34cb25772bf96d17e (diff) |
Merge pull request #49685 from reduz/implement-drawing-animation-slices-in-canvas
Implement animation slice drawing in CanvasItem
Diffstat (limited to 'servers/rendering/renderer_canvas_render.h')
-rw-r--r-- | servers/rendering/renderer_canvas_render.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/servers/rendering/renderer_canvas_render.h b/servers/rendering/renderer_canvas_render.h index 0266e137c0..c10b9db035 100644 --- a/servers/rendering/renderer_canvas_render.h +++ b/servers/rendering/renderer_canvas_render.h @@ -180,6 +180,7 @@ public: TYPE_PARTICLES, TYPE_TRANSFORM, TYPE_CLIP_IGNORE, + TYPE_ANIMATION_SLICE, }; Command *next; @@ -286,6 +287,17 @@ public: } }; + struct CommandAnimationSlice : public Command { + double animation_length = 0; + double slice_begin = 0; + double slice_end = 0; + double offset = 0; + + CommandAnimationSlice() { + type = TYPE_ANIMATION_SLICE; + } + }; + struct ViewportRender { RenderingServer *owner; void *udata; |