From 11cb4eb3638b0f97e1efde1ac54a3c7a94ea9d1b Mon Sep 17 00:00:00 2001 From: groud Date: Fri, 25 Jan 2019 19:21:23 +0100 Subject: Add frame_cords accessors to Sprite and Sprite3D --- scene/3d/sprite_3d.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/3d/sprite_3d.h') diff --git a/scene/3d/sprite_3d.h b/scene/3d/sprite_3d.h index 0e086ef31e..5ae9b153f9 100644 --- a/scene/3d/sprite_3d.h +++ b/scene/3d/sprite_3d.h @@ -173,6 +173,9 @@ public: void set_frame(int p_frame); int get_frame() const; + void set_frame_coords(const Vector2 &p_row); + Vector2 get_frame_coords() const; + void set_vframes(int p_amount); int get_vframes() const; -- cgit v1.2.3 From e0b5b218638df5b7b2998233182a7d8a1118e717 Mon Sep 17 00:00:00 2001 From: qarmin Date: Wed, 7 Aug 2019 12:54:30 +0200 Subject: Add some code changes/fixes proposed by Coverity and Clang Tidy --- scene/3d/sprite_3d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/3d/sprite_3d.h') diff --git a/scene/3d/sprite_3d.h b/scene/3d/sprite_3d.h index 5ae9b153f9..97a426b5b9 100644 --- a/scene/3d/sprite_3d.h +++ b/scene/3d/sprite_3d.h @@ -173,7 +173,7 @@ public: void set_frame(int p_frame); int get_frame() const; - void set_frame_coords(const Vector2 &p_row); + void set_frame_coords(const Vector2 &p_coord); Vector2 get_frame_coords() const; void set_vframes(int p_amount); -- cgit v1.2.3 From b055ade1c3043ee5e1089c3a3eeb4953c39e55b7 Mon Sep 17 00:00:00 2001 From: Tomasz Chabora Date: Wed, 17 Jul 2019 01:04:36 +0200 Subject: Add a Billboard property for Sprite3D --- scene/3d/sprite_3d.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'scene/3d/sprite_3d.h') diff --git a/scene/3d/sprite_3d.h b/scene/3d/sprite_3d.h index 0e086ef31e..89ddda0635 100644 --- a/scene/3d/sprite_3d.h +++ b/scene/3d/sprite_3d.h @@ -80,6 +80,7 @@ private: bool flags[FLAG_MAX]; AlphaCutMode alpha_cut; + SpatialMaterial::BillboardMode billboard_mode; bool pending_update; void _im_update(); @@ -130,6 +131,8 @@ public: void set_alpha_cut_mode(AlphaCutMode p_mode); AlphaCutMode get_alpha_cut_mode() const; + void set_billboard_mode(SpatialMaterial::BillboardMode p_mode); + SpatialMaterial::BillboardMode get_billboard_mode() const; virtual Rect2 get_item_rect() const = 0; -- cgit v1.2.3