Add ability to flip TextureRect horizontally or vertically

This commit is contained in:
PouleyKetchoupp
2019-02-05 05:12:44 +01:00
parent 869887641f
commit 8b84638322
4 changed files with 74 additions and 21 deletions

View File

@ -53,6 +53,8 @@ public:
private:
bool expand;
bool hflip;
bool vflip;
Ref<Texture> texture;
StretchMode stretch_mode;
@ -71,6 +73,12 @@ public:
void set_stretch_mode(StretchMode p_mode);
StretchMode get_stretch_mode() const;
void set_flip_h(bool p_flip);
bool is_flipped_h() const;
void set_flip_v(bool p_flip);
bool is_flipped_v() const;
TextureRect();
~TextureRect();
};