summaryrefslogtreecommitdiff
path: root/scene/main/canvas_item.h
diff options
context:
space:
mode:
authorreduz <reduzio@gmail.com>2021-06-17 11:30:20 -0300
committerreduz <reduzio@gmail.com>2021-06-17 12:42:27 -0300
commit94d31ac327a8fe6ff7c007b34cb25772bf96d17e (patch)
tree3321a44a246caed059a9baf38e21a3fe749dee6a /scene/main/canvas_item.h
parent085e1d3c03497dec41ca86019e4850a4b78085e7 (diff)
Implement animation slice drawing in CanvasItem
* Added a function to ignore subsequent commands if they don't fall within the slice. * This will be used by the new TileMap to properly provide animated tiles.
Diffstat (limited to 'scene/main/canvas_item.h')
-rw-r--r--scene/main/canvas_item.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/main/canvas_item.h b/scene/main/canvas_item.h
index 1c64cafab8..afdd18d76b 100644
--- a/scene/main/canvas_item.h
+++ b/scene/main/canvas_item.h
@@ -356,6 +356,8 @@ public:
void draw_set_transform(const Point2 &p_offset, real_t p_rot = 0.0, const Size2 &p_scale = Size2(1.0, 1.0));
void draw_set_transform_matrix(const Transform2D &p_matrix);
+ void draw_animation_slice(double p_animation_length, double p_slice_begin, double p_slice_end, double p_offset = 0);
+ void draw_end_animation();
static CanvasItem *get_current_item_drawn();