summaryrefslogtreecommitdiff
path: root/scene/resources/bit_mask.h
diff options
context:
space:
mode:
authorPedro J. Estébanez <pedrojrulez@gmail.com>2018-08-08 21:11:54 +0200
committerPedro J. Estébanez <pedrojrulez@gmail.com>2018-08-10 18:57:44 +0200
commit42bf5cd790b17058b1a1bae5e9272afe81f06ca4 (patch)
tree2b1344188fca652f4d76f1da683aefebd0553a53 /scene/resources/bit_mask.h
parent1800664e803c1f9bd10d4ff5dad94be6b2166520 (diff)
Expose additional BitMap methods
Bonus: Restrict debug prints to debug builds
Diffstat (limited to 'scene/resources/bit_mask.h')
-rw-r--r--scene/resources/bit_mask.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/resources/bit_mask.h b/scene/resources/bit_mask.h
index dcd5edb4fb..40f0bfb04a 100644
--- a/scene/resources/bit_mask.h
+++ b/scene/resources/bit_mask.h
@@ -46,6 +46,8 @@ class BitMap : public Resource {
Vector<Vector2> _march_square(const Rect2i &rect, const Point2i &start) const;
+ Array _opaque_to_polygons_bind(const Rect2 &p_rect, float p_epsilon) const;
+
protected:
void _set_data(const Dictionary &p_d);
Dictionary _get_data() const;