summaryrefslogtreecommitdiffstats
path: root/scene/main/canvas_layer.h
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2016-05-06 23:38:08 +0200
committerRémi Verschelde <rverschelde@gmail.com>2016-05-06 23:38:08 +0200
commit4eab767a6fbc746f6a13e976b4e34d566e7cc4cd (patch)
treefb577113bcc70a23d88cfd74141030eb842edb4f /scene/main/canvas_layer.h
parente7f78cddc91696bd47b5e5400f0b4b4fd654fd6b (diff)
downloadredot-engine-4eab767a6fbc746f6a13e976b4e34d566e7cc4cd.tar.gz
Rotation APIs: Better exposure for degrees methods
Made public the various set/getters for rotations in degrees. For consistency, renamed the exposed method names to remove the leading underscore, and kept the old names with a deprecation warning. Fixes #4511.
Diffstat (limited to 'scene/main/canvas_layer.h')
-rw-r--r--scene/main/canvas_layer.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/scene/main/canvas_layer.h b/scene/main/canvas_layer.h
index 809b3fae7f..a3e8211a43 100644
--- a/scene/main/canvas_layer.h
+++ b/scene/main/canvas_layer.h
@@ -48,7 +48,7 @@ class CanvasLayer : public Node {
RID viewport;
Viewport *vp;
-
+ // Deprecated, should be removed in a future version.
void _set_rotationd(real_t p_rotation);
real_t _get_rotationd() const;
@@ -70,9 +70,12 @@ public:
void set_offset(const Vector2& p_offset);
Vector2 get_offset() const;
- void set_rotation(real_t p_rotation);
+ void set_rotation(real_t p_radians);
real_t get_rotation() const;
+ void set_rotationd(real_t p_degrees);
+ real_t get_rotationd() const;
+
void set_scale(const Vector2& p_scale);
Vector2 get_scale() const;