diff options
| author | MrCdK | 2017-11-05 21:45:36 +0100 |
|---|---|---|
| committer | MrCdK | 2017-11-05 22:27:05 +0100 |
| commit | fec243ed563fc76d22f1505e0fdcd7c2fefa9f2b (patch) | |
| tree | 02caaee78beb064655b51b60850b4c62fca62797 /scene/resources/texture.h | |
| parent | 9a78efc7c270211e49fd7b2f071b61c706febffc (diff) | |
| download | godot-fec243ed563fc76d22f1505e0fdcd7c2fefa9f2b.tar.gz godot-fec243ed563fc76d22f1505e0fdcd7c2fefa9f2b.tar.zst godot-fec243ed563fc76d22f1505e0fdcd7c2fefa9f2b.zip | |
Added filter_clip to AtlasTexture
Diffstat (limited to '')
| -rw-r--r-- | scene/resources/texture.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scene/resources/texture.h b/scene/resources/texture.h index 207436e4a..ee5415664 100644 --- a/scene/resources/texture.h +++ b/scene/resources/texture.h @@ -237,6 +237,7 @@ protected: Ref<Texture> atlas; Rect2 region; Rect2 margin; + bool filter_clip; static void _bind_methods(); @@ -259,6 +260,9 @@ public: void set_margin(const Rect2 &p_margin); Rect2 get_margin() const; + void set_filter_clip(const bool p_enable); + bool has_filter_clip() const; + virtual void draw(RID p_canvas_item, const Point2 &p_pos, const Color &p_modulate = Color(1, 1, 1), bool p_transpose = false, const Ref<Texture> &p_normal_map = Ref<Texture>()) const; virtual void draw_rect(RID p_canvas_item, const Rect2 &p_rect, bool p_tile = false, const Color &p_modulate = Color(1, 1, 1), bool p_transpose = false, const Ref<Texture> &p_normal_map = Ref<Texture>()) const; virtual void draw_rect_region(RID p_canvas_item, const Rect2 &p_rect, const Rect2 &p_src_rect, const Color &p_modulate = Color(1, 1, 1), bool p_transpose = false, const Ref<Texture> &p_normal_map = Ref<Texture>(), bool p_clip_uv = true) const; |
