diff options
author | Ev1lbl0w <ricasubtil@gmail.com> | 2020-06-14 18:06:48 +0100 |
---|---|---|
committer | Ev1lbl0w <ricasubtil@gmail.com> | 2020-06-16 15:43:44 +0100 |
commit | 03879a564a88cd37c4d07228c4f07083af6c31d0 (patch) | |
tree | fb5fcb8aa6f64991b9e29bf850df33644c6295ef /servers/rendering_server.h | |
parent | 79947dfef1db52462ce25f370696e3eb926fa627 (diff) |
Expose disable_render_loop property to GDScript
Diffstat (limited to 'servers/rendering_server.h')
-rw-r--r-- | servers/rendering_server.h | 4 |
1 files changed, 4 insertions, 0 deletions
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<float> &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(); }; |