Make Image.get_size() return a Vector2i instead of a Vector2

This commit is contained in:
Samuele Zolfanelli 2022-07-09 19:29:49 +02:00
parent d26442e709
commit e27c5acedd
3 changed files with 4 additions and 4 deletions

View file

@ -416,8 +416,8 @@ int Image::get_height() const {
return height; return height;
} }
Vector2 Image::get_size() const { Vector2i Image::get_size() const {
return Vector2(width, height); return Vector2i(width, height);
} }
bool Image::has_mipmaps() const { bool Image::has_mipmaps() const {

View file

@ -209,7 +209,7 @@ private:
public: public:
int get_width() const; ///< Get image width int get_width() const; ///< Get image width
int get_height() const; ///< Get image height int get_height() const; ///< Get image height
Vector2 get_size() const; Vector2i get_size() const;
bool has_mipmaps() const; bool has_mipmaps() const;
int get_mipmap_count() const; int get_mipmap_count() const;

View file

@ -250,7 +250,7 @@
</description> </description>
</method> </method>
<method name="get_size" qualifiers="const"> <method name="get_size" qualifiers="const">
<return type="Vector2" /> <return type="Vector2i" />
<description> <description>
Returns the image's size (width and height). Returns the image's size (width and height).
</description> </description>