summaryrefslogtreecommitdiff
path: root/servers/rendering/renderer_canvas_cull.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 /servers/rendering/renderer_canvas_cull.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 'servers/rendering/renderer_canvas_cull.h')
-rw-r--r--servers/rendering/renderer_canvas_cull.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/rendering/renderer_canvas_cull.h b/servers/rendering/renderer_canvas_cull.h
index 661216cad3..a51b419613 100644
--- a/servers/rendering/renderer_canvas_cull.h
+++ b/servers/rendering/renderer_canvas_cull.h
@@ -231,6 +231,8 @@ public:
void canvas_item_add_particles(RID p_item, RID p_particles, RID p_texture);
void canvas_item_add_set_transform(RID p_item, const Transform2D &p_transform);
void canvas_item_add_clip_ignore(RID p_item, bool p_ignore);
+ void canvas_item_add_animation_slice(RID p_item, double p_animation_length, double p_slice_begin, double p_slice_end, double p_offset);
+
void canvas_item_set_sort_children_by_y(RID p_item, bool p_enable);
void canvas_item_set_z_index(RID p_item, int p_z);
void canvas_item_set_z_as_relative_to_parent(RID p_item, bool p_enable);