summaryrefslogtreecommitdiff
path: root/scene/resources/texture.h
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/texture.h')
-rw-r--r--scene/resources/texture.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/scene/resources/texture.h b/scene/resources/texture.h
index 1e7528eb61..6259362882 100644
--- a/scene/resources/texture.h
+++ b/scene/resources/texture.h
@@ -225,7 +225,10 @@ public:
virtual void set_flags(uint32_t p_flags);
virtual uint32_t get_flags() const;
- void add_piece(const Point2& p_offset,const Ref<Texture>& p_texture);
+ int add_piece(const Point2& p_offset,const Ref<Texture>& p_texture);
+ void set_piece_offset(int p_idx, const Point2& p_offset);
+ void set_piece_texture(int p_idx, const Ref<Texture>& p_texture);
+
void set_size(const Size2& p_size);
void clear();