1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-10 13:00:37 +00:00

Expose disable_render_loop property to GDScript

This commit is contained in:
Ev1lbl0w
2020-06-14 18:06:48 +01:00
parent 79947dfef1
commit 03879a564a
4 changed files with 23 additions and 1 deletions

View File

@@ -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();
};