diff options
author | romulox_x <romulox_x@yahoo.com> | 2015-02-21 01:35:06 -0800 |
---|---|---|
committer | romulox_x <romulox_x@yahoo.com> | 2015-02-21 01:35:06 -0800 |
commit | f4312a5076061862908c6df732157d452c2d37b8 (patch) | |
tree | 4789b091847c52c1536b2c939e9decc7c50ca44d /scene/main/viewport.h | |
parent | 31e076d16affca682e956c966c0a8f9218a2b192 (diff) |
added option to disable automatic clearing of viewport render buffer
Diffstat (limited to 'scene/main/viewport.h')
-rw-r--r-- | scene/main/viewport.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/main/viewport.h b/scene/main/viewport.h index 832a6b6107..d2a22401bd 100644 --- a/scene/main/viewport.h +++ b/scene/main/viewport.h @@ -114,6 +114,7 @@ friend class RenderTargetTexture; bool transparent_bg; bool render_target_vflip; + bool render_target_clear_on_new_frame; bool render_target_filter; bool render_target_gen_mipmaps; @@ -220,6 +221,10 @@ public: void set_render_target_vflip(bool p_enable); bool get_render_target_vflip() const; + void set_render_target_clear_on_new_frame(bool p_enable); + bool get_render_target_clear_on_new_frame() const; + void render_target_clear(); + void set_render_target_filter(bool p_enable); bool get_render_target_filter() const; |