From 03879a564a88cd37c4d07228c4f07083af6c31d0 Mon Sep 17 00:00:00 2001 From: Ev1lbl0w Date: Sun, 14 Jun 2020 18:06:48 +0100 Subject: Expose disable_render_loop property to GDScript --- servers/rendering_server.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'servers/rendering_server.h') diff --git a/servers/rendering_server.h b/servers/rendering_server.h index 3ce63585a8..56a8325630 100644 --- a/servers/rendering_server.h +++ b/servers/rendering_server.h @@ -47,6 +47,7 @@ class RenderingServer : public Object { static RenderingServer *singleton; int mm_policy; + bool render_loop_enabled = true; void _camera_set_orthogonal(RID p_camera, float p_size, float p_z_near, float p_z_far); void _canvas_item_add_style_box(RID p_item, const Rect2 &p_rect, const Rect2 &p_source, RID p_texture, const Vector &p_margins, const Color &p_modulate = Color(1, 1, 1)); @@ -1229,6 +1230,9 @@ public: virtual bool is_low_end() const = 0; + bool is_render_loop_enabled() const; + void set_render_loop_enabled(bool p_enabled); + RenderingServer(); virtual ~RenderingServer(); }; -- cgit v1.2.3