summaryrefslogtreecommitdiff
path: root/scene/2d/polygon_2d.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/2d/polygon_2d.h')
-rw-r--r--scene/2d/polygon_2d.h23
1 files changed, 11 insertions, 12 deletions
diff --git a/scene/2d/polygon_2d.h b/scene/2d/polygon_2d.h
index 8434dae40c..50968f3de4 100644
--- a/scene/2d/polygon_2d.h
+++ b/scene/2d/polygon_2d.h
@@ -33,7 +33,7 @@
class Polygon2D : public Node2D {
- GDCLASS(Polygon2D,Node2D);
+ GDCLASS(Polygon2D, Node2D);
PoolVector<Vector2> polygon;
PoolVector<Vector2> uv;
@@ -55,33 +55,32 @@ class Polygon2D : public Node2D {
float _get_texture_rotationd() const;
protected:
-
void _notification(int p_what);
static void _bind_methods();
-public:
- void set_polygon(const PoolVector<Vector2>& p_polygon);
+public:
+ void set_polygon(const PoolVector<Vector2> &p_polygon);
PoolVector<Vector2> get_polygon() const;
- void set_uv(const PoolVector<Vector2>& p_uv);
+ void set_uv(const PoolVector<Vector2> &p_uv);
PoolVector<Vector2> get_uv() const;
- void set_color(const Color& p_color);
+ void set_color(const Color &p_color);
Color get_color() const;
- void set_vertex_colors(const PoolVector<Color>& p_colors);
+ void set_vertex_colors(const PoolVector<Color> &p_colors);
PoolVector<Color> get_vertex_colors() const;
- void set_texture(const Ref<Texture>& p_texture);
+ void set_texture(const Ref<Texture> &p_texture);
Ref<Texture> get_texture() const;
- void set_texture_offset(const Vector2& p_offset);
+ void set_texture_offset(const Vector2 &p_offset);
Vector2 get_texture_offset() const;
void set_texture_rotation(float p_rot);
float get_texture_rotation() const;
- void set_texture_scale(const Size2& p_scale);
+ void set_texture_scale(const Size2 &p_scale);
Size2 get_texture_scale() const;
void set_invert(bool p_rot);
@@ -90,12 +89,12 @@ public:
void set_invert_border(float p_border);
float get_invert_border() const;
- void set_offset(const Vector2& p_offset);
+ void set_offset(const Vector2 &p_offset);
Vector2 get_offset() const;
//editor stuff
- virtual void edit_set_pivot(const Point2& p_pivot);
+ virtual void edit_set_pivot(const Point2 &p_pivot);
virtual Point2 edit_get_pivot() const;
virtual bool edit_has_pivot() const;