summaryrefslogtreecommitdiffstats
path: root/scene/2d/sprite.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-23 22:10:15 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-08-23 22:11:10 -0300
commit34e58fd831172bad1eebb748c97238c28864423a (patch)
tree45c0a84ce5233a8ea98e2e7e34b5562ae51cfd92 /scene/2d/sprite.h
parentcef310e0ea0f8e7f3621e9ba29a567f09fb51beb (diff)
downloadredot-engine-34e58fd831172bad1eebb748c97238c28864423a.tar.gz
Added a function to cache texture opacity at a pixel, and modified editor to use it.
Provides massive speedups to selecting objects, still awaiting for @MarianoGNU to do fixes to the region editor to improve performance.
Diffstat (limited to 'scene/2d/sprite.h')
-rw-r--r--scene/2d/sprite.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/sprite.h b/scene/2d/sprite.h
index 0a5ff002cd..ab444f89fc 100644
--- a/scene/2d/sprite.h
+++ b/scene/2d/sprite.h
@@ -75,6 +75,8 @@ public:
virtual bool _edit_use_pivot() const;
virtual bool _edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const;
+ bool is_pixel_opaque(const Point2 &p_point) const;
+
virtual Rect2 _edit_get_rect() const;
virtual bool _edit_use_rect() const;