Skip to content

Commit

Permalink
Add get_current_texture()
Browse files Browse the repository at this point in the history
  • Loading branch information
heppocogne committed Jun 11, 2023
1 parent c08ee8c commit cc648dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cpp/src/svgsprite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ void SVGSprite::_register_methods()
register_method("get_flip_v", &SVGSprite::get_flip_v);
register_property<SVGSprite, int>("texture_flags", &SVGSprite::set_texture_flags, &SVGSprite::get_texture_flags, 7,
GODOT_METHOD_RPC_MODE_DISABLED, GODOT_PROPERTY_USAGE_DEFAULT, GODOT_PROPERTY_HINT_FLAGS, "Mipmaps,Repeat,Filter,Anisotropic Filter,Convert to Linear,Mirrored Repeat,Video Surface");
register_method("get_current_texture", &SVGSprite::get_current_texture);
register_method("set_texture_flags", &SVGSprite::set_texture_flags);
register_method("get_texture_flags", &SVGSprite::get_texture_flags);
register_method("get_size", &SVGSprite::get_size);
Expand Down
1 change: 1 addition & 0 deletions cpp/src/svgsprite.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ namespace godot
bool get_flip_h() const { return flip_h; }
void set_flip_v(bool p_flip_v);
bool get_flip_v() const { return flip_v; }
Ref<Texture> get_current_texture() const { return _ref_texture; }
void set_texture_flags(int p_texture_flags);
int get_texture_flags(void) const { return texture_flags; }

Expand Down

0 comments on commit cc648dc

Please sign in to comment.