summaryrefslogtreecommitdiff
path: root/scene/main/canvas_layer.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/canvas_layer.h')
-rw-r--r--scene/main/canvas_layer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/main/canvas_layer.h b/scene/main/canvas_layer.h
index a1311390be..bb63c96cdf 100644
--- a/scene/main/canvas_layer.h
+++ b/scene/main/canvas_layer.h
@@ -52,6 +52,8 @@ class CanvasLayer : public Node {
RID viewport;
Viewport *vp;
+ int sort_index;
+
// Deprecated, should be removed in a future version.
void _set_rotationd(real_t p_rotation);
real_t _get_rotationd() const;
@@ -93,6 +95,9 @@ public:
void set_custom_viewport(Node *p_viewport);
Node* get_custom_viewport() const;
+ void reset_sort_index();
+ int get_sort_index();
+
CanvasLayer();
};